
DBMS_CSN_AW5_QUIZ
Authored by K.vinay kumar
Computers
University
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Aspiring Minds Aptitude Quiz-SK-1
Quiz
•
University
10 questions
Understanding Email, Contacts and Calendaring
Quiz
•
University
15 questions
หน่วยที่2การสร้างมูลค่าเพิ่มให้ผลิตภัณฑ์หรือบริการ
Quiz
•
11th Grade - University
10 questions
Tree and Planar Graph
Quiz
•
University
10 questions
CodeMonkey for B.Ed IT
Quiz
•
University
10 questions
Quiz 1
Quiz
•
University
14 questions
Apple quiz
Quiz
•
5th Grade - University
10 questions
Amazon Aptitude Quiz-SK-1
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University