I have query like this.

select dept_id, max_mark from stude_dept where min_mark=
(select min(mini_mark) from stud_dept);

How can i optimize this query.
Can anyone help me with it

Answer Posted / amrita basu

here the table name is stud_dept. now the query within
bracket fetches the minimum of minimum marks i.e min_mark
from stud_dept. now the total query gives the result such
as to fetch the dept_id and max_mark of the corresponding
min_mark. if u have any kind of prob regarding this ans.
plz send me mail amritabasu.mca09@gmail.com

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between PFILE and SPFILE in Oracle?

573


How to check the server version in oracle?

608


Explain mutating triggers.

568


Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.

1570


How to invoke the original export import utilities?

503






Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

2447


What is a select query statement in oracle?

540


Can we store pictures in the database and if so, how it can be done?

583


How to synchronize 2 schema's objects?

1682


Explain what are the advantages of views?

604


hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards

1560


HI, Please let me know the syllabus for Oracle OCA and OCP Certification

1946


How to view the data files in the current database?

586


how to convert .db (extention) database file into .dmp (extention ) for oracle database ?

2058


why dont we assign not null constraint as table level constraint.

2250