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 Single Byte Overhead...?

2500


What are the general rules on data consistency?

960


What is the sid in oracle?

900


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

1939


What do you understand by a database object?

990


Can objects of the same schema reside in different tablespace?

1002


20. Using a set operator, display the client number of all clients who have never placed an order.

2147


How to drop a stored procedure in oracle?

999


What are the common oracle dba tasks?

1072


An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?

1996


What are the different types of partitions in oracle?

911


What is an oracle wallet?

882


What is SQL Tuning Advisor in Oracle?

1109


How to install oracle odbc drivers?

1040


What are the logical operations?

1065