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
What is indexing explain it with an example?
Disadvantages of the indexes?
What does it mean to manipulate data?
What is raid? : SQL Server Architecture
Explain the types of indexes.
What are distributed partitioned views?
What is database replication?
What is model database? : SQL Server Architecture
What is the syntax to execute the sys.dm_db_missing_index_details?
what is database replication? : Sql server database administration
is there a column to which a default can't be bound? : Sql server database administration
How do I open port 1433?
What are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture
What is right outer join in sql server joins?
Can a function call a stored procedure in sql server?