wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records
Answer Posted / bobby
select * from table_name where <Primary key Column-
name> != all
(select top (@@rowcount-3) <Primary key Column-name> from
Table_name)
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is pessimistic concurrency?
How to create an identity column?
Why is sql server log file full?
What is a transact-sql statement batch in ms sql server?
How can we check the sql server version?
What is the difference between a view and a stored procedure?
How to remove duplicate rows from table except one?
How to verify a login name with sqlcmd tool?
What is cursor in ms sql server?
What is the use of @@spid?
What is the purpose of self join?
What do you mean by collation recursive stored procedure?
Explain the working of sql privileges?
Why do we need different type of parameter?
What is spatial and temporal data?