I started learning oracle recently. I heard that there will be some performance issue(please correct me if i'm wrong) if we don't follow the order of where
conditions {particularly when we are joining two or more tables} in an SQL Query. If that is the case what kind of order should follow and what are the factors i should consider. Please explain in general and for the below scenerio, Let's say I have 3 tables.
Please find the DDL and Sample data here .
Table Part_material
has basic information with ID as Primary Key(PK),
Table Component
will have different type of components with ID,part_name as PK, Every ID will have 30 to 40 Entries,
Table connection
will have connection information. I'm joining these three tables like below:
select com.id,part.part_material,com.part_name,'TRUE',part.map_id,part.quantity,'INBOUND'
from Components com,Base_part part,connects rel
where part.id=com.id
and dbms_lob.compare(com.part_value,'Coat wi........')=0
and part.part_material in ('Barium','Tungston','Carbon')
and com.part_name='Build Material'
and rel.fromid=part.id
and rel.fromid=com.id
and rel.relname in ('Export Need','Not Molten');
If I change the above order, will it improve/decrese the performance?