Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.1.3.3, 10.2.2.0, 10.3.3.1, 10.4.2.1, 10.5.3.1, 10.6.1.0
    • Fix Version/s: None
    • Component/s: SQL
    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached

      Description

      The following query shows the error using the Derby demo toursDB:
      SELECT FLIGHT_ID , SEGMENT_NUMBER , ARRIVE_TIME
      FROM (
      (SELECT HW.FLIGHT_ID , HW.SEGMENT_NUMBER , HW.ARRIVE_TIME FROM FLIGHTS HW)
      UNION
      (SELECT SW.FLIGHT_ID , SW.SEGMENT_NUMBER , SW.ARRIVE_TIME FROM FLIGHTS SW)
      ) SRC;
      ERROR 42X01: Syntax error: Encountered "UNION" at line 4, column 12.

      The following query works:
      SELECT FLIGHT_ID , SEGMENT_NUMBER , ARRIVE_TIME
      FROM (
      SELECT HW.FLIGHT_ID , HW.SEGMENT_NUMBER , HW.ARRIVE_TIME FROM FLIGHTS HW
      UNION
      SELECT SW.FLIGHT_ID , SW.SEGMENT_NUMBER , SW.ARRIVE_TIME FROM FLIGHTS SW
      ) SRC;

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              daskxg Kenneth Gee
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: