0

DBMS

Description: DBMS Database ConceptsRelational Functions of DBMSSQL
Number of Questions: 15
Created by:
Tags: DBMS Database Concepts Relational Functions of DBMS SQL
Attempted 0/15 Correct 0 Score 0

The process of assigning similar objects/entities to object classes/entity type is known as

  1. classification

  2. instantiation

  3. specialisation

  4. generalisation

  5. none of these


Correct Option: A
Explanation:

The process of assigning similar objects/entities to object classes/entity type is known as classification.

A subclass can be in more than one class or subclass relationship. What is the name of this process?

  1. Specialisation

  2. Specialisation lattice

  3. Shared subclass

  4. Specialisation hierarchy

  5. None of these


Correct Option: B
Explanation:

Specialisation lattice has the constraints that a subclass can be a subclass of more than one class/subclass relationship.

To filter the tuples of a relation on which it is applied based on some condition mentioned is called _________.

  1. rename operation

  2. project operation or projection

  3. unary operation

  4. select operation or selection

  5. option 3 and 4


Correct Option: D
Explanation:

To filter the tuples of a relation on which it is applied based on some conditions mentioned is called as selection.

How can you define a weak entity type?

  1. It is dominant entity type.

  2. It is coordinate entity type.

  3. It is parent entity type.

  4. It is child entity type.

  5. None of these


Correct Option: D
Explanation:

An entity type that is existence dependent on some other entity type is called as child/weak entity type.

Which of the following terms describe(s) strong entity type?

  1. Child entity type

  2. Parent entity type

  3. Owner entity type

  4. Option 1 and 3

  5. Both 2 and 3


Correct Option: E
Explanation:

Both 2 and 3 both can describe strong entity type.

Which of the following terms is used to describe minimal super key?

  1. Prime attribute

  2. Primary key

  3. Candidate key

  4. Partial key

  5. None of these


Correct Option: C
Explanation:

Minimal super key is called as candidate key.

With reference to a table which key resides in another table?

  1. The primary key

  2. The reference key

  3. The candidate key

  4. The foreign key

  5. None of these


Correct Option: D
Explanation:

A foreign key means that values in one table must also appear in another table.

Which key or part of that key cannot contain a null value?

  1. Primary key

  2. Secondary key

  3. Super key

  4. Both 1 and 2

  5. None of these


Correct Option: A
Explanation:

Part of primary key cannot contain a null value.

From which of the following keys does a database designer choose a primary key?

  1. The super keys

  2. The candidate keys

  3. The prime attribute

  4. Options 2 and 3

  5. None of these


Correct Option: B
Explanation:

From candidate keys a database designer chooses a primary key.

Which of the following queries corresponds to finding the name and number of employees in each department?

  1. select dname,count(*) from emp group by dname

  2. select dname,count(*) from emp group by eid

  3. select dname,count(*) from emp group by dname,eid

  4. options 2 and 3

  5. none of these


Correct Option: A
Explanation:

We can get the corresponding result as required by grouping with dname.

Which predicate is not use in SQL?

  1. IN

  2. BETWEEN

  3. LIKE

  4. AMONG

  5. None of these


Correct Option: D
Explanation:

This is not a valid predicate in SQL

SELECT ename FROM emp WHERE ename LIKE \'S%\'; Which of the following names can be selected by the above query?

  1. SURESH

  2. SURES

  3. URES

  4. Both 1 and 2

  5. None of these


Correct Option: D
Explanation:

The query will find any string that begins with the letter 'S'

Which of the following commands makes the updates performed by the transaction permanent in the database?

  1. ROLLBACK

  2. COMMIT

  3. TRUNCATE

  4. DELETE

  5. None of these


Correct Option: B
Explanation:

COMMIT transaction makes all data modifications performed since the start from the transaction from a permanent part of the database, it frees the resources held by the transaction.

SELECT ename FROM emp WHERE ename LIKE '%A_E%'; Which name from the following names can selected by the above query?

  1. SALEA

  2. ALISHE

  3. SASLEA

  4. Options 2 and 3

  5. None of these


Correct Option: A
Explanation:

It will find any string that contains the letter 'A' followed by any single character followed by the letter 'E'. And in between the name there is a ALE form.

Which query among following can give more than one name (employee name or ename)?

  1. SELECT ename WHERE ename AMONG ('value1', 'value2','value3', ...)

  2. SELECT ename WHERE ename = ('value1', 'value2','value3', ...)

  3. SELECT ename WHERE ename IN ('value1', 'value2','value3', ...)

  4. SELECT ename WHERE ename WITH ('value1', 'value2','value3', ...)

  5. None of these


Correct Option: C
Explanation:

IN will find any value existing in a set of candidates.

- Hide questions