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

Answers were Sorted based on User's Feedback



I have query like this. select dept_id, max_mark from stude_dept where min_mark= (select min(min..

Answer / 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

I have query like this. select dept_id, max_mark from stude_dept where min_mark= (select min(min..

Answer / sudhakar

hi
it gives mini_mark record of max_mark,dept_id

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

Differentiate between translate and replace?

0 Answers  


Why do you create or replace procedures rather that drop and recreate.

0 Answers  


What does `(+)` do in a where clause?

1 Answers  


Where do we use decode and case statements?

0 Answers  


when loggined as SYSTEM,how to display all the users of database using sql query?

2 Answers  






how many columns can a plsql table have

13 Answers   NIIT,


Does oracle database need java?

0 Answers  


Hi how Can I Add A Foreign key that references a table that has composit primary key ? example i had costumer table that has C_Id and SSN Both as PK and another table has C_Id that must refernece C_Id in Customers i done the usual way and got oracle error message about uniqeness any ideas plz

2 Answers  


Can you drop an index associated with a unique or primary key constraint?

0 Answers  


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

0 Answers  


How to omit columns with default values in insert statement in oracle?

0 Answers  


What is oracle open database communication (odbc)?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)