Consider the following 2 querries:
_________________________________
select * from List_A A,List_B B
where A.ID = 100
and B.ID = A.ID
_________________________________
AND
_________________________________
select * from List_A A,List_B B
where A.ID = 100
and B.ID = 100
_________________________________
Both List_A and List_B tables have an index
on the ID column, and both tables are very large!
The environment is UDB.
Which query is more efficient? Please give valid reasons!
_________________________________
select * from List_A A,List_B B
where A.ID = 100
and B.ID = A.ID
_________________________________
AND
_________________________________
select * from List_A A,List_B B
where A.ID = 100
and B.ID = 100
_________________________________
Both List_A and List_B tables have an index
on the ID column, and both tables are very large!
The environment is UDB.
Which query is more efficient? Please give valid reasons!