In regards to my first thread, I am currently working in MS Access and running an SQL query in MS access.This is how my query is:
SELECT analname,member_id,member_name,dob,sex,max(dos),spec_num,smc,testname,dxcode1,loinc,ndec_low,ndec_hi,rslt_dec,abn_code,
rsltabrv,cpt_code,pay_acct,acctname,elig_sw,ord_acct,docname from
diabetics group by
analname,member_id,member_name,dob,sex,spec_num,smc,testname,dxcode1,loinc,ndec_low,ndec_hi,rslt_dec,abn_code,
rsltabrv,cpt_code,pay_acct,acctname,elig_sw,ord_acct,docname;
DOS means date of service for which I need the latest date of service in the event of a duplicate.
Any help is highly appreciated.
Thanks
Bimal
SELECT analname,member_id,member_name,dob,sex,max(dos),spec_num,smc,testname,dxcode1,loinc,ndec_low,ndec_hi,rslt_dec,abn_code,
rsltabrv,cpt_code,pay_acct,acctname,elig_sw,ord_acct,docname from
diabetics group by
analname,member_id,member_name,dob,sex,spec_num,smc,testname,dxcode1,loinc,ndec_low,ndec_hi,rslt_dec,abn_code,
rsltabrv,cpt_code,pay_acct,acctname,elig_sw,ord_acct,docname;
DOS means date of service for which I need the latest date of service in the event of a duplicate.
Any help is highly appreciated.
Thanks
Bimal