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 are the different types of failures that occur in Oracle database?

698


Hi this srilatha. I comlpeted my Oracle-hrms. can u provide me interview questions on Core hr, payroll,sshr,OLM etc..

1735


What is rich query?

634


Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?

1951


Can we write insert statement in function in oracle?

653






What is the difference between online and offline backups?

639


how to join query for one source type is oracle another source type is sql server ?

2083


How to concatenate two text values in oracle?

691


How to use "while" statements in oracle?

815


How will you identify oracle database software release?

602


What happens to the current transaction if a ddl statement is executed?

662


What is recovery manager(rman) backup in Oracle?

729


Differentiate between function and procedure in oracle.

645


Write a trigger example in oracle?

677


Please explain drop constraint oracle?

701