DBMS BCA334 - (Quiz)
DBMS BCA334 - (Quiz)
DBMS BCA334 - (Quiz)
Draft saved
Exam
No redo
No undo
Clear selection
_________ state confirms the constraints and structure, that are provided in the
schema.
VALID
cardinality
The representational data model is also called as: (choose all that are applicable)
False
True
Clear selection
For each attribute of a relation, there is a set of permitted values, called the
________ of that attribute.
domain
Display all the records if the employees are of the age: 35 - 45 years, from the
employees table. (2 Marks)
Write the DML and DDL commands to destroy all the records of “Employee”
table. (2 Marks)
recursive
empty
In ER diagram, double lines represent ________.
Cardinality N
Weak Entity
Cardinality 1
Total Participation
Clear selection
ORDERS.customerID=CUSTOMERS.customerID;
Join
Union
Selection
Projection
Clear selection
database
relational model
double rectangle
Write a query to create a table called “CS_Faculty” from the existing table
“Faculty”; CS_Faculty table should contain all the records of Computer Science
faculty only. (3 Marks)
trim
Left Join is not: (select all that are not applicable) (3 marks)
Displays all records of left table and null values from right table
Displays all records and null values from left and right tables
Chooses the records that are not not matching from the right table
Displays null values of left table and all records from right table
Conceptual analyst
Execution analyst
System analyst
Occasional analyst
Clear selection
The foreign key allows: (select all that are applicable)
Duplicate values matching with the primary key table , null values
Duplicate values matching with the primary key table , not null values
For the following relations, write a query to display the number of books each
author has published along with the author’s email and name. (3 Marks)
Your answer
data
PROJECT
Which of the following is a DDL command.
Update
Drop
Merge
Delete
Union
Clear selection
____________ relational algebra operation chooses only certain rows but need not
be all.
PROJECT
Linear
Linear or nonlinear
non linear
Clear selection
Which of the following is a valid SQL statement to select the last_name and
first_name columns of the club_member table?
Clear selection
Repeatable read
Serializable
Read uncommitted
Read committed
Clear selection
The big number of concurrent transactions with not much delays are supported
by _________.
Write a query to find out and display how many different cities the employees
are from, from the employees table. (2 Marks)
Write 2 MySQL queries to create the following tables with the required
constraints: (3 Marks)
create table customers (customerId int primary key, businessName varchar(40), officePhone
varchar(12));
create table orders (orderDate date, customerId int, productCode varchar(10), foreign key
Write the MySQL query for showing the average value of “salary” from the
employees table, with the heading as “Average Salary”, per each department.
Clear selection
Atomicity
Concurrency
Durability
Isolation
Clear selection
A table can have : (select all that apply) (2 Marks)
Write the MySQL query for showing the highest value of “salary” from the
employees table, with the heading as “Highest Salary”.
Meta Language
Clear selection
database
If two relations R and S are joined, then the non-matching tuples of both R and S
are ignored in ________.
Inner join
Clear selection
Strong entity
Weak entity
Relationship
Connecting line
Display all the records if the employees are from any of the cities: Bangalore,
Mumbai, Delhi, Chennai and Kolkata, from employees table. (2 Marks)
select
Not a Relational Algebra operation.
Division operator.
Aggregation operators.
Projection operator.
Selection operator.
Clear selection
Update anomaly.
Dirty read
Unrepeatable read.
Clear selection
Create a table called “Employee” with the fields EID, Name, City, Age, phoneNum;
EID number should be auto generated. City, if not inserted by the user then it
should be “Bangalore” as most of the employees are from Bangalore. Validate
that the age of each of the employee is above 35 years; Ensure that no two
employees have the same phone number. (4 marks)
create table Employee (EID int auto increment = 1, Name varchar(30), City varchar(20)
BTree
Tree-strucure
Hierarchical
Network
Binary Tree
Relational
Clear selection
SQL command that deletes all the records but retains the structure ________.
order by
Page 2 of 2
Forms