Thursday, March 5, 2015

Getting same output without cursor in SQL

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