![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Which of the following methods is faster for retrieving records within a date range? Option A: Paid_Date >= '01-JAN-2003' AND Paid_Date <= '01-MAR-2003' Option B: Paid_Date BETWEEN '01-JAN-2003' AND '01-MAR-2003' Thanks! |
#3
| |||
| |||
|
|
Just_Buy wrote: Which of the following methods is faster for retrieving records within a date range? Option A: Paid_Date >= '01-JAN-2003' AND Paid_Date <= '01-MAR-2003' Option B: Paid_Date BETWEEN '01-JAN-2003' AND '01-MAR-2003' Thanks! Do your homework on your computer ... not in a usenet group. It would take you less time, and be substantially less aggravating to run EXPLAIN PLAN on these two statements than it has been to read this answer and get upset at my response which doubtless you will choose to do. |
#4
| |||
| |||
|
|
Which of the following methods is faster for retrieving records within a date range? Option A: Paid_Date >= '01-JAN-2003' AND Paid_Date <= '01-MAR-2003' Option B: Paid_Date BETWEEN '01-JAN-2003' AND '01-MAR-2003' Thanks! |
#5
| |||
| |||
|
|
My apologies for not being an Oracle expert like yourself. Since I am not aware of the "EXPLAIN PLAN" syntax I will research this syntax and conduct some tests. Once completed I will post my findings back to this Usenet group so others can learn. Please correct me if I'm wrong, but learning from others is a goal of these Usenet groups. Daniel Morgan <damorgan (AT) exxesolutions (DOT) com> wrote Just_Buy wrote: Which of the following methods is faster for retrieving records within a date range? Option A: Paid_Date >= '01-JAN-2003' AND Paid_Date <= '01-MAR-2003' Option B: Paid_Date BETWEEN '01-JAN-2003' AND '01-MAR-2003' Thanks! Do your homework on your computer ... not in a usenet group. It would take you less time, and be substantially less aggravating to run EXPLAIN PLAN on these two statements than it has been to read this answer and get upset at my response which doubtless you will choose to do. |
#6
| |||
| |||
|
|
It seems to me that the 'between' should work faster, as long as you don't have something like to_char, to_date, etc. Correct me if I was wrong. "Just_Buy" <ohbej (AT) hotmail (DOT) com> wrote in message news:65275ae5.0306250757.b859f09 (AT) posting (DOT) google.com... Which of the following methods is faster for retrieving records within a date range? Option A: Paid_Date >= '01-JAN-2003' AND Paid_Date <= '01-MAR-2003' Option B: Paid_Date BETWEEN '01-JAN-2003' AND '01-MAR-2003' Thanks! |
#7
| |||
| |||
|
|
My apologies for not being an Oracle expert like yourself. Since I am not aware of the "EXPLAIN PLAN" syntax I will research this syntax and conduct some tests. Once completed I will post my findings back to this Usenet group so others can learn. Please correct me if I'm wrong, but learning from others is a goal of these Usenet groups. Daniel Morgan <damorgan (AT) exxesolutions (DOT) com> wrote Just_Buy wrote: Which of the following methods is faster for retrieving records within a date range? Option A: Paid_Date >= '01-JAN-2003' AND Paid_Date <= '01-MAR-2003' Option B: Paid_Date BETWEEN '01-JAN-2003' AND '01-MAR-2003' Thanks! Do your homework on your computer ... not in a usenet group. It would take you less time, and be substantially less aggravating to run EXPLAIN PLAN on these two statements than it has been to read this answer and get upset at my response which doubtless you will choose to do. |
#8
| |||
| |||
|
|
You missed the point. Everyone can run EXPLAIN PLAN. ... |
#9
| |||
| |||
|
|
"Daniel Morgan" <damorgan (AT) exxesolutions (DOT) com> wrote in message news:3EFB1781.BAA7CC10 (AT) exxesolutions (DOT) com... You missed the point. Everyone can run EXPLAIN PLAN. ... Daniel, that's not strictly true. To run EXPLAIN PLAN a user must have the necessary priveleges to either access an existing "PLAN TABLE" or to create one of thier own. These priveleges aren't automatically granted to every user !! Paul Dixon |
#10
| |||
| |||
|
|
Now if you don't have CREATE TABLE that could be a problem. But if you don't have CREATE TABLE you aren't a developer. |
![]() |
| Thread Tools | |
| Display Modes | |
| |