100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

C170, WGU Full Study Pack| WITH COMPLETE SOLUTIONS

Beoordeling
-
Verkocht
-
Pagina's
35
Cijfer
A+
Geüpload op
21-10-2022
Geschreven in
2022/2023

A salesperson is authorized to sell many products and a product can be sold by many salespersons. Which kind of binary relationship does this scenario describe? Correct Answer: Many-to-many Which two examples are attributes? Correct Answer: An employee number A meeting code Which delete rule sets column values in a child table to a missing value when the matching data is deleted from the parent table? Correct Answer: Set-to-Null member_id INT UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY (member_id), last_name VARCHAR(20) NOT NULL, first_name VARCHAR(20) NOT NULL, suffix VARCHAR(5) NULL, expiration DATE NULL, Which two columns are created as something other than variable-length strings in this statement? Correct Answer: member_id expiration This database table has ten different employee numbers in the first column. Employee_ID is the primary key. In addition, it has ten different names in the second column and two office addresses repeated five times each in the third column. Which action should be used to translate this data into third normal form? Correct Answer: Move the data from the third column into its own table. A database manager starts to convert data that has been normalized into a form that conforms to the relational model. A simple primary key has been established and all the repeating groups have been deleted. In which form is this data? Correct Answer: Second normal form Two attributes in two related tables have the exact same domain of values. The attribute is a primary key in one table. Which kind of key is the attribute in the other table? Correct Answer: Foreign SELECT PRODNUM, PRODNAME FROM PRODUCT Which line should be added to the end of the statement to return the product numbers and product names for products that cost 20 dollars? Correct Answer: WHERE PRODCOST=20; What does WHERE identify in a basic SQL SELECT statement? Correct Answer: The rows to be included Refer to the given SQL statement. SELECT EMPNUM FROM EMPLOYEE Which line added to the end of the statement returns employee numbers of at least 1000? Correct Answer: WHERE EMPNUM >= 1000; SELECT PRODNUM, SUM(QUANTITY) FROM SALESPERSON Which line, when added to the end of the statement, returns the total number of each kind of product by product number? Correct Answer: GROUP BY PRODNUM; Which data definition language statement affects databases or objects in them? Correct Answer: ALTER What does the DELETE statement do? Correct Answer: It removes rows from a table. Which condition must be in effect to use the INSERT INTO ... VALUES syntax for an INSERT statement? Correct Answer: The VALUES list must contain a value for each non-null valued column in the table. CREATE TABLE mytbl ( f FLOAT(10,4), c CHAR(15) NOT NULL DEFAULT 'none', i TINYINT UNSIGNED NULL ); Which kind of data type is FLOAT in this statement? Correct Answer: Decimal Which two SQL data types can represent images or sounds? Correct Answer: TINYBLOB BINARY CREATE TABLE CUSTOMER (CustomerID INT NOT NULL AUTO_INCREMENT, LastName VARCHAR(100) NOT NULL, FirstName VARCHAR(100) NOT NULL, PRIMARY KEY ( CustomerID )); Which component of the command indicates the table's name? Correct Answer: CUSTOMER Which method creates an empty copy of a table and then populates it from the original table? Correct Answer: CREATE TABLE ... LIKE followed by INSERT INTO ... SELECT : ALTER TABLE tbl_name action [, action ] ... ; What does this syntax allow? Choose 2 answers Correct Answer: Dropping indexes Changing column data types Which command eliminates a table? Correct Answer: DROP TABLE Why is a view used to give controlled access to data? Correct Answer: To restrict access to persons retrieving and modifying sensitive information A database manager plans to create a view of a table and has these two elements: Correct Answer: The SELECT privilege for every column referred to elsewhere in the statement SELECT product_name, product_number, mfg_city FROM product; Which statement, when added before this statement, generates a view? Correct Answer: CREATE VIEW viewprod AS What is the proper command to change a view? Correct Answer: ALTER VIEW DROP VIEW EMPLOYEE; What happens as a result of the execution of this statement to the HRDB table on which the EMPLOYEE view is based? Correct Answer: The view is discarded. When a product is deleted from the product table, all corresponding rows for the product in the pricing table are deleted automa

Meer zien Lees minder
Instelling
Vak











Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
21 oktober 2022
Aantal pagina's
35
Geschreven in
2022/2023
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

C170, WGU Full Study Pack| WITH COMPLETE SOLUTIONS
A salesperson is authorized to sell many products and a product can be sold by many
salespersons.
Which kind of binary relationship does this scenario describe? Correct Answer: Many-to-many

Which two examples are attributes? Correct Answer: An employee number
A meeting code

Which delete rule sets column values in a child table to a missing value when the matching data
is
deleted from the parent table? Correct Answer: Set-to-Null

member_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
PRIMARY KEY (member_id),
last_name VARCHAR(20) NOT NULL,
first_name VARCHAR(20) NOT NULL,
suffix VARCHAR(5) NULL,
expiration DATE NULL,
Which two columns are created as something other than variable-length strings in this statement?
Correct Answer: member_id
expiration

This database table has ten different employee numbers in the first column. Employee_ID is the
primary
key. In addition, it has ten different names in the second column and two office addresses
repeated five
times each in the third column.
Which action should be used to translate this data into third normal form? Correct Answer:
Move the data from the third column into its own table.

A database manager starts to convert data that has been normalized into a form that conforms to
the
relational model. A simple primary key has been established and all the repeating groups have
been
deleted.
In which form is this data? Correct Answer: Second normal form

Two attributes in two related tables have the exact same domain of values. The attribute is a
primary
key in one table.
Which kind of key is the attribute in the other table? Correct Answer: Foreign

SELECT PRODNUM, PRODNAME
FROM PRODUCT

,Which line should be added to the end of the statement to return the product numbers and
product
names for products that cost 20 dollars? Correct Answer: WHERE PRODCOST=20;

What does WHERE identify in a basic SQL SELECT statement? Correct Answer: The rows to
be included

Refer to the given SQL statement.
SELECT EMPNUM
FROM EMPLOYEE
Which line added to the end of the statement returns employee numbers of at least 1000? Correct
Answer: WHERE EMPNUM >= 1000;

SELECT PRODNUM, SUM(QUANTITY)
FROM SALESPERSON
Which line, when added to the end of the statement, returns the total number of each kind of
product
by product number? Correct Answer: GROUP BY PRODNUM;

Which data definition language statement affects databases or objects in them? Correct Answer:
ALTER

What does the DELETE statement do? Correct Answer: It removes rows from a table.

Which condition must be in effect to use the INSERT INTO ... VALUES syntax for an INSERT
statement? Correct Answer: The VALUES list must contain a value for each non-null valued
column in the
table.

CREATE TABLE mytbl
(
f FLOAT(10,4),
c CHAR(15) NOT NULL DEFAULT 'none',
i TINYINT UNSIGNED NULL
);
Which kind of data type is FLOAT in this statement? Correct Answer: Decimal

Which two SQL data types can represent images or sounds? Correct Answer: TINYBLOB
BINARY

CREATE TABLE CUSTOMER
(CustomerID INT NOT NULL AUTO_INCREMENT,
LastName VARCHAR(100) NOT NULL,
FirstName VARCHAR(100) NOT NULL,
PRIMARY KEY ( CustomerID ));
Which component of the command indicates the table's name? Correct Answer: CUSTOMER

,Which method creates an empty copy of a table and then populates it from the original table?
Correct Answer: CREATE TABLE ... LIKE followed by INSERT INTO ... SELECT :

ALTER TABLE tbl_name action [, action ] ... ;
What does this syntax allow?
Choose 2 answers Correct Answer: Dropping indexes
Changing column data types

Which command eliminates a table? Correct Answer: DROP TABLE

Why is a view used to give controlled access to data? Correct Answer: To restrict access to
persons retrieving and modifying sensitive information

A database manager plans to create a view of a table and has these two elements: Correct
Answer: The SELECT privilege for every column referred to elsewhere in the statement

SELECT product_name, product_number, mfg_city FROM product;
Which statement, when added before this statement, generates a view? Correct Answer:
CREATE VIEW viewprod AS

What is the proper command to change a view? Correct Answer: ALTER VIEW

DROP VIEW EMPLOYEE;
What happens as a result of the execution of this statement to the HRDB table on which the
EMPLOYEE view is based? Correct Answer: The view is discarded.

When a product is deleted from the product table, all corresponding rows for the product in the
pricing
table are deleted automatically as well.
What is this referential integrity technique called? Correct Answer: Cascaded delete

CREATE TABLE 'test1' (
contact_id INT(10),
name VARCHAR(10),
event_id INT(5),
Which command should be added to the end to make the event_id attribute the primary key
within a
CREATE TABLE statement? Correct Answer: PRIMARY KEY (event_id));

What does the clause PRIMARY KEY followed by a field name in parentheses mean in a
CREATE TABLE
statement? Correct Answer: The column, in parentheses, is the primary key for the table.

Which statement should be used so that it assigns a foreign key to the customer name? Correct
Answer: FOREIGN KEY ( customer_name ) REFERENCES table_name ( customer_name

, )

Which ALTER TABLE statement adds a foreign key constraint to a child table? Correct Answer:
ALTER TABLE child
ADD FOREIGN KEY (par_id) REFERENCES parent (par_id) ON DELETE
CASCADE;

The database administrator has been tasked with implementing an index to speed up the retrieval
of
data based on the city values. The database is using the InnoDB engine.
What is the correct syntax to create an index to be built on the city field based on the database
information? Correct Answer: ALTER TABLE `Salesperson` ADD INDEX 'city_index' (`city`)

What is the name of the special internal database where the query optimizer finds information?
Correct Answer: Relational catalog

Which clause in a CREATE TABLE statement creates an index on a field? Correct Answer:
INDEX index_name (index_columns)

A database administrator needs to modify an index on the CUSTOMER table called
IDX_NAME because
there are multiple customers with the same name. It has been determined that it would be
desirable to
modify the index to also include the telephone number.
Which command line will modify the IDX_NAME index on the CUSTOMER table to include
both NAME
and TELEPHONE as part of the index? Correct Answer: ALTER INDEX IDX_NAME ON
CUSTOMER(NAME, TELEPHONE);

Which syntax is the correct way to use the DROP INDEX command to drop a primary key from
a table? Correct Answer: DROP INDEX `PRIMARY` ON tbl_name ;

A database administrator tries to delete a row in a parent table, but the delete fails because a row
in another table depends on that row.
Which referential-integrity rule is in effect? Correct Answer: The restrict delete rule

A manager deletes the BUILDING_MANAGEMENT row in a DEPARTMENT table. Deleting
the row also
deletes the GARDENING_TEAM and CLEANING_TEAM rows from the referenced
PERSONNEL_TEAMS table.
Which referential-integrity rule is in effect? Correct Answer: The cascade delete rule

INSERT INTO student VALUES('John','S',NULL),('Mary','S',NULL);
What do the parentheses denote? Correct Answer: The column values for two individual rows
€7,47
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Classroom NURSING
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
4683
Lid sinds
3 jaar
Aantal volgers
3218
Documenten
51892
Laatst verkocht
5 uur geleden
NURSING

Assignments, Case Studies, Research, Essay writing service, Questions and Answers, Discussions etc. for students who want to see results twice as fast. I have done papers of various topics and complexities. I am punctual and always submit work on-deadline. I write engaging and informative content on all subjects. Send me your research papers, case studies, psychology papers, etc, and I’ll do them to the best of my abilities. Writing is my passion when it comes to academic work. I’ve got a good sense of structure and enjoy finding interesting ways to deliver information in any given paper. I love impressing clients with my work, and I am very punctual about deadlines. Send me your assignment and I’ll take it to the next level. I strive for my content to be of the highest quality. Your wishes come first— send me your requirements and I’ll make a piece of work with fresh ideas, consistent structure, and following the academic formatting rules. For every student you refer to me with an order that is completed and paid transparently, I will do one assignment for you, free of charge!!!!!!!!!!!!

Lees meer Lees minder
4,0

1159 beoordelingen

5
611
4
213
3
189
2
38
1
108

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen