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


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

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