Q) How to Find Max Date from each Group? (Asked in Infosys
(INFI)Interview)
Answer Posted / sudipta santra
select market_id, mkt_name, max(sale_dt)
from market
group by market_id, mkt_name;
Note: This is the only correct answer
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What happens to the indexes if a table is recovered?
Is oracle a language?
What is the difference between pre-select and pre-query?
What will be the syntax to find current date and time in format "yyyy-mm-dd"?
How to delete multiple rows from a table in oracle?
How to put more than 1000 values into an oracle in clause?
What do you understand by a database object?
Which dictionary tables and/or views would you look at to diagnose a locking issue?
What is data block in Oracle?
What is partitioned table in Oracle?
If youre unsure in which script a sys or system-owned object is created, but you know its in a script from a specific directory, what UNIX command from that directory structure can you run to find your answer?
How to omit columns with default values in insert statement in oracle?
State all possible different index configurations a table can possibly have?
What is the usage of analyze command in oracle?
Why do we need integrity constraints in a database?