You'd be better off giving us example data and DDL :
DECLARE @myTable TABLE (col1 INT, col2 VARCHAR(20))
INSERT INTO @myTable (col1, col2) VALUES (1,'abc'),(2,'def'),(3,'hij'),
and a required output.
Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.
No comments:
Post a Comment