Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2238

Example of ScalarSubquery in Derby Reference Manual is not ScalarSubquery

    XMLWordPrintableJSON

Details

    • Low

    Description

      In the page, I found next example.

      – Introduce a way of "generating" new data values,
      – using a query which selects from a VALUES clause (which is an
      – alternate form of a fullselect).
      – This query shows how a table can be derived called "X" having
      – 2 columns "R1" and "R2" and 1 row of data.
      SELECT R1,R2
      FROM (VALUES('GROUP 1','GROUP 2')) AS X(R1,R2)

      I think this is not ScalarSubquery because the result have two columns.

      Attachments

        1. DERBY-2238_2.diff
          0.7 kB
          Myrna van Lunteren
        2. DERBY-2238.diff
          0.7 kB
          Myrna van Lunteren
        3. rrefscalarsubquery.html
          4 kB
          Myrna van Lunteren
        4. rrefscalarsubquery.html
          4 kB
          Myrna van Lunteren

        Activity

          People

            myrna Myrna van Lunteren
            tmnk Tomohito Nakayama
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: