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 |
Explain what are the restrictions while creating batches in sql server?
What are the 3 types of schema?
What is trigger in salesforce?
what are the problems in logshipping?
what are the types of indexes? : Sql server database administration
What is a collation?
What according to you is the difference between mysql and sql server performance?
How do you trace the traffic hitting a sql server?
Mention the 3 ways to get a count of the number of records in a table.
How to generate create function script on an existing function?
What to check if a User database is locked?
Does hive support indexing?
Oracle (3253)
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)