How to select top 5 coloumn from a table without using
coloumn name

Answers were Sorted based on User's Feedback



How to select top 5 coloumn from a table without using coloumn name..

Answer / aashish arora

SELECT top 5 * from information_schema.columns where
table_name = 'varTableName'

Is This Answer Correct ?    2 Yes 0 No

How to select top 5 coloumn from a table without using coloumn name..

Answer / dj

Select Top(5) COLUMN_NAME
from INFORMATION_SCHEMA.COLUMNS
Where TABLE_NAME = 'Emp';

Is This Answer Correct ?    1 Yes 0 No

How to select top 5 coloumn from a table without using coloumn name..

Answer / sudharshan

set rowcount 5
select * from table_name

Is This Answer Correct ?    0 Yes 0 No

How to select top 5 coloumn from a table without using coloumn name..

Answer / yunus

select top(5) * from tablename

Is This Answer Correct ?    5 Yes 8 No

How to select top 5 coloumn from a table without using coloumn name..

Answer / satish

select top 5 * from tablename

Is This Answer Correct ?    5 Yes 10 No

Post New Answer

More SQL Server Interview Questions

Explain in brief how sql server enhances scalability of the database system?

0 Answers  


Does a specific recovery model need to be used for a replicated database? : sql server replication

0 Answers  


How to genrate automaticlly empid like gt001

4 Answers  


What is an execution plan? When would you use it?

0 Answers  


Explain different types of collation sensitivity?

0 Answers  






What is the difference between a fill factor of 100 and 0?

0 Answers  


What is stored procedures?

0 Answers  


Does partitioning improve performance?

0 Answers  


How to create a large table with random data for index testing in ms sql server?

0 Answers  


List all types of constraints in sql server?

0 Answers  


What is the basic functions for master, msdb, tempdb databases?

2 Answers   CSC,


What is the status of services on passive node for failover cluster in sql server? : sql server database administration

0 Answers  


Categories