Join 2 unrelated tables

  • Hi All (SQLserver 2000)

    I have 2 unrelated table (tblStaff and tblModule) as follows: -

    tblStaff

    1  Fred

    2  John

    3  Sarah

    4 Jack

     

    tblModule

    Module1

    Module2

    Module3

    I need to return a result set as follows

    1  Fred Module1

    1  Fred Module2

    1  Fred Module3

    2  John Module1

    2  John Module2

    2  John Module3

    3  Sarah Module1

    3  Sarah Module2

    3  Sarah Module3

    4  Jack Module1

    4  Jack Module2

    4  Jack Module3

    The tables have no relationship between them. I need to code this as part of a Stored Proc.

    Thanks

    CCB

  • Ignore the previous post. Have sussed it.

    CCB

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

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