Report of Pre-d's

For users or potential users.
Post Reply
Anthony J Turner
Posts: 56
Joined: Thu Aug 02, 2007 1:04 pm
Location: Wichita KS
Contact:

Report of Pre-d's

Post by Anthony J Turner » Thu Sep 27, 2007 8:56 am

We have been enetering pre determinations received as they come in but they drop off the aged ins list. Could someone give me the script for a sql query for pulling up the list?

User avatar
drtech
Posts: 1649
Joined: Wed Jun 20, 2007 8:44 am
Location: Springfield, MO
Contact:

Post by drtech » Thu Sep 27, 2007 12:07 pm

select DateReceived, PatNum, ClaimStatus, DateSent, ClaimFee from claim
where claimtype="PreAuth" AND DateReceived>'2007-05-01' OR Claimtype="PreAuth" AND DateReceived<='0001-01-01'
Order By DateReceived DESC



and you can change the date up there that says 2007-05-01 to include however many you want.
David Fuchs
Dentist - Springfield, MO
Smile Dental http://www.887-smile.com

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Post by jordansparks » Thu Sep 27, 2007 12:47 pm

Wouldn't you have to put in some parentheses?

select DateReceived, PatNum, ClaimStatus, DateSent, ClaimFee from claim
where (claimtype="PreAuth" AND DateReceived>'2007-05-01')
OR (Claimtype="PreAuth" AND DateReceived<='0001-01-01')
Order By DateReceived
Jordan Sparks, DMD
http://www.opendental.com

User avatar
drtech
Posts: 1649
Joined: Wed Jun 20, 2007 8:44 am
Location: Springfield, MO
Contact:

Post by drtech » Thu Sep 27, 2007 6:38 pm

for clarity, yes, but I think mySQL treats everything on either side of the OR like it has parentheses...b/c I get the same result.
David Fuchs
Dentist - Springfield, MO
Smile Dental http://www.887-smile.com

Anthony J Turner
Posts: 56
Joined: Thu Aug 02, 2007 1:04 pm
Location: Wichita KS
Contact:

Post by Anthony J Turner » Fri Sep 28, 2007 10:25 am

Thanks

Anthony J Turner
Posts: 56
Joined: Thu Aug 02, 2007 1:04 pm
Location: Wichita KS
Contact:

Post by Anthony J Turner » Fri Sep 28, 2007 10:30 am

Thanks

Post Reply