you need to specify what column for the where and the =1 i have no clue what you are wanting there
select * from ( select vRefTable from mainmenu where iMenuId=58 )
where
-- your column name here
vFieldsName in
(select vFieldsName from TableField where iMenuId=58
and bIsPrimary=1 and iTableFieldId=11)
dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143