I want a SQL query to display the following data
ID Name
1 AAA
2 BBB
3 CCC
4 DDD
as this:
ID Name
4 AAA
3 BBB
2 CCC
1 DDD
without changing the other columns.
Kindly suggest?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m going with something like this :
You have to set to each row a number for the Name field, and for the ID field, in different order, and then join between them to retrieve the datas in different order.