Skip to content
Advertisement

Select 1 row query insert into multi row

I have existing data like this:

Table A

Table Master GL:

I need to select all row in table A, insert this into below Table B

1 row in Table A will insert into 2 row in table B, also will select the GL code from table Master GL, to get the GL code.

Can anyone advise me the query?

Thank you

Advertisement

Answer

you should join TableA with MasterGL on Type In SQL Server

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement