Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
a) key
b) domain
c) referential-integrity
d) entity-integrity
a) NOT NULL
b) unique
c) option A and B
d) option A or B
(5) NULL is
(6) The property (or set of properties) that uniquely defines each row in a table is called the:
(10) Which statement adds a constraint that ensures the CUSTOMER_NAME column of the
CUSTOMERS table holds a value?
(a) ALTER TABLE customers ADD CONSTRAINT cust_name_nn CHECK customer_name IS NOT
NULL;
(11) You need to modify the STUDENTS table to add a primary key on the STUDENT_ID
column. The table is currently empty. Which statement accomplishes this task?
(c) ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY student_id;
(d) ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
(12) Create table Employee(Emp_id numeric not null, Name varchar(20) , dept_name
varchar(20), Salary numeric, unique(Emp_id,Name));
(13) Foreign key is the one in which the ________ of one relation is referenced in
another relation.
a) Foreign key
b) Primary key
c) References
d) Check constraint