Sql Basic
1.

Using which language can a user request information from a database?

A.  

Query

B.  

Relational

C.  

Structural

D.  

Compiler

2.

Student(ID, name, dept name, tot_cred)
In this query which attributes form the primary key?

A.  

Name

B.  

Dept

C.  

Tot_cred

D.  

ID

3.

Which one of the following is a procedural language?

A.  

Domain relational calculus

B.  

Tuple relational calculus

C.  

Relational algebra

D.  

Query language

4.

The result which operation contains all pairs of tuples from the two relations, regardless of whether their attribute values match.

A.  

Join

B.  

Cartesian product

C.  

Intersection

D.  

Set difference

5.

The most commonly used operation in relational algebra for projecting a set of tuple from a relation is

A.  

Join

B.  

Projection

C.  

Select

D.  

Union

6.

The _______ operator takes the results of two queries and returns only rows that appear in both result sets.

A.  

Union

B.  

Intersect

C.  

Difference

D.  

Projection

7.

A ________ is a pictorial depiction of the schema of a database that shows the relations in the database, their attributes, and primary keys and foreign keys.

A.  

Schema diagram

B.  

Relational algebra

C.  

Database diagram

D.  

Schema flow

8.

The _________ provides a set of operations that take one or more relations as input and return a relation as an output.

A.  

Schematic representation

B.  

Relational algebra

C.  

Scheme diagram

D.  

Relation flow

9.

Which of the following is not a DDL command?

A.  

TRUNCATE

B.  

ALTER

C.  

CREATE

D.  

UPDATE

10.

Which of the following are TCL commands?

A.  

COMMIT and ROLLBACK

B.  

UPDATE and TRUNCATE

C.  

SELECT and INSERT

D.  

GRANT and REVOKE