Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> SQL statement help
Hi All:
Could someone please tell me how I could write the following statement in a more effient manner. The statment is running too too long. All columns are indexed.
select couponorder.cporid from HBFADMIN.COUPONORDERAND couponorderdetail.cpodcampid = campaign.campid ORDER BY cporid;
, HBFADMIN.COUPONORDERDETAIL
, HBFADMIN.SPONSOR
, HBFADMIN.SITE
, HBFADMIN.STATE
, HBFADMIN.COUNTY
, HBFADMIN.CAMPAIGN
where couponorder.cpordate BETWEEN '16-SEP-99' AND '17-SEP-99' AND couponorder.cporstateid = state.id AND couponorder.cporsiteid = site.siteid AND state.state_id = county.state_id AND couponorder.cporcountyid = county.county_id AND couponorderdetail.cpodsponid = sponsor.sponid
Thanks in advance for any help here.
Eddie Lufker
Received on Fri Sep 24 1999 - 15:15:05 CDT
![]() |
![]() |