Derby
  1. Derby
  2. DERBY-4192

OFFSET and FETCH FIRST documentation improvement

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.5.1.1
    • Fix Version/s: 10.6.1.0
    • Component/s: None
    • Labels:
      None
    • Urgency:
      Low
    • Issue & fix info:
      Newcomer

      Description

      I have a suggestion regarding the documentation for the OFFSET and FETCH FIRST documentation. On these documents, we have three SQL examples on the usage of these clauses. I suggest that we add a brief description of what each clause does.

      This might help the users to have a better understanding at first of how the said clauses work.

      Here are the examples with a possible description:

      – This query fetches the first row from T
      SELECT * FROM T FETCH FIRST ROW ONLY;

      – This query skips the first 10 rows and fetches the following 10.
      – It will fetch rows 11 through 20 (inclusive) from the table T, sorted by I
      SELECT * FROM T ORDER BY I OFFSET 10 ROWS FETCH NEXT 10 ROWS ONLY;

      – This query skips the first 100 rows from T.
      – If the table has less than 101 records, then an empty result set is returned.
      SELECT * FROM T OFFSET 100 ROWS;

      1. derby-4192-2.patch
        1.0 kB
        Kim Haase
      2. rrefsqljoffsetfetch.html
        5 kB
        Kim Haase
      3. refderby.pdf
        1.52 MB
        Tiago R. Espinha
      4. derby-4192.patch
        1 kB
        Tiago R. Espinha
      5. derby-4192.patch
        1 kB
        Tiago R. Espinha

        Activity

        Gavin made changes -
        Workflow jira [ 12461901 ] Default workflow, editable Closed status [ 12800230 ]
        Dag H. Wanvik made changes -
        Issue & fix info [Newcomer]
        Tiago R. Espinha made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Kim Haase made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Derby Info [Patch Available]
        Fix Version/s 10.6.0.0 [ 12313727 ]
        Resolution Fixed [ 1 ]
        Kim Haase made changes -
        Attachment rrefsqljoffsetfetch.html [ 12406829 ]
        Attachment derby-4192-2.patch [ 12406830 ]
        Tiago R. Espinha made changes -
        Attachment derby-4192.patch [ 12406707 ]
        Attachment refderby.pdf [ 12406708 ]
        Tiago R. Espinha made changes -
        Derby Info [Patch Available]
        Tiago R. Espinha made changes -
        Attachment derby-4192.patch [ 12406697 ]
        Tiago R. Espinha made changes -
        Field Original Value New Value
        Assignee Tiago R. Espinha [ espinha ]
        Tiago R. Espinha created issue -

          People

          • Assignee:
            Tiago R. Espinha
            Reporter:
            Tiago R. Espinha
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development