im trying to insert the following:
insert into TABLEA select b.ID,..... from TABLEB b where code = 'NL'
the problem is that select * from TABLEB where code = 'NL'; returns more than 1 value.
is there anyway to limit that to just 1 value?
i tried select min(b.id)
but it didnt work