I have a query to select particular day-time for a office.
select
a.sat_date,
b.officeid
from
OfficeHours a
where
sat_date = '9:30 AM'
and officeik in (select OfficeIK from office where officeid = 50000) b
I need to select the sub-query column officeid in main query. Above query throws a syntax error.
Thanks for the help.
aand what's the error you are getting?