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 / mala
select a.tnam,b.tnam from (select tnam from temp where tnam
= 'Ram' ) a,
(select tnam from temp where tnam = 'Raj' ) b
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is a with(nolock)?
What are the encryption mechanisms in sql server?
How to configure and test odbc dsn settings?
How do I install sql server?
What is sql injection and why is it a problem? : sql server security
What are the restraints imposed on the table design by a merge replication?
Explain optimistic and pessimistic concurrency?
Explain atomicity?
How to find out the list schema name and table name for the database?
Which data type columns are the best candidates for full-text indexing?
How to update a field in SQL after ALTERING a row?
How to Insert multiple rows with a single insert statement?
What is analysis service repository?
Explain the difference between delete,drop and truncate in SQL Server?
What do you mean by subquery?