I need to do an insert into but for the fields, they come from 2 seperate tables.
Here is a query which does not seem to work:
insert into @tblfirst (ProgID,ProgDate,Spk,Spkadd)
values(
(select ProgID,ProgDate from Prog where ProgSys = '1100),
(select Spkr,SpkrAdd from Spk where SpkrSys = '201X42')
)
Not sure if you see anything wrong with the statment.
Disclaimer: I assumed what the datatypes are, but you get the idea. It’s a bit more intuitive and you’ll surely have no problems with this
INSERT.