Skip to main content

write an efficient query

Efficient query writing it’s not a tough job. We are easily achieving it to following some point when writing a query. Here present some of them. I hope it's help you to writing efficient query.

write-efficient-query
write an efficient query
  1. Ensure proper joins for whatever tables in from clause.
  2. Avoid multiple table views.
  3. Instead of using the whole query in a single cursor or group, split into multiple Groups and link them.
  4. Use 'union all' instead of Union
  5. Use Union instead of OR Clause.
  6. Use Exists in place of in
  7. Always avoid usage of Negation operators like NOT, !=.
  8. Avoid Usage of outer joins , use Equi joins where ever possible 9. Use Where Clause instead of Having Clause.



-- Cheers !!!

Comments

Popular posts from this blog

ORA-01033 Oracle initialization or shutdown in progress

ORA-01033 Oracle initialization or shutdown in progress When you connect oracle 12c plug gable database, Thus time you have get oracle initialization or shutdown in progress error. This error occurred because pluggable database are not initialized. To fix this error connect as sysdba and run  ALTER PLUGGABLE DATABASE ALL OPEN    command. ALTER PLUGGABLE DATABASE ALL OPEN Thanks.

AFTER LOGON Trigger not perfectly working

AFTER LOGON not perfectly working.  I have tried it on single instance oracle 12c database it's perfectly work but it's not perfectly working on multi instance Oracle 12c database. I have submitted this matter in oracle forum but not found any perfect answer. Do you know why  it's not working ???

Oracle forms 11g default configuration file formsweb.cfg

#formsweb.cfg defines parameter values used by the FormsServlet # formsweb.cfg defines parameter values used by the FormsServlet (frmservlet) # This section defines the Default settings. Any of them may be overridden in the # following Named Configuration sections. If they are not overridden, then the # values here will be used. # The default settings comprise two types of parameters: System parameters, # which cannot be overridden in the URL, and User Parameters, which can. # Parameters which are not marked as System parameters are User parameters. # SYSTEM PARAMETERS