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!

is this sql statement possible?

Status
Not open for further replies.

ajoce

Programmer
Aug 4, 2003
14
PH
SELECT CONT.CONTID
FROM CONT WHERE CONT.ACCT_ID =
(SELECT AIDE.ACCT_ID FROM AIDE WHERE AIDE.AIDE_ID = 'AA01')

or is there an alternative in doing this? help, please..
 
Code:
select cont.contid
  from cont 
inner
  join aide
    on cont.acct_id 
     = aide.acct_id 
 where aide.aide_id 
     = 'AA01'

rudy
SQL Consulting
 
thanks =) it works. oh, on the sql statement i posted. it also worked. just remove the parenthesis ( ), and replace it with single quotes =)

thanks rudy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top