How to select top 5 coloumn from a table without using
coloumn name
Answer Posted / dj
Select Top(5) COLUMN_NAME
from INFORMATION_SCHEMA.COLUMNS
Where TABLE_NAME = 'Emp';
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are cursors and when they are useful?
Tell me time data type, datetime2, datetimeoffset data type in sql server 2008?
What is the difference between deallocate cursor and close cursor?
Does a sql server 2005 select statement require a from?
Is sql server 2016 free?
Can truncate be rolled back?
How do I install only the client tools of sql server 2000?
What are the new security features added in sql server 2012? : sql server security
What is a schema in ms sql server 2005?
Explain active/passive and active/active cluster configurations?
what's the information that can be stored inside a bit column? : Sql server database administration
What is the use of keyword with encryption.
What is merge?
How to list all user defined functions in the current database?
What are the different editions available in sql server 2000?