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
What are the differences in Clustering in SQL Server 2005 and 2008 or 2008 R2?
How can we get count of the number of records in a table?
How to create a user to access a database in ms sql server using "create user" statements?
What is xdr?
Where cross join is used?
How to use user defined functions in expressions?
List the data types available in mssql?
What is the difference between writing data to mirrored drives versus raid5 drives
What is onf in normalization form?
What does the not null constraint do?
What are page splits? : SQL Server Architecture
What is the difference between insensitive and scroll cursor?
If a table does not have a unique index, can a cursor be opened on it?
What is PROJECTION Operation?
What are data files?