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

Explain about the analyze command in oracle?

0 Answers  


9)When information has to be stored w.r.t employees and their respective departments, which of the following is the Correct formulation of entries? A)Employee and department would together be represented as an entity. B)This is too less information to decide on entities. C)An employee would be one entity and a department would be another. D)Such a scenario cannot be modelled in RDBMS

2 Answers   Mind Tree,


what is the difference between first normal form & second normal form?

11 Answers   IBM, Oracle,


Explain what does a control file contain?

0 Answers  


How to lock and unlock a user account in oracle?

0 Answers  


How to retrieve data from an explicit cursor?

0 Answers  


How to check the oracle tns settings?

0 Answers  


How to export your own schema?

0 Answers  


Describe the types of sub query?

0 Answers  


What is the scope of a local variable?

0 Answers  


How to get last row id?

0 Answers  


can anyone help me ? an index has been done on the primary key of a table. an update operation was performed on that table. now my question is 1> what abt the performance ? means faster or slower due to indexing ? 2> does the operation affect to the primary key constraint ?

2 Answers   Allfon,


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • 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)