Hi I AM TRYING TO RETRIEVE INFORMATION FOR THE COLUMN NAME HOWEVER WOULD LIKE TO SEE THE 1ST QUERY IN 1 COLUMN AND THE 2ND QUERY IN ANOTHER COLUMN(NAME2) HOWEVER THE BELOW QUERY COMBINES THE SEARCH INTO 1 COLUMN. THANKS IN ADVANCE.
SELECT NAME as "NAME1" FROM GIS40.ENVELOPE WHERE ENVELOPE_ID IN (SELECT VALUE FROM GIS40.ENVELOPE_PARMS WHERE NAME='NextEnvelope')
UNION
SELECT NAME as "NAME2" FROM GIS40.ENVELOPE WHERE ENVELOPE_ID IN (SELECT ENVELOPE_ID FROM GIS40.ENVELOPE_PARMS)
SELECT NAME as "NAME1" FROM GIS40.ENVELOPE WHERE ENVELOPE_ID IN (SELECT VALUE FROM GIS40.ENVELOPE_PARMS WHERE NAME='NextEnvelope')
UNION
SELECT NAME as "NAME2" FROM GIS40.ENVELOPE WHERE ENVELOPE_ID IN (SELECT ENVELOPE_ID FROM GIS40.ENVELOPE_PARMS)