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
Can a parameter be passed to a cursor?
How a database is related to tablespaces?
what is a Nested Loop join?
Explain the use of indexes option in exp command.
How to create a new view in oracle?
How do you increase the OS limitation for open files (LINUX and/or Solaris)?
How to call a stored function in oracle?
How to grant create session privilege to a user in oracle?
WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?
What is merge in oracle?
What privilege is needed for a user to create indexes in oracle?
How many types of table in Oracle?
What is oracle data type?
How to rebuild an index in oracle?
Can a formula column referred to columns in higher group ?