Skip to content
Advertisement

Insert data based on data count from another table

How can I insert the data based on data count from another table in SQL?

Store table:

Stock table:

Expected result

Advertisement

Answer

You can use cross join –

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