Thread: SQL SubQuery Condition
sql wizards, need help!
i'm trying put rather complex query using obfuscated crazy framework... details aside, i'd following:
select a.att_1, a.att_2, (select count(*) table_b) b_count, a.att_3 table_a b_count = '2';
keep getting error b_count doesn't exist. there way can write conditions on sub-query returned? in advanced!
![]()
i believe error because have join tables in order use column table b in clause, i'm not entirely sure though. think i've had similar queries in of projects, , i've had inner or left join.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk SQL SubQuery Condition
Ubuntu
Comments
Post a Comment