/    Sign up×
Community /Pin to ProfileBookmark

Nesting Query Problem

hello,

i am having a MySQL query with 3 levels of Nesting in it. it looks like this..

select ID1 from table1,
( select ID2 from table2,
(select ID3 from table3 where SOMECONDITION) as res1
WHERE ID2 = res1.ID3 ) as res2
WHERE ID1=res2.ID2 AND ID1=res1.ID3

Here the problem i am getting is i am not able to check this condition [ ID1=res1.ID3 ] the ID3 value is only visible to res1 SCOPE , DO u have a ny idea ???

thanks for reading patiently

-gaurav

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@MrCoderFeb 15.2007 — Give us more details.
×

Success!

Help @gaurav_095 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...