Hi All,
I have a scenario where in i need to get the distinct record from a table. If i use 'group by' clause, then i need to select the columns which i'm using in the group by clause.
Ex--
Table Table1;
while select Voucher, RecId from Table1 group by Table1 .Voucher
{
}
I need to group by only on Vouchers and not with RecId. But if i dont pass RecId to group by clause, the query doesn't gives the expected results. My requirement is to get the RecId and Voucher from the query on grouping by vouchers only. How do i achieve this?
*This post is locked for comments