※This sample exam is different from those that appear in the actual OSS-DB Exam.
2018/04/07
A constraint on a primary key (PRIMARY KEY) can be defined as a column constraint or a table constraint, but if a combination of two or more columns is a primary key, it is defined as a table constraint.
When it is defined as a column constraint, write it as PRIMARY KEY following the data definition of the column name and column as in option B.
The table constraint is described after all column definitions, but in this case, as in choice E, describe the list of columns to be subject to the primary key after PRIMARY KEY in parentheses. Parentheses are required even if there is only one target column as in this example.
Therefore, the correct answers are B and E.