TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Balaji Palani
NA
364
63.9k
SQL Query Solution
May 14 2016 12:04 AM
I have one table with rows(1 to 5) and need a output like below
Table:
║no ║Years ║
╠══╬════║
║ 1 ║ 2001 ║
║ 2 ║ 2002 ║
║ 3 ║ 2003 ║
║ 4 ║ 2004 ║
Output :
║no ║Years║
╠══╬════
║ 1 ║ 2001 ║
║ 2 ║ 2002 ║
║ 3 ║ 2003 ║
║ 4 ║ 2004 ║
║ 4 ║ 2004 ║
║ 3 ║ 2003 ║
║ 2 ║ 2002 ║
║ 1 ║ 2001 ║
Reply
Answers (
4
)
Inserting multiple records @ once, trying to group with 1 Id
Generate dynamic colum using sp