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 retrieve last tree records from table?
select *from emp where rownum > (select count(*)-3 from
emp);
i am using this query to get last three records from table
but its not giving any output, so please tell me what is the
error in this query.

Answer Posted / ramareddy

u don't use minum operator to count(*) in subquerry

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what happens if you no create privilege in a database? : Sql dba

982


Which function is used to return remainder in a division operator in sql?

1117


Is left join faster than join?

1035


What do we need to check in database testing?

1004


How do you remove duplicates without using distinct in sql?

963


How to run sql*plus commands in sql developer?

1133


How to select random rows from a table?

1062


What are the different ways to optimize a sql query?

929


What are different functions in sql?

925


How many types of privileges are available in sql?

1334


Write the command to remove all players named sachin from the players table.

1162


What is procedure function?

1041


What are the most important ddl statements in sql?

1088


What is trigger in pl sql?

980


Is it possible to update views?

947