Reg. Query Design

  • Hi SQL Server Gurus,

    I am trying to design a query, say for example:

    Prod_No, Prod_Desc, Prod_Category_No are 3 columns in the table Products.

    I want to write query in such a way that all

    Prod_NO and Prod_Desc are to be displayed by considering particular prod_Category_No(ex: 001, 303, 244).

    Can any one please let me know how to frame this query.

     

    Thanks in Advance

    Rajesh

  • I guess you need something like this:

    Select

    Prod_No,

    Prod_Desc

    from Products

    where Prod_Category_No in (001, 303, 244)

     

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

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