Report of Pre-d's
-
- Posts: 56
- Joined: Thu Aug 02, 2007 1:04 pm
- Location: Wichita KS
- Contact:
Report of Pre-d's
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?
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.
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.
- jordansparks
- Site Admin
- Posts: 5770
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
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
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
http://www.opendental.com
-
- Posts: 56
- Joined: Thu Aug 02, 2007 1:04 pm
- Location: Wichita KS
- Contact:
-
- Posts: 56
- Joined: Thu Aug 02, 2007 1:04 pm
- Location: Wichita KS
- Contact: