CS8492 - DATABASE MANAGEMENT SYSTEMS (UNIT 1)
UNIT 1 - RELATIONAL DATABASES
20 flashcards · Computer Science · by Poongothai K
A relational database consists of a collection of A) Tables B) Fields C) Records D) Keys
A) Tables
A __________ in a table represents a relationship among a set of values A) Column B) Key C) Row D) Entry
C) Row
The term __________ is used to refer to a row
Tuple
The tuples of the relations can be of ________ order A) Any B) Same C) Constant D) Sorted
A) Any
Which one of the following is a set of one or more attributes taken collectively to uniquely identify a record? A) Candidate Key B) Super Key C) Foreign Key
B) Super Key
Consider attributes ID, NAME and CITY. Which one of this can be considered as a super key? A) NAME B) ID C) CITY D) CITY, ID
B) ID
A ________ is a property of the entire relation, rather than the individual tuples in which each tuple is unique.
Key
Which one of the following cannot be taken as a primary key? A) Id B) Register number C) Dept_Id D) Street
D) Street
Using which language can a user request information from a database? A) Query B) Relational C) Structural D) Compiler
A) Query
The __________ operation performs a set union of two "similarly structured" tables
Union
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
C) Select
SELECT * FROM employee What type of statement is this? A) DML B) DDL C) View D) Integrity Constraint
A) DML
To remove a relation from an SQL database, we use the _______ command
Drop table
The ________ clause is used to list the attributes desired in the result of a query.
Select
In the given query, which of the keyword has to be inserted? INSERT INTO employee _________ (1002, Jeoy, 2000); A) Table B) Values C) Relation D) Field
B) Values
The intersection operator is used to get the _______ tuples.
Common
The number of attributes in relation is called as its ________
Degree
_________ joins are SQL server default
Inner
Using the _______ clause retains only one copy of such identical tuples
Unique
Which of the following is not an aggregate function? A) Avg B) Sum C) With D) Min
C) With