Question Text: Clear My Choice
Question Text: Clear My Choice
Question Text: Clear My Choice
Answer saved
Marked out of 1.00
Flag question
Question text
Question 2
Answer saved
Marked out of 1.00
Remove flag
Question text
Question 3
Answer saved
Marked out of 1.00
Flag question
Question text
Question 4
Answer saved
Marked out of 1.00
Flag question
Question text
Question 5
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of adding a CHECK constraint where CODE
should start with the character ‘BS’.
Select one:
a. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS’));
b. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE = ‘BS’));
c. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS%’));
d. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE VARCHAR(20),
CONSTRAINT CODE_ck CHECK (CODE LIKE ‘BS%’));
Clear my choice
Question 6
Answer saved
Marked out of 1.00
Flag question
Question text
Question 7
Answer saved
Marked out of 1.00
Flag question
Question text
Question 8
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following statement is not true about Foreign Key constraint.
Select one:
a. The foreign key constraint also prevents invalid data from being inserted into the foreign
key column, because it has to be one of the values contained in the table it points to.
b. A foreign key in one table points to a foreign key in another table.
c. The foreign key constraint is used to prevent actions that would destroy links between
tables.
d. Ensures that the relationship between tables remain preserved as data is inserted, deleted and
modified
Clear my choice
Question 9
Answer saved
Marked out of 1.00
Flag question
Question text
Question 10
Answer saved
Marked out of 1.00
Flag question
Question text
A type of constraint that is used to limit the value range that can be placed in a column.
Select one:
a. Default
b. Unqiue
c. Check
d. Not Null