i have a table student like
sname
-----
ram
ram
ram
raj
raj
raj
i need the output like
sname
-----
ram
raj
ram
raj
ram
raj
Answer Posted / bobby
select ename from (select Row_Number() over (partition by
ename
order by ename) as ROWNO,ename from emp) p
order by ROWNO,ename desc
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
please differentiate between delete and truncate?
What is ddl and dml commands?
What are magic tables in sql server?
How do I start sql server 2017?
What are data resources?
What is full outer join in sql server joins?
What is a livelock?
What is the use of custom fields in report?
What is the difference in accessing db between sql server vs sql azure?
How to list all user names in a database?
What are the elements of dbms?
What is ms sql server index?
Explain full-text indexing?
Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication
What is RMS migrations?