adplus-dvertising
frame-decoration

Question

If a1, a2, a3 are attributes in a relation and S is another relation, which of the following is an incorrect specification of an integrity constraint?

a.

primary key(a1, a2, a3)

b.

primary key(a1)

c.

foreign key(a1, a2) references S

d.

foreign key(a1, a2)

Posted under DBMS

Answer: (d).foreign key(a1, a2)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If a1, a2, a3 are attributes in a relation and S is another relation, which of the following is an incorrect specification of an integrity constraint?

Similar Questions

Discover Related MCQs

Q. What is the syntax to load data into the database? (Consider D as the database and a, b, c as data)

Q. Which of the following commands do we use to delete a relation (R) from a database?

Q. Which of the following commands do we use to delete all the tuples from a relation (R)?

Q. Choose the correct command to delete an attribute A from a relation R

Q. create table apartment(ownerID varchar (5), ownername varchar(25), floor numeric(4,0), primary key (ownerID));
Choose the correct option regarding the above statement

Q. What does the notnull integrity constraint do?

Q. Which of the following keywords is used beside the select clause to explicitly specify that duplicates are not removed?

Q. Which of the following logical connectives is not included in SQL?

Q. The where clause is a predicate involving attributes of the relation in the ______ clause.

Q. select distinct dept_name
from institute;

What does the above query do?

Q. What does the following query do?
select name, ID, branch

from student, department

where student.branch = department.branch;

Q. The ________ clause is used to list the attributes desired in the result of a query

Q. If we specify multiple relations in the from clause and do not specify any conditions in the where clause, what will the result be?

Q. State true or false: Multiple conditions in the where clause are separated by a “,”

Q. What does the natural join operation do?

Q. Observe the following query and choose the correct option.
select name, ID

from student natural join department natural join section

Q. Which keyword is used to rename a relation in a query?

Q. While operating with strings, what does “_ _ _%” match with?

Q. What is the function of the union operation?

Q. What is the function of the intersect operation?