PrepAway - Latest Free Exam Questions & Answers

4 Comments on “Which statement creates a composite key?

  1. avalon333 says:

    Answer A is wrong, gives error:
    Msg 8110, Level 16, State 0, Line 1
    Cannot add multiple PRIMARY KEY constraints to table ‘ORDER’.

    Answer B seems wrong, gives error:
    Msg 102, Level 15, State 1, Line 4
    Incorrect syntax near ‘,’.

    Answer C seems wrong, gives error:
    Msg 8135, Level 16, State 0, Line 1
    Table level constraint does not specify column list, table ‘ORDER’.

    Answer D, seems right, query succesfull and 2 PK’s.




    3



    0

Leave a Reply