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

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

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

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