Can any one tell me how to increase the performance of a
sql query ie what are the performance tips in creating or
writing a sql query !!?

Answer Posted / manoj

1.
Use proper sequence of tables in from clause
i.e.
the table have more common column must in last
in form clause bcoz on firing of query engine link
last table in form clause
2.
Use "Exist" clause instead of "Not in"
Bcoz it return only true/false(boolean)

3.
Use "Hint" if Required

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better join or subquery?

608


How do you know if a relationship is 2nf?

522


How do you update f as m and m as f from the below table testtable?

1092


What are the advantages of sql?

562


Mention what does plv msg allows you to do?

670






Can a procedure in a package be overloaded?

549


What is sql integrity?

585


What is a clob in sql?

569


How to call a javascript function from pl sql?

567


What are sql objects?

546


What are tables and fields in the database?

556


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

759


Why indexing is needed?

519


Hi how to import oracle sequence in Informatica? Please write stored procedure code that will import oracle sequence in Informatica SP transformation as per below scenario Oracle table product list Pro_id, pro_name 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights Now a new flat file with new product list needs to be added to oracle table product list with oracle sequence. flat file product Prono,pro_name, 1, 20 watt tube light 2, 30 watt tube light & target should be like 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights. 104, 20 watt tube light 105, 30 watt tube light thks reg suvarna joshi suvarnaatsuvarna@rediffmail.com

2074


What is raid? How does it help storage of databases?

606