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

Checking operating system version: must be 5.0, 5.1 or 5.2 Actual 6.1 Failed

This error occurred when we are installing old oracle software in latest OS (Operating System).   Basically Its’s occurring on windows platform.

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

Windows 8 boot loader corrupted

Problem:     Installed Windows 7 and Windows 8 in EFI mode on a hard disk some days past. Today, the boot loader is absent or corrupted. At present have the Windows 8 installer on a flash drive and tried using the Automatic Repair option to repair the boot loader but it didn't do anything. The Startup Repair option is also absent in the Windows 8 installer. How I can repair or recreate the EFI boot loader from the Command Prompt? BCDEDIT   returns the following message: The requested system device cannot be found. Solution: Firstly, boot from a UEFI Windows 8 recovery disk (CD/DVD/USB) - I found that the automated recovery process didn't find the correct Windows partition, nor when I managed to add it to BCD settings would it make it reliably boot-able e.g. using BCDEDIT I got it to find and launch the Windows partition but it refused to cold boot or would not "keep" the settings after a 2nd reboot or power off. Go into the Advanced option