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 is columnar storage what is the advantage?

1058


How will you differentiate between varchar & varchar2?

1039


What is an oracle and why it is used?

1145


Is it possible to set second Primary Key Constraint in a table in Oracle Database ?

1145


What is a user role in oracle?

1121


What is a data lock in oracle?

1111


How data locks are respected in oracle?

1066


What is open database communication (odbc) in oracle?

1003


Explain table?

1109


please explain.. DB architecture ...

2018


How can we force the database to use the user specified rollback segment?

1148


What are the common oracle dba tasks?

1142


What are set operators?

1079


What is the sql query to concatenate column values from multiple rows in oracle?

1054


How many types of cluster table in Oracle?

1031