DBMS_CSN_AW5_QUIZ

DBMS_CSN_AW5_QUIZ

University

10 Qs

quiz-placeholder

Similar activities

Adobe Photoshop

Adobe Photoshop

University

10 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Linux: Users and Groups

Linux: Users and Groups

9th Grade - University

14 Qs

VR and AR in multimedia applications

VR and AR in multimedia applications

University

10 Qs

Critical thinking

Critical thinking

University

11 Qs

MULTIMEDIA STORYBOARD

MULTIMEDIA STORYBOARD

University

10 Qs

CSE_Chap1

CSE_Chap1

University

10 Qs

Linkedlist

Linkedlist

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

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?