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
Is truncate autocommit in oracle?
What privilege is needed for a user to insert rows to tables in another schema?
How do I connect to oracle database?
hi friends i completed b.com 2004.i have 3y accounting exp. in manufacturing company.now i have completed oracle finance.pls suggest me how will get job in oracle.can i get job in oracle.
How to use fetch statement in a loop?
Explain what does a control file contain?
What is a sub query and what are the different types of subqueries?
What do you mean by merge in oracle and how can we merge two tables?
How to delete all rows a table in oracle?
What are the different oracle database objects?
What is the difference between substr and instr?
What are the advantages of oracle?
What is a subquery in oracle?
Can a parameter be passed to a cursor?
How to do a full database export?