friends...
can anybody check this query and tell me where i am making mistake...i have to get a single row for each record...but i am getting mutiple rows...this is ms-access query with vb6 as front end.
Code:
"select [stdentry.sno],[stdentry.branch],[stdentry.stdname],[stdentry.amtobepaid]," _
& "iif([feesdetail.paytype]='DD',sum([feesdetail.paidamt]),0) as totpaid," _
& "iif([feesdetail.paytype]='CASH',sum([feesdetail.paidamt]),0) as totpaid1 " _
& "from stdentry,feesdetail where " _
& "([feesdetail.delstat]='N') and [stdentry.sno]=[feesdetail.sno] and [stdentry.refundstat]='N' " _
& "group by [stdentry.sno],[stdentry.branch],[stdentry.stdname],[stdentry.amtobepaid],[feesdetail.paytype]"
thanks and waiting for somebody's help.