How to select top 5 coloumn from a table without using
coloumn name
Answers were Sorted based on User's Feedback
Answer / aashish arora
SELECT top 5 * from information_schema.columns where
table_name = 'varTableName'
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / dj
Select Top(5) COLUMN_NAME
from INFORMATION_SCHEMA.COLUMNS
Where TABLE_NAME = 'Emp';
| Is This Answer Correct ? | 1 Yes | 0 No |
How do I view views in sql server?
What do you know about normalization and de- normalization?
What is RMS migrations?
What is “begin trans”, “commit tran”, “rollback tran” and “savetran”?
How to insert a new row into a table with "insert into" statements in ms sql server?
Differentiate between sql temp table vs table variable?
What are partitioned views and distributed partitioned views?
What is transaction server distributed transaction?
what is sql server? : Sql server database administration
Where is localdb stored?
What is storeprocedure?Tell me synatx for how to write stored procedure.
Why union all is faster than union?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)