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

How to create a new table in a given schema?

0 Answers  


What's the maximum size of a row?

4 Answers   IBM,


What is the role that is required for killing a process What is the role that is required for creating a linked server

1 Answers   CarrizalSoft Technologies, IBM,


what is an index? : Sql server database administration

0 Answers  


What are the properties of primary key?

0 Answers  






you accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover? : Sql server administration

0 Answers  


Which Model uses the SET concept

0 Answers   Infosys,


What is the simplest way to create a new database in ms sql server?

0 Answers  


what is Constraint? How many types of constraints in SQL ?

38 Answers   HCL, IBM, NIIT, Wipro,


What is a view in sql?

0 Answers  


How to call stored procedure using http soap?

0 Answers  


What Is The Difference Between Primary Key & Super Key

3 Answers   Accenture,


Categories