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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with a query

Status
Not open for further replies.

algomes

Programmer
Aug 2, 2002
20
PT
SELECT T1.A, T1.B, T1.C, X.XCNT, Y.YCNT FROM T1, (SELECT COUNT(*) XCNT FROM T2 WHERE T2.A=T1.A
AND (T2.E=1 OR (T2.E=0 AND MEV_T2.D=1))) AS X,
(SELECT COUNT(*) YCNT FROM T2 WHERE T2.A=T1.A
AND (T2.D=0 OR (T2.D=1 AND T2.E=1))) AS Y
WHERE MYDATE <='2002-10-15'

When running this query I get the message
&quot;Invalid column name 'T1.A'.&quot;

Can anyone help me?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top