![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi, I am trying to 1)get all the names of a table that match another table 2)while count=0, then I want to insert into another table 'group' after getting its key. I am totally lost, can somebody point me in the right direction. how do I get the individual name so that I can insert into the group table, I tried 'select @name=name, that gave no results'. Thanks while (SELECT name FROM names WHERE name in (select name from Group) and status = 'M' )=0 begin insert into CAll(group_id,name,action) values (@key, name, 'play' ) end how do i get the individual names to insert into another table .. |
#3
| |||
| |||
|
|
hi, I am trying to 1)get all the names of a table that match another table 2)while count=0, then I want to insert into another table 'group' after getting its key. I am totally lost, can somebody point me in the right direction. how do I get the individual name so that I can insert into the group table, I tried 'select @name=name, that gave no results'. Thanks while (SELECT name FROM names WHERE name in (select name from Group) and status = 'M' )=0 begin insert into CAll(group_id,name,action) values (@key, name, 'play' ) end how do i get the individual names to insert into another table .. |
![]() |
| Thread Tools | |
| Display Modes | |
| |