Groups | Blog | Home
all groups > sql server programming > november 2004 >

sql server programming : Retrieving data from 3 different records in one stored procedure


Harolds
11/20/2004 10:37:01 PM
I need to get data from the same column from 3 different records in the same
table with a select type stored procedure. Let my try to clarify: for each
Uri Dimant
11/21/2004 12:05:04 PM
Harolds
I am not certain that understand you.
INSERT INTO Table (colA) SELECT colB FROM Table WHERE colC IN(1,2,3)
If it does not do what you want please post DDL + sample data.





[quoted text, click to view]

AddThis Social Bookmark Button