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

What is a filestream?

998


Why it is recommended to avoid referencing a floating point column in the where clause?

976


What is row_number () and partition by in sql server?

1095


Can select statements be used on views in ms sql server?

1077


What is a join in sql? What are the types of joins?

1118


Explain the properties of a relational table?

1034


when would you go for denormalization? : Sql server database administration

880


How to edit table in sql server 2017?

933


Explain log shipping and mention its advantages.

1052


Name few of the dcl commands in sql?

1020


What are the different types of sql server replication? : sql server replication

1282


How will you add a dimension to cube? : sql server analysis services, ssas

1106


Explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?

1127


Can we call future method from trigger?

951


What is sql server query analyzer?

1042