DBMS_CSN_AW5_QUIZ

DBMS_CSN_AW5_QUIZ

University

10 Qs

quiz-placeholder

Similar activities

DBMS_4CSE1_MINOR1_EXAM_4-FEB-2021

DBMS_4CSE1_MINOR1_EXAM_4-FEB-2021

University

7 Qs

Banking Review

Banking Review

KG - University

12 Qs

Midterm Exam IM2B

Midterm Exam IM2B

University

9 Qs

UML-2020-158225-Week7-ClassDiagramObjectDiagram-NTY

UML-2020-158225-Week7-ClassDiagramObjectDiagram-NTY

University

12 Qs

System Analysis and Design - Phase III. A - Introduction

System Analysis and Design - Phase III. A - Introduction

University

9 Qs

OS Essentials - Chapter 14 (The IT Professional)

OS Essentials - Chapter 14 (The IT Professional)

KG - University

10 Qs

DBMS Quiz-2

DBMS Quiz-2

University

10 Qs

Data type in PL/SQL

Data type in PL/SQL

University

10 Qs

DBMS_CSN_AW5_QUIZ

DBMS_CSN_AW5_QUIZ

Assessment

Quiz

Computers

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?