Hello I have a table

item1

|   Item    |   Qnty    |   ProdSched   |
|    a      |    1      |       1       |
|    b      |    2      |       1       |
|    c      |    3      |       1       |
|    a      |    4      |       2       |
|    b      |    5      |       2       |
|    c      |    6      |       2       |

is There a way i can output it like this using sql SELECT?

    |   Item    |   ProdSched(1)(Qnty)  |   ProdSched(2)(Qnty)  |
    |    a      |           1           |       4               |
    |    b      |           2           |       5               |
    |    c      |           3           |       6               |

Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.