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

Q) How to Find Max Date from each Group? (Asked in Infosys
(INFI)Interview)

Answer Posted / suman rana

select market_id, mkt_name, sale_dt from (
select market_id, mkt_name, sale_dt, max(sale_dt) over
(partition by market_id, mkt_name ) Max_sale_dt
from market )
where sale_dt = Max_sale_dt

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between char and varchar2 in oracle?

1249


How to drop an index in oracle?

1121


Why do I get unexpected characters from 8-bit character sets in weblogic jdriver for oracle?

1129


What is varray?

1198


How to sort the query output in oracle?

1076


How to run queries on external tables?

1087


When do I need to use a semicolon vs a slash in oracle sql?

1147


Describe an oracle table?

1100


I creat Credit memo in AR. Now i want revers the Credit Memo.how you can revers that what out any aditional entry.

2344


What is a cursor in oracle?

1232


What is meant by raw datatype?

1119


How does the on-delete-cascade statement work?

1164


What is an oracle?

1069


What is a select query statement in oracle?

1030


Can we connect to ORACLE db using Windows Authentication?

1308