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 / chitram
select e1.sname,e2.sname from emp e1,emp e2 where e1.sname
= 'ram'
and e2.sname = 'raj';
Is This Answer Correct ? | 3 Yes | 14 No |
Post New Answer View All Answers
How to use union to merge outputs from two queries together in ms sql server?
What is indexed view? How to create it?
Which sql server table is used to hold the stored procedure scripts?
How to use go command in "sqlcmd"?
Where does the copy job runs in the log shipping primary or secondary? : sql server database administration
What is the tcp/ip port on which sql server runs?
What is nonclustered index with included columns ?
Does sql server use t sql?
Do you know what is xpath?
What are the reporting services components?
How to create an inline table-valued function?
How to delete duplicate rows in sql server?
What are the types of sql server?
How do I view a stored procedure in sql server query?
After creating the cube, if we added a new column to the oltp table then how you add this new attribute to the cube? : sql server analysis services, ssas