Hello
I want to insert a field from one table into another table.
Something like...
declare @s_number int
set @s_number= select max(FIELD1)from TABLE1
select "truck", @s_number
INTO TABLE2
I know the syntax is incorrect, the idea is to take a value from TABLE1 and insert it into TABLE2 with other values. @s_number could be different every time.
Thanks for any help
Dave
I want to insert a field from one table into another table.
Something like...
declare @s_number int
set @s_number= select max(FIELD1)from TABLE1
select "truck", @s_number
INTO TABLE2
I know the syntax is incorrect, the idea is to take a value from TABLE1 and insert it into TABLE2 with other values. @s_number could be different every time.
Thanks for any help
Dave