Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

WGU Course C170 - Data Management (Applications) QUESTIONS AND ANSWER /STUDY GUIDE/ ALL ANSWERS CORRECT

Beoordeling
-
Verkocht
-
Pagina's
75
Cijfer
A+
Geüpload op
11-05-2022
Geschreven in
2021/2022

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? A One-to-one B One-to-many C One-to-one binary D Many-to-many Correct answer- D Which kind of relationship is displayed in this entity-relationship diagram? A Many-to-many unary B Many-to-many binary C One-to-one unary D One-to-one binary Correct answer- A Which kind of relationship is displayed in this entity-relationship diagram? A Binary many-to-many B Unary one-to-one C Ternary many-to-many D Ternary one-to-one D Unary many-to-many E Binary one-to-one Correct answer- B How is this portion of the entity-relationship diagram read, from left to right? A At least one book was written by an author. B Only one book was written by one author. C No books are written by an author. D One book was written by more than one author. Correct answer- A Which two examples are attributes? Choose 2 answers 1 A meeting code 2 A person attending a meeting 3 An employee number 4 A sales meeting A 1,3 B 2,4 Correct answer- A Which delete rule sets column values in a child table to a missing value when the matching data is deleted from the parent table? A Restrict B Cascade C Matching D Set-to-Null Correct answer- D In this entity-relationship diagram, Salesperson 361 is related to two customers. The table follows the restrict delete rule. What happens if someone tries to delete Salesperson 361 from the customer records? A The delete occurs immediately. B The lack of a salesperson is flagged for later. C A new salesperson is assigned instead. D The delete is prohibited. Correct answer- D Refer to the given SQL statement. CREATE TABLE member(member_idINT UNSIGNED NOT NULL AUTO_INCREMENT,PRIMARY KEY (member_id),last_nameVARCHAR(20) NOT NULL,first_nameVARCHAR(20) NOT NULL,suffixVARCHAR(5) NULL,expirationDATE NULL,emailVARCHAR(100) NULL,streetVARCHAR(50) NULL,cityVARCHAR(50) NULL,stateVARCHAR(2) NULL,zipVARCHAR(10) NULL,phoneVARCHAR(20) NULL,interestsVARCHAR(255) NULL); Which two columns are created as something other than variable-length strings in this statement? Choose 2 answers 1 member_id 2 expiration 3 suffix 4 email 5 last name 6 city A 1,2 B 3,4 Correct answer- A 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? A Move the data from the third column into the first column. B Move the data from the third column into its own table. C Move the data from the first two columns into separate tables. D Move the data from the second column into the third column. Correct answer- B 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? A First normal form B Second normal form C Third normal form D Fourth normal form Correct answer- B 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? A Compound B Composite C Primary D Foreign Correct answer- D In this entity-relationship diagram, many salespersons are shown as working in at least one office. How is the relationship between salespersons and offices represented in the diagram? A It is linked through the salesperson ID. B It is indicated by the tables' adjacency. C It is undefined. D It is linked through the office ID. Correct answer- D? Which command creates a database only if it does not already exist? A IF NOT EXISTS CREATE DATABASE db_name ; B CREATE DATABASE IF NEW db_name ; C IF NOT EXISTS db_name ; D CREATE DATABASE IF NOT EXISTS db_name ; Correct answer- A Refer to the given SQL statement. 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? A WHERE PRODCOST=20; B WHERE PRODCOST=20; C AND PRODCOST=20; D AND PRODCOST=20; Correct answer- B What does WHERE identify in a basic SQL SELECT statement? A A table's intersection data B The associative entity C A range of included columns D The rows to be included Correct answer- D 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? A WHERE EMPNUM 1000; B WHERE EMPNUM = 1000; C WHERE EMPNUM = 1000; D WHERE EMPNUM = 1000+; Correct answer- B Refer to the given SQL statement. 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? A ORDER BY PRODNUM; B GROUP BY PRODNUM; C COUNT PRODNUM; D SUM PRODNUM; Correct answer- B Which data definition language statement affects databases or objects in them? A INSERT B NULL C ALTER D SELECT Correct answer- C What does the DELETE statement do? A It removes rows from a table. B It removes views. C It removes columns not named in the column list. D It removes columns from a table. Correct answer- A Which condition must be in effect to use the INSERT INTO ... VALUES syntax for an INSERT statement? A The VALUES list must contain a value for each non-null valued column in the table. B The INSERT INTO portion of the statement must refer to a sampdb database table. C The INSERT INTO portion of the statement must generate a LOAD DATA statement. D The VALUES list must contain a value for each row in the table. Correct answer- A Refer to the given SQL statement. 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? A Decimal B Data C String D Integer Correct answer- A Which two SQL data types can represent images or sounds? Choose 2 answers 1 FLOAT 2 TERNARY 3 SOUNDBLOB 4 TINYBLOB 5 BINARY 6 INT A 4,5 B 1,2 Correct answer- A Refer to the given SQL statement. CREATE TABLE CUSTOMER (CustomerIDINT 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? A TABLE CUSTOMER B CustomerID C CUSTOMER D INT Correct answer- C Which method creates an empty copy of a table and then populates it from the original table? A CREATE TABLE ... INTO followed by INSERT INTO: B INSERT TABLE ... LIKE followed by SELECT: C INSERT TABLE ... SELECT followed by INSERT INTO ... LIKE: D CREATE TABLE ... LIKE followed by INSERT INTO ... SELECT : Correct answer- D Refer to the given SQL syntax. ALTER TABLE tbl_name action [, action ] ... ; What does this syntax allow? Choose 2 answers 1 Changing storage space 2 Dropping indexes 3 Changing column data types 4 Adding rows A 2,3 B 3,4 Correct answer- A Which command eliminates a table? A REMOVE TABLE B TRUNCATE TABLE C DELETE TABLE D DROP TABLE Correct answer- D Why is a view used to give controlled access to data? A To move complicated security routines to subqueries B To limit many-to-many relationships between various entities and attributes C To add complexity to encryption techniques D To restrict access to persons retrieving and modifying sensitive information Correct answer- D A database manager plans to create a view of a table and has these two elements: •The CREATE VIEW privilege for the table •A level of privilege for every column selected by the SELECT What else does the manager need to create this view? A A reciprocal level of privilege for every row selected by the SELECT statement B The values created by the syntax INSERT INTO tbl_name VALUES(...),(...),... ; C The SELECT privilege for every column referred to elsewhere in the statement D The level of privilege for every column that is part of the base table Correct answer- C Refer to the given SQL statement. SELECT product_name, product_number, mfg_city FROM product; Which statement, when added before this statement, generates a view? A VIEW viewprod: B ALTER viewprod AS C CREATE VIEW viewprod AS D WHERE VIEW viewprod IS Correct answer- C What is the proper command to change a view? A ALTER VIEW B MODIFY VIEW C UPDATE VIEW D CHANGE VIEW Correct answer- A

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

WGU Course C170 - Data Management
(Applications)

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?

A One-to-one
B One-to-many
C One-to-one binary
D Many-to-many Correct answer- D

Which kind of relationship is displayed in this entity-relationship diagram?

A Many-to-many unary
B Many-to-many binary
C One-to-one unary
D One-to-one binary Correct answer- A

Which kind of relationship is displayed in this entity-relationship diagram?

A Binary many-to-many
B Unary one-to-one
C Ternary many-to-many
D Ternary one-to-one
D Unary many-to-many
E Binary one-to-one Correct answer- B

How is this portion of the entity-relationship diagram read, from left to right?

A At least one book was written by an author.
B Only one book was written by one author.
C No books are written by an author.
D One book was written by more than one author. Correct answer- A

Which two examples are attributes?

,Choose 2 answers

1 A meeting code
2 A person attending a meeting
3 An employee number
4 A sales meeting

A 1,3
B 2,4 Correct answer- A

Which delete rule sets column values in a child table to a missing value when the matching
data is deleted from the parent table?

A Restrict
B Cascade
C Matching
D Set-to-Null Correct answer- D

In this entity-relationship diagram, Salesperson 361 is related to two customers. The table
follows the restrict delete rule.

What happens if someone tries to delete Salesperson 361 from the customer records?

A The delete occurs immediately.
B The lack of a salesperson is flagged for later.
C A new salesperson is assigned instead.
D The delete is prohibited. Correct answer- D

Refer to the given SQL statement.

CREATE TABLE member(member_idINT UNSIGNED NOT NULL
AUTO_INCREMENT,PRIMARY KEY (member_id),last_nameVARCHAR(20) NOT
NULL,first_nameVARCHAR(20) NOT NULL,suffixVARCHAR(5) NULL,expirationDATE
NULL,emailVARCHAR(100) NULL,streetVARCHAR(50) NULL,cityVARCHAR(50)
NULL,stateVARCHAR(2) NULL,zipVARCHAR(10) NULL,phoneVARCHAR(20)
NULL,interestsVARCHAR(255) NULL);

Which two columns are created as something other than variable-length strings in this
statement?

,Choose 2 answers

1 member_id
2 expiration
3 suffix
4 email
5 last name
6 city

A 1,2
B 3,4 Correct answer- A

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?

A Move the data from the third column into the first column.
B Move the data from the third column into its own table.
C Move the data from the first two columns into separate tables.
D Move the data from the second column into the third column. Correct answer- B

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?

A First normal form
B Second normal form
C Third normal form
D Fourth normal form Correct answer- B

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?

, A Compound
B Composite
C Primary
D Foreign Correct answer- D

In this entity-relationship diagram, many salespersons are shown as working in at least one
office.

How is the relationship between salespersons and offices represented in the diagram?

A It is linked through the salesperson ID.
B It is indicated by the tables' adjacency.
C It is undefined.
D It is linked through the office ID. Correct answer- D?

Which command creates a database only if it does not already exist?

A IF NOT EXISTS CREATE DATABASE db_name ;
B CREATE DATABASE IF NEW db_name ;
C IF NOT EXISTS db_name ;
D CREATE DATABASE IF NOT EXISTS db_name ; Correct answer- A

Refer to the given SQL statement.

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?

A WHERE PRODCOST>=20;
B WHERE PRODCOST=20;
C AND PRODCOST=20;
D AND PRODCOST>=20; Correct answer- B

What does WHERE identify in a basic SQL SELECT statement?

A A table's intersection data
B The associative entity
C A range of included columns

Geschreven voor

Vak

Documentinformatie

Geüpload op
11 mei 2022
Aantal pagina's
75
Geschreven in
2021/2022
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$13.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

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.
mikaelso Chamberlain College Of Nursng
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
65
Lid sinds
5 jaar
Aantal volgers
62
Documenten
281
Laatst verkocht
10 maanden geleden
SURE EXAMS

I know how frustrating it can get with all those assignments mate. Nursing Being my main profession line, i have essential guides that are A graded, I am a very friendly person so don

3.8

11 beoordelingen

5
3
4
6
3
0
2
1
1
1

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 iDeal of creditcard en download je PDF-document meteen.

Student with book image

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

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen