Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question for newbie

Status
Not open for further replies.

PHENONITIN

Technical User
Sep 21, 2007
1
US
Hi,
I have a query nested within a much larger query :



SELECT COUNT(1) FROM table1 X WHERE x.person_uid = person_uid AND car = '401' AND
(TO_DATE(startdate,'YYYYMMDD') BETWEEN COVERAGE_BEGIN_DATE AND coverage_end_date OR
TO_DATE(enddate,'YYYYMMDD') BETWEEN COVERAGE_BEGIN_DATE AND coverage_end_date))



I guess my question really is: If not explicity mentioned, which table does the query pull car, coverage_begin_date and coverage_end_date from ?
The above query is part of a much larger query which is from a table Y which has identical fields.
Any help would be greatly appreciated.
Thanks
 
if their table is not explicitly mentioned, the columns are taken from the table they are in

if they are in more than one table, you get an error

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top