Skip to content
Advertisement

SQL Inserting Data into table

I have a SQL table, let’s call it “Table A”, which has several rows of data. I then have a temp table called “Table b” that has one row of data. I want to be able to do a sql insert so that if Table A Column 1 is null, it will insert Table B Column 1’s value.

So I’d wind up with something like this:

Can someone explain how I might go about doing this? Any help will be appreciated.

Advertisement

Answer

You say insert, but I think you’re asking for an update.

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