Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: 10.2
    • Component/s: None
    • Labels:
      None

      Description

      In some situations, this syntax would help:

      ALL <subquery> BETWEEN a AND b
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            This is apparently non-standard. The standard only allows ALL and ANY for <equals operator>, <not equals operator>, <less than operator>, <greater than operator>, <less than or equals operator>, <greater than or equals operator>.

            Don't know why, actually. Allowing BETWEEN is perfectly logical, I'd say.

            Show
            serg Sergei Golubchik added a comment - This is apparently non-standard. The standard only allows ALL and ANY for <equals operator>, <not equals operator>, <less than operator>, <greater than operator>, <less than or equals operator>, <greater than or equals operator>. Don't know why, actually. Allowing BETWEEN is perfectly logical, I'd say.
            Hide
            f_razzoli Federico Razzoli added a comment -

            Also, the equivalent of

            <subquery> BETWEEN <val1> AND <val2>

            is:

            val1 <= <subquery> AND val2 >= <subquery>

            which is not optimized (subquery is executed twice). And it's horribly verbose.

            Show
            f_razzoli Federico Razzoli added a comment - Also, the equivalent of <subquery> BETWEEN <val1> AND <val2> is: val1 <= <subquery> AND val2 >= <subquery> which is not optimized (subquery is executed twice). And it's horribly verbose.

              People

              • Assignee:
                Unassigned
                Reporter:
                f_razzoli Federico Razzoli
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: