DBMS
Fundamental DBMS concepts covering entity-relationship modeling, keys, relational operations, and SQL queries
Questions
The process of assigning similar objects/entities to object classes/entity type is known as
- classification
- instantiation
- specialisation
- generalisation
- none of these
A subclass can be in more than one class or subclass relationship. What is the name of this process?
- Specialisation
- Specialisation lattice
- Shared subclass
- Specialisation hierarchy
- None of these
To filter the tuples of a relation on which it is applied based on some condition mentioned is called _________.
- rename operation
- project operation or projection
- unary operation
- select operation or selection
- option 3 and 4
How can you define a weak entity type?
- It is dominant entity type.
- It is coordinate entity type.
- It is parent entity type.
- It is child entity type.
- None of these
Which of the following terms describe(s) strong entity type?
- Child entity type
- Parent entity type
- Owner entity type
- Option 1 and 3
- Both 2 and 3
Which of the following terms is used to describe minimal super key?
- Prime attribute
- Primary key
- Candidate key
- Partial key
- None of these
With reference to a table which key resides in another table?
- The primary key
- The reference key
- The candidate key
- The foreign key
- None of these
Which key or part of that key cannot contain a null value?
- Primary key
- Secondary key
- Super key
- Both 1 and 2
- None of these
From which of the following keys does a database designer choose a primary key?
- The super keys
- The candidate keys
- The prime attribute
- Options 2 and 3
- None of these
Which of the following queries corresponds to finding the name and number of employees in each department?
- select dname,count(*) from emp group by dname
- select dname,count(*) from emp group by eid
- select dname,count(*) from emp group by dname,eid
- options 2 and 3
- none of these
Which predicate is not use in SQL?
- IN
- BETWEEN
- LIKE
- AMONG
- None of these
SELECT ename FROM emp WHERE ename LIKE 'S%';
Which of the following names can be selected by the above query?
- SURESH
- SURES
- URES
- Both 1 and 2
- None of these
Which of the following commands makes the updates performed by the transaction permanent in the database?
- ROLLBACK
- COMMIT
- TRUNCATE
- DELETE
- None of these
SELECT ename FROM emp WHERE ename LIKE '%A_E%';
Which name from the following names can selected by the above query?
- SALEA
- ALISHE
- SASLEA
- Options 2 and 3
- None of these
Which query among following can give more than one name (employee name or ename)?
- SELECT ename WHERE ename AMONG ('value1', 'value2','value3', ...)
- SELECT ename WHERE ename = ('value1', 'value2','value3', ...)
- SELECT ename WHERE ename IN ('value1', 'value2','value3', ...)
- SELECT ename WHERE ename WITH ('value1', 'value2','value3', ...)
- None of these