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

quary for
1> fetch last record
2> fetch in reverse order
3> fetch last 5 row
4> fetch second last record (their is no primary key)
i think concept of count can be use for this in 4th

Answer Posted / sudipta

the 4th answer is(ignore the previous one)

db2=> with t1(a,b,c) as (select id,name,row_number()
over(order by id desc) as aa from tab1) select * from t1
where c=2

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to restart a DB2 program?

1827


What does db2 mean?

955


What is the maximum size of a char data type in db2?

963


Explain what are the various isolation levels possible?

989


How can you do the explain of a dynamic sql statement?

1013


List out the buffer pools in db2

1020


What is dbrm library?

999


How do you stop a db2 database in linux?

957


What do you mean by rollback?

932


DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?

2779


What is a bind card?

1141


What is database alias db2?

1066


How do we specify index to include or not during bind process.

2070


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

1018


Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

1003