Hi There,
Please suggest best way to do this
insert into table(value1,value2)
values ('123', select id from table where section='section 1')
value2 is the foreign key value from the second table
but this doesnt work,i have to declare a variable and set the above select value into the variable
and replace this above select statement with the variable
Please suggest best way to achieve this
Thanks