Sql query help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • supriya783
    New Member
    • May 2007
    • 1

    Sql query help

    Hi frnds,
    i am having two tables.

    vendordetais(ta ble1 name) with fields
    vid
    1
    2
    name
    abc
    xyz


    cuisins(table2 name)

    vid

    1
    1
    2
    2

    cuisins

    chines
    thai
    italian
    indian


    and i want the resultant table as follows


    name

    abc
    xyz


    cuisins

    chinese,thai
    italian,indian

    can anybody help me regarding this
  • chandu031
    Recognized Expert New Member
    • Mar 2007
    • 77

    #2
    Originally posted by supriya783
    Hi frnds,
    i am having two tables.

    vendordetais(ta ble1 name) with fields
    vid
    1
    2
    name
    abc
    xyz


    cuisins(table2 name)

    vid

    1
    1
    2
    2

    cuisins

    chines
    thai
    italian
    indian


    and i want the resultant table as follows


    name

    abc
    xyz


    cuisins

    chinese,thai
    italian,indian

    can anybody help me regarding this
    Hi,

    The query is a pretty straight forward join on the two tables unless
    you want the result to be a comma seperated?

    Like this:

    abc chinese,thai
    xyz italian,indian

    Cheers!!

    Comment

    Working...