![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
ok, the book I am reading discusses this type of query: SELECT p.pname FROM P, SH, S WHERE P.pnum = SH.pnum AND SH.snum = S.snum AND S.city = 'NY'; and it compares whether to do the full join first then select, or the other way round. Anyway the example first joins S and SH over the common column to form a table TempA, and then sorts the table? The sorting actually takes up most of the time >80% of total cost. Is sorting of a temporary table a necessary step in an execution plan? |
#22
| |||
| |||
|
|
ok, the book I am reading discusses this type of query: SELECT p.pname FROM P, SH, S WHERE P.pnum = SH.pnum AND SH.snum = S.snum AND S.city = 'NY'; and it compares whether to do the full join first then select, or the other way round. Anyway the example first joins S and SH over the common column to form a table TempA, and then sorts the table? The sorting actually takes up most of the time >80% of total cost. Is sorting of a temporary table a necessary step in an execution plan? |
#23
| |||
| |||
|
|
ok, the book I am reading discusses this type of query: SELECT p.pname FROM P, SH, S WHERE P.pnum = SH.pnum AND SH.snum = S.snum AND S.city = 'NY'; and it compares whether to do the full join first then select, or the other way round. Anyway the example first joins S and SH over the common column to form a table TempA, and then sorts the table? The sorting actually takes up most of the time >80% of total cost. Is sorting of a temporary table a necessary step in an execution plan? |
#24
| |||
| |||
|
|
ok, the book I am reading discusses this type of query: SELECT p.pname FROM P, SH, S WHERE P.pnum = SH.pnum AND SH.snum = S.snum AND S.city = 'NY'; and it compares whether to do the full join first then select, or the other way round. Anyway the example first joins S and SH over the common column to form a table TempA, and then sorts the table? The sorting actually takes up most of the time >80% of total cost. Is sorting of a temporary table a necessary step in an execution plan? |
#25
| |||
| |||
|
|
ok, the book I am reading discusses this type of query: SELECT p.pname FROM P, SH, S WHERE P.pnum = SH.pnum AND SH.snum = S.snum AND S.city = 'NY'; and it compares whether to do the full join first then select, or the other way round. Anyway the example first joins S and SH over the common column to form a table TempA, and then sorts the table? The sorting actually takes up most of the time >80% of total cost. Is sorting of a temporary table a necessary step in an execution plan? |
#26
| |||
| |||
|
|
ok, the book I am reading discusses this type of query: SELECT p.pname FROM P, SH, S WHERE P.pnum = SH.pnum AND SH.snum = S.snum AND S.city = 'NY'; and it compares whether to do the full join first then select, or the other way round. Anyway the example first joins S and SH over the common column to form a table TempA, and then sorts the table? The sorting actually takes up most of the time >80% of total cost. Is sorting of a temporary table a necessary step in an execution plan? |
#27
| |||
| |||
|
|
ok, the book I am reading discusses this type of query: SELECT p.pname FROM P, SH, S WHERE P.pnum = SH.pnum AND SH.snum = S.snum AND S.city = 'NY'; and it compares whether to do the full join first then select, or the other way round. Anyway the example first joins S and SH over the common column to form a table TempA, and then sorts the table? The sorting actually takes up most of the time >80% of total cost. Is sorting of a temporary table a necessary step in an execution plan? |
#28
| |||
| |||
|
|
ok, the book I am reading discusses this type of query: SELECT p.pname FROM P, SH, S WHERE P.pnum = SH.pnum AND SH.snum = S.snum AND S.city = 'NY'; and it compares whether to do the full join first then select, or the other way round. Anyway the example first joins S and SH over the common column to form a table TempA, and then sorts the table? The sorting actually takes up most of the time >80% of total cost. Is sorting of a temporary table a necessary step in an execution plan? |
![]() |
| Thread Tools | |
| Display Modes | |
| |