Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. catalpa

    VIEW with union all: selection problem

    Yes! I'm very sorry, I forgot to include table 2. Excuse me, Brian, for this banal question. Thank you very much
  2. catalpa

    VIEW with union all: selection problem

    This is an example of my view. create view VIEWTEST as select '1' as TYPE, TABLE1.KEYFIELD1 as KEYFIELD1, '' as KEYFIELD2, '' as KEYFIELD3, TABLE1.FIELDX as FIELD1 from TABLE1 when TABLE1.FIELDS = TABLE2.FIELDS union all SELECT '2' as TYPE, '' as KEYFIELD1, TABLE2.KEYFIELD10 as KEYFIELD2...
  3. catalpa

    DB2 SELECT / UNION - substitute null field

    SELECT TABLEA.CODE, TABLEA.DATE, TABLEA.FIELD FROM TABLEA where TABLEA.CODE = 'XX' UNION all SELECT TABLEB.CODE, TABLEB.XXDATE AS DATE, TABLEB.FIELD FROM TABLEB where TABLEB.CODE <> 'ZZ' UNION all SELECT TABLEC.CODE, TABLEC.DATE, TABLEC.FIELD FROM TABLEC where...

Part and Inventory Search

Back
Top