
DBMS_CSN_AW5_QUIZ

Quiz
•
Computers
•
University
•
Hard
K.vinay kumar
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which is the correct SQL command to create the table borrower having two foreign keys customer name and loan number by using the following schemas? Primary keys are underlined in the schemas.
• loan(loan number, branch name, amount) • customer(customer name, customer street, customer city) • borrower(customer name, loan number)
CREATE TABLE borrower( customer_name VARCHAR(20), loan_number NUMERIC(12,2), PRIMARY KEY(customer_name, loan_number), FOREIGN KEY(customer_name) REFERENCES customer, FOREIGN KEY(loan_number) REFERENCES loan);
CREATE TABLE borrower(
customer_name VARCHAR(20),
loan_number NUMERIC(12,2),
PRIMARY KEY(customer_name),
FOREIGN KEY(customer_name) REFERENCES customer,
FOREIGN KEY(loan_number) REFERENCES loan);
CREATE TABLE borrower( customer_name VARCHAR(20) PRIMARY KEY, loan_number NUMERIC(12,2) PRIMARY KEY, FOREIGN KEY(customer_name) REFERENCES customer, FOREIGN KEY(loan_number) REFERENCES loan);
NONE OF THE ABOVE
OPTION B AND C
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Choose the correct SQL command to display the customer name and loan number of customers
who have a loan from bank and whose name starts with ’A’. Primary keys are underlined in
the schema.
• borrower(customer name, loan number)
SELECT * FROM borrower WHERE customer_name = ’A’;
SELECT * FROM borrower WHERE customer_name LIKES ’A%’;
SELECT * FROM borrower WHERE customer_name LIKE ’%A’;
SELECT * FROM borrower WHERE customer_name LIKE ’A%’;
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is/are the correct SQL command/s to display the loan numbers of the customers in
ascending order of their loan amounts. Primary key is underlined in the schemas.
• loan(loan number, branch name, amount)
SELECT loan_number FROM loan SORT BY amount;
SELECT loan_number FROM loan GROUP BY amount;
SELECT loan_number FROM loan ORDER BY amount;
SELECT loan_number FROM loan ORDER BY amount ASC;
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Every weak entity set can be converted into a
strong entity set by
using generalization
using aggregation
adding appropriate attributes
OPTION A AND B
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How to Add unique constraint to a table during it’s creation at table level with user choice of unique constraint name.
choose the correct answer from the given options
ALTER TABLE DEPT ADD CONSTAINTS uk_dept_deptno UNIQUE(DEPTNO);
CREATE TABLE DEPT (DEPTNO NUMBER(2), DNAME VARCHAR2(15), CONSTRAINT u1 UNIQUE(DEPTNO));
CREATE TABLE DEPT (DEPTNO NUMBER(2), DNAME VARCHAR2(15), CONSTRAINTS u-1 UNIQUE(DEPTNO));
OPTION A AND C
NONE OF THE ABOVE
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Data modeling is performed for the following reasons:
We draw an ER solely to please the users; once completed, the ERD is never referred to again
as it serves no purpose in the real world.
We do not need datamodels; we can just start coding right away.
The ERD becomes a blueprint for designing the actual system
OPTION A AND B
NONE OF THE ABOVE
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A/an _________'s value can be a number, a character string, a date, an image, a sound
Table
Entity
Attribute
Disjoint partial
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
2C DBMS Theory Quiz 1

Quiz
•
University
15 questions
Chapter 3_E-Commerce Web Site Development_Ex.1

Quiz
•
University
10 questions
Microsoft Excel Basics

Quiz
•
5th Grade - University
9 questions
System Analysis and Design - Phase III. A - Introduction

Quiz
•
University
10 questions
DBMS

Quiz
•
University
12 questions
Database Design & Development SQL 2

Quiz
•
University
14 questions
Using Credit 2

Quiz
•
9th Grade - University
10 questions
SYS 1591

Quiz
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade