I need to insert into a simple table with two columns.
The first column has to contain the same value from row to row, while the second has to hold the various values from a source table. So it all should look like this:

Question is – is there a way to make a set-based insert in this case? The way I do it now is simply iterate through the rows of the source table. Or it’s also possible to use cursors, only I’m not sure which is best.
But still this is iteration.
Any means to get around this?
Thanks in advance!
If you know your static value ahead of time, you could do something like this:
This is assuming that
1is your static value. It can be replaced with the real value, or a variable, depending on the specifics of your query.