Hi! I'm a beginner user of mssql and I've been stuck in a report that I'm trying to make.
I have a table with fields like 'PartName', 'VoucherQuantit y', 'VoucherType', 'VoucherDate', and 'DLName'. I want to get the sum of 'VoucherQuantit y' and I want its results in different fields based on different values of 'VoucherType' (which for example can be 01, 02, 03, or 04) and I want the result to be grouped by 'PartName' AND 'DLName'. Obviously I want this sums WHERE 'VoucherDate' IS BETWEEN a and b.
I've been trying different queries for a while and I have tried creating different views to solve this but so far I have got zilch. I'd really appreciate it a lot if anyone can help me!
I have a table with fields like 'PartName', 'VoucherQuantit y', 'VoucherType', 'VoucherDate', and 'DLName'. I want to get the sum of 'VoucherQuantit y' and I want its results in different fields based on different values of 'VoucherType' (which for example can be 01, 02, 03, or 04) and I want the result to be grouped by 'PartName' AND 'DLName'. Obviously I want this sums WHERE 'VoucherDate' IS BETWEEN a and b.
I've been trying different queries for a while and I have tried creating different views to solve this but so far I have got zilch. I'd really appreciate it a lot if anyone can help me!
Comment