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 |
What are the different types of Indexes available in SQL Server?
List all types of constraints in sql server?
What are window functions in sql server?
Explain about SQL server 2005?
What is a data source file?
What are the types of table?
Is it possible to have more then one foreign key in a single table? if possible, is this the good way to design the table?
Why union all is faster than union?
Which is faster statement or preparedstatement?
How do use Having,Group by,Group function in SQL?
How to create new databases with "create database" statements?
check, not null,unique
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)