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


Please Help Members By Posting Answers For Below Questions

How do we create privileges in oracle?

588


What is data file?

619


What is oracle sid?

508


Explain what are the uses of rollback segment?

584


Name the three major set of files on disk that compose a database in Oracle?

634






What is a package ? What are the advantages of package ?

603


How to start instance with a minimal initialization parameter file?

535


What is Reduced List of Values?

1705


How to loop through data rows in the implicit cursor?

539


Is there a combination of "like" and "in" in sql?

581


I have some query regarding Report generation from Oracle Apps "PO module". I have to generate a report where table columns are as below: Vendor_name Invoice No PO Number Item_Quantity Value of Goods Date of Shipping Name_of_the_transport Date_of_receipt_issued. Now my questions is :from which table/column I can get the information of "Name_of_the_transport" column. Thanks in advance.

2886


How do you find out from the RMAN catalog if a particular archive log has been backed-up?

1659


How to define an anonymous procedure with variables?

545


What is key preserved table?

564


How to build data dictionary view an new database?

532