Select Distinct Data

  • Hi

    I have 2 tables with Item Code . I want to select distinct itemcode from 2 tables

    ItemCode                               ItemCode

    a                                                    a

    b                                                     c

    Output should be

    a

    b

    c

     

    Thanks

     

  • SELECT ItemCode from T1 UNION SELECT ItemCode from T2

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply