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 |
i use few third party softwares. they r all having their own databases . but the data is repeated in all these databases - say a person is in all the three databases, but his name is stoared in diff format in all databases i want to create a centralised database ,and i dont want to re-enter the records . using the exisating records how can i build a centralised database?
How do we get current date in SQL Server 2000, Oracle, MS Access?
How to find related tables in sql server?
What is filter index?
please tell me the query to get details of the employee having the second largest salary
How to call a function from a stored procedure in SQL Server ?
What are entities and relationships?
What are the types of subscriptions in SQL Server replication?
Where is trigger in sql server?
What is Self Join?
How to use subqueries with the in operators in ms sql server?
What is isnull() operator?