Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What are the different types of Indexes available in SQL Server?

0 Answers  


List all types of constraints in sql server?

0 Answers  


What are window functions in sql server?

0 Answers  


Explain about SQL server 2005?

0 Answers  


What is a data source file?

0 Answers  


What are the types of table?

0 Answers  


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?

2 Answers  


Why union all is faster than union?

0 Answers  


Which is faster statement or preparedstatement?

0 Answers  


How do use Having,Group by,Group function in SQL?

0 Answers  


How to create new databases with "create database" statements?

0 Answers  


check, not null,unique

2 Answers   IBM,


Categories