sql - SELECT based on Multi result condition -


i trying execute following sql statement in postgresql 9.2 fails error:

select "trainingname" "hsetrainingname" "id" =  select "trainingid" "hsegroupedtraining" "groupid" =3 

the second select statement returns more 1 value. how solve it?

you can use in construction:

select "trainingname"    "hsetrainingname"   "id" in (select "trainingid"                    "hsegroupedtraining"                   "groupid" = 3) 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -