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...

wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records

Answer Posted / tulasi ravi kumar

hi this is tulasi ravi
id - ravi106109@gmail.com

select empno,sal from emp where rowid in
(select rowid from emp
minus
select rowid from emp where rownum<=(
select count(*)-3 from emp))


feel free to mail queries,,,.....

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the best place or learning center for MS SQL?????In Bangladesh?????

2018


What is isolation levels?

961


How to define and use table alias names in ms sql server?

1042


If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

933


User wants only to display only pdf as export option in report manager. How to achieve this?

247


How can I get data from a database on another server?

933


What is policy management?

933


1.what are diff types of joins , and explain diff between cross join and full outer join 2.diff types of views 3. Diff types of index 4. What is diff b/w stores procedure and function procedure 5.diff between double and int in SQL 6.diff between char and varchar in SQL. 7.Oracle or SQL whice you will preferred and why.

1526


Can we use where clause with group by?

856


How do I get Report Builder to generate a parameter that can be set by users viewing the report?

139


What is store procedure? When do you use?

871


Detail about query optimizer?

1036


What are the different subsets of sql?

1471


Why use stored procedures in sql server?

952


what type of index will get created after executing the above statement? : Sql server database administration

920