Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
obiwaugh
Starting Member
27 Posts |
Posted - 2005-07-08 : 18:50:41
|
| Rather than execute the following many times for each, is there a way to execute this for each unique PAYGROUP that is defined in a table PS_PAYGROUP_TBL? I've got 48 unique PAYGROUPS in PS_PAYGROUP_TBL, so I want 48 rows inserted into PS_AL_MAPPER, one for each PAYGROUP with the same ROW_NBR and ID_MOD.INSERT INTO PS_AL_MAPPER (PAYGROUP,ROW_NBR,IDMOD,)VALUES ('PQA',9,'330')Thanks in advance!--------------------------------I know enough to know that I don't know enough. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2005-07-08 : 18:55:48
|
| Is this what you want? If not, please provide more detail. INSERT INTO PS_AL_MAPPER(PAYGROUP,ROW_NBR,IDMOD)SELECT PAYGROUP, 9, '330'FROM PS_PAYGROUP_TBLTara |
 |
|
|
|
|
|