100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
D427 Practice Test 1 with Answer Key Western Governors University 2024 $25.99   Add to cart

Exam (elaborations)

D427 Practice Test 1 with Answer Key Western Governors University 2024

 3 views  0 purchase
  • Course
  • Institution

D427 Practice Test 1 with Answer Key Western Governors University 2024/D427 Practice Test 1 with Answer Key Western Governors University 2024/D427 Practice Test 1 with Answer Key Western Governors University 2024

Preview 3 out of 23  pages

  • April 24, 2024
  • 23
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
  • Unknown
avatar-seller
D427 Practice Test 1

1. Seattle, WA 98111
USA
How many attributes are present in the address fragment?

a. 1
b. 2
c. 3
d. 4

2. The Book table has the following columns:
genre – varchar(20)
pages – integer
author_id – char(3)
isbn_number – varchar(20)
Which column should be designated at the primary key for the Book table?

a. genre
b. pages
c. author_id
d. isbn_number

3. The Book table has the following columns:
genre – varchar(20)
pages – integer
author_id – char(3)
isbn_number – varchar(20)
Which column should be designated at the foreign key for the Book table?

a. genre
b. pages
c. author_id
d. isbn_number

4. Which data type represents numbers with fractional values:

a. Integer
b. Decimal
c. Character
d. Binary

,5. Which of the following are DDL commands?

a. INSERT
b. SELECT
c. CREATE INDEX
d. UPDATE


6. Which of the following is a DML command?

a. CREATE VIEW
b. CREATE TABLE
c. INSERT
d. ALTER INDEX


7.
CREATE TABLE Invoice (
invoice_id INT NOT NULL AUTO_INCREMENT,
date DATE NOT NULL,
customer_id INT NOT NULL,
PRIMARY KEY (invoice_id),
FOREIGN KEY (customer_id) REFERENCES Customer (customer_id) ON DELETE
CASCADE
);
Looking at the Customer and Invoice tables and the CREATE TABLE for the Invoice table with
foreign key reference statement above, what would happen to invoices in the Invoice table that are
linked to a customer if that customer is deleted.


a. Those invoices would remain in the database.
b. Those invoices would be deleted also.
c. The Customer ID for those invoices would be changed to NULL.
d. Nothing would happen.


Customer ID (PK) Invoice ID (PK)
Customer Last Name Date
Customer First Name Customer ID (FK)
Street Address
8. City
State
Zip

, CREATE TABLE Invoice (
invoice_id INT NOT NULL AUTO_INCREMENT,
date DATE NOT NULL,
customer_id INT NOT NULL,
PRIMARY KEY (invoice_id),
FOREIGN KEY (customer_id) REFERENCES Customer (customer_id) ON DELETE
RESTRICT
);


Looking at the Customer and Invoice tables and the CREATE TABLE for the Invoice table with
foreign key reference statement above, what would happen to invoices in the Invoice table that are
linked to a customer if that customer is deleted.


a. Those invoices would remain in the database.
b. Those invoices would be deleted also.
c. The Customer ID for those invoices would be changed to NULL.
d. The delete of the Customer would not be allowed.


Customer ID (PK) Invoice ID (PK)
Customer Last Name Date
Customer First Name Customer ID (FK)
Street Address
City
State
Zip


9.


CREATE TABLE Invoice (
invoice_id INT NOT NULL AUTO_INCREMENT,
date DATE NOT NULL,
customer_id INT NOT NULL,
PRIMARY KEY (invoice_id),
FOREIGN KEY (customer_id) REFERENCES Customer (customer_id) ON DELETE SET TO
NULL

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller VEVA2K. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $25.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

85443 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$25.99
  • (0)
  Add to cart