100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

PRE-ASSESSMENT: DATA MANAGEMENT - APPLICATIONS (FJO1) PFJO

Rating
-
Sold
-
Pages
56
Grade
A+
Uploaded on
23-10-2025
Written in
2025/2026

WGU C170 PRE-ASSESSMENT: DATA MANAGEMENT - APPLICATIONS (FJO1) PFJO Attempt #1 Status: Not Passed 1. A salesperson is authorized to sell many products and a product can be sold bymany salespersons. Which kind of binary relationship does this scenario describe? YOUR ANSWER CORRECT ANSWER One-to-one One-to-many Many-to-many One-to-one binary 2.WGU C170 1/2WGU C170 Which kind of relationship is displayed in this entity-relationship diagram? YOUR ANSWE R CORRECT ANSWER One-to-one binary One-to-one unary Many-to-many binary Many-to-many unaryWGU C170 3.WGU C170 Which kind of relationship is displayed in this entity-relationship diagram? YOUR ANSWE R CORRECT ANSWER Unary one-to-one Unary many-to-manyBinary one-to-one Binary many-to-many Ternary one-to-one Ternary many-to-manyWGU C170 4. How is this portion of the entity-relationship diagram read, from left to right? YOUR ANSWE R CORRECT ANSWER No books are written by an author. At least one book was written by an author.One book was written by more than one author. Only one book was written by one author. 5. Which two examples are attributes? Choose 2 answers YOUR ANSWE R CORRECT ANSWER A person attending a meeting An employee number A salesWGU C170 meeting AWGU C170 meeting code 6.WGU C170 Which delete rule sets column values in a child table to a missing value when the matchingdata is deleted from the parent table? YOUR ANSWER CORRECT ANSWER Restrict Cascade Matching Set-to-Null 7. In this entity-relationship diagram, Salesperson 361 is related to two customers. Thetable follows the restrict delete rule. What happens if someone tries to delete Salesperson 361 from the customer records? YOUR ANSWE R CORRECT ANSWER The delete is prohibited. The delete occurs immediately. A new salesperson is assigned instead. The lack of a salesperson is flagged for later. 8. Refer to the given SQL statement. CREATE TABLE memberWGU C170 ( 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, email VARCHAR(100) NULL, street VARCHAR(50) NULL,city VARCHAR(50) NULL, state VARCHAR(2) NULL,zip VARCHAR(10) NULL, phone VARCHAR(20) NULL, interests VARCHAR(255) NULL ); Which two columns are created as something other than variable-length strings inthis statement? Choose 2 answers YOUR ANSWER CORRECT ANSWER member_id last name suffix expiration email city 9. Employee_IDEmployee_NameOffice_Address 12342 Jacob 54123 Main Street 12346 Michael 354 Center Avenue 12846 Ethan 54123 Main StreetWGU C170 12887 Joshua 54123 Main StreetWGU C170 12894 Daniel 354 Center Avenue 13097 Alexander 354 Center Avenue 13112 Anthony 54123 Main Street 13411 William 354 Center Avenue 13987 Christophe 354 Center r Avenue 13998 Matthew 54123 Main StreetWGU C170 This database table has ten different employee numbers in the first column. Employee_IDis 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? YOUR ANSWE R CORRECT ANSWER Move the data from the third column into the first column. Move the data from the thirdcolumn into its own table. Move the data from the first two columns into separate tables. Move the data from the second column into thethird column. 10. A database manager starts to convert data that has been normalized into a form thatconforms 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? YOUR ANSWER CORRECT ANSWER First normal form Second normal form Third normal form Fourth normal form 11. Two attributes in two related tables have the exact same domain of values. The attributeis a primary key in one table. Which kind of key is the attribute in the other table?WGU C170 YOUR ANSWE R CORRECT ANSWERWGU C170 YOUR ANSWER CORRECT ANSWER Foreign Primary Compound Composite 12. In this entity-relationship diagram, many salespersons are shown as working in atleast one office. How is the relationship between salespersons and offices represented in the diagram? YOUR ANSWE R CORRECT ANSWER It is undefined. It is linked through the office ID.WGU C170 It is linked through the salesperson ID. It is indicated bythe tables’ adjacency.13. Which command creates a database only if it does not already exist? YOUR ANSWE R CORRECT ANSWER IF NOT EXISTS db_name ; CREATE DATABASE IF NEW db_name ; CREATE DATABASE IF NOT EXISTS db_name ; IF NOT EXISTS CREATE DATABASE db_name ; 14. 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 numbersand product names for products that cost 20 dollars? YOUR ANSWE R CORRECT ANSWER WHERE PRODCOST=20; AND PRODCOST=20; WHERE PRODCOST>=20; AND PRODCOST>=20; 15. What does WHERE identify in a basic SQL SELECT statement? 9/2YOUR ANSWE R CORRECT ANSWER The associative entity10The rows to be included A table’s intersection data A range of included columns 16. Refer to the given SQL statement. SELECT EMPNUM FROMEMPLOYEE Which line added to the end of the statement returns employee numbers of at least 1000? YOUR ANSWE R CORRECT ANSWER WHERE EMPNUM = 1000+; WHERE EMPNUM > 1000; WHERE EMPNUM => 1000; WHERE EMPNUM >= 1000; 17. 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 ofeach kind of product by product number? YOUR ANSWE R CORRECT ANSWER 10/SUM PRODNUM; COUNT PRODNUM;11/ORDER BY PRODNUM; GROUPBY PRODNUM; 18. Which data definition language statement affects databases or objects in them? YOUR ANSWE R CORRECT ANSWER SELEC T INSERT ALTER NULL 19. What does the DELETE statement do? YOUR ANSWE R CORRECT ANSWER It removes views. It removes rows from a table. It removes columns from a table. It removes columns not named in the column list. 20.Which condition must be in effect to use the INSERT INTO … VALUES syntax for an INSERTstatement?YOUR ANSWE R CORRECT ANSWERThe VALUES list must contain a value for each non-null valuedcolumn in the table. The VALUES list must contain a value for each row in the table. The INSERT INTO portion of the statement must generate aLOAD DATA statement. The INSERT INTO portion of the statement must refer to a sampdbdatabase table. 21. 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? YOUR ANSWE R CORRECT ANSWER Decimal Integer Strin g Data 22. Which two SQL data types can represent images orsounds? Choose 2 answers YOUR 12/CORRECT ANSWER13/INT FLOAT BINAR Y TERNARY TINYBLOB SOUNDBLOB 23. Refer to the given SQL statement. CREATE TABLE CUSTOMER (CustomerID INT NOT NULL AUTO_INCREMENT, LastName VARCHAR(100) NOT NULL, FirstName VARCHAR(100) NOTNULL, PRIMARY KEY ( CustomerID )); Which component of the command indicates the table’s name? YOUR ANSWER CORRECT ANSWER TABLE CUSTOMER CustomerID CUSTOMER INT 24. Which method creates an empty copy of a table and then populates it from the originaltable?YOUR ANSWE R CORRECT ANSWER INSERT TABLE … SELECT followed by INSERT INTO … LIKE :CREATE TABLE … LIKE followed by INSERT INTO … SELECT : CREATE TABLE … INTO followed by INSERT INTO: INSERT TABLE … LIKE followed by SELECT: 25. Refer to the given SQL syntax. ALTER TABLE tbl_name action [, action ] ... ; What does this syntaxallow? Choose 2 answers YOUR ANSWE R CORRECT ANSWER Adding rows Dropping indexes Changing storage space Changing column data types 26. Which command eliminates a table? YOUR ANSWE R CORRECT ANSWER TRUNCATE TABLE DELETE TABLEREMOVE TABLE DROP TABLE27. Why is a view used to give controlled access to data? YOUR ANSWE R CORRECT ANSWER To add complexity to encryption techniques To move complicated security routines to subqueries To restrict access to persons retrieving and modifying sensitive information To limit many-to-many relationships between various entities and attributes 28. 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? YOUR ANSWE R CORRECT ANSWER The values created by the syntax INSERT INTO tbl_name VALUES(...),(...),... ; The SELECT privilege for every column referredto elsewhere in the statement A reciprocal level of privilege for every row selected by the SELECT statement The level of privilege for every column that is part of the base table 29. Refer to the given SQL statement. 15/SELECT product_name, product_number, mfg_city FROMproduct; Which statement, when added before this statement, generates a view? YOUR ANSWE R CORRECT ANSWER16/YOUR ANSWER CORRECT ANSWER VIEW viewprod: ALTER viewprod AS WHERE VIEW viewprod IS CREATE VIEW viewprod AS 30. What is the proper command to change a view? YOUR ANSWE R CORRECT ANSWER ALTER VIEW CHANGE VIEW MODIFY VIEW UPDATE VIEW 31. Refer to the given statement. DROP VIEW EMPLOYEE; What happens as a result of the execution of this statement to the HRDB table onwhich the EMPLOYEE view is based? YOUR ANSWE R CORRECT ANSWERThe data is discarded. The view is discarded. The viewing of data is prohibited. Unauthorized access to the view is restricted.32. When a product is deleted from the product table, all corresponding rows for theproduct in the pricing table are deleted automatically as well. What is this referential integrity technique called? YOUR ANSWER CORRECT ANSWER Foreign key constraint Referential delete Cascaded delete Dynamic update 33. Refer to the given information. 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 theprimary key within a CREATE TABLE statement? YOUR ANSWER CORRECT ANSWER PRIMARY KEY = event_id); PRIMARY KEY (event_id)); (PRIMARY KEY: event_id); PRIMARY (event_id)' 34. What does the clause PRIMARY KEY followed by a field name in parentheses mean ina CREATE TABLE statement? 17/YOUR CORRECT ANSWER ANSWER The primary key value, in parentheses, can be used by acolumn. The column, in parentheses, is the primary key for the table. The foreign key, in parentheses, is linked to the primary key. The row, in parentheses, can be inserted as the foreign key. 35. Which statement should be used so that it assigns a foreign key to the customer name? YOUR ANSWE R CORRECT ANSWER FOREIGN KEY ( customer_name ) REFERENCES table_name ( customer_name )FOREIGN KEY = customer_name REFERENCES table_name ( customer_name ) FOREIGN KEY ( customer_name ) ( index_columns ) FOREIGN KEY [ table_name ] ( customer_name ) 36. Which ALTER TABLE statement adds a foreign key constraint to a child table? YOUR ANSWE R CORRECT ANSWER ALTER TABLE child ADD FOREIGN KEY (par_id) REFERENCES parent (par_id) ONDELETE CAS- CADE; ALTER TABLE child ADD FOREIGN KEY (par_id) WHERE parent (par_id) ON DELETE CASCADE;YOUR CORRECT ANSWE R ANSWER ALTER TABLE child ADD FOREIGN KEY WHERE parent (par_id) ON DELETE CASCADE; ALTER TABLE child ADD FOREIGN KEY (par_id) ON DELETE CASCADE; 37. Refer to the diagram of an index table. Salesperson Table Record SalespersonSalespersonCity Hire DateCommission AddressNumber Nam e Rate 1 119 Taylor, A New 1/21/01 20% York 2 137 Baker, B Detroit 2/3/11 10% 3 186 Adams,A Dallas 8/23/96 5% 4 204 Dickens,S Dallas 8/4/12 5% 5 255 Lincoln, J Atlanta 6/7/13 5% 6 7 361 420 Carlyle,L Green, C Detroit 11/11/10 7% Tucson 9/25/12 11% 8 452 French, F New York10/23/098% The database administrator has been tasked with implementing an index to speed up theretrieval 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 fieldbased on the database information? YOUR ANSWE R CORRECT ANSWER ALTER TABLE 'Salesperson' ADD INDEX 'city_index' (`city`)CREATE UNIQUE INDEX city_index ON Salesperson (city); CREATE INDEX city_index USING HASH ON Salesperson(city); ALTER TABLE 'Salesperson' ADD UNIQUE INDEX 'city_index' (`city`) 38.What is the name of the special internal database where the query optimizer findsinformation? YOUR ANSWE R CORRECT ANSWER Join catalog Query catalog Optimizer catalog Relational catalog 39. Which clause in a CREATE TABLE statement creates an index on a field? YOUR ANSWE R CORRECT ANSWER INDEX index_rows (index_name) INDEX index_name (index_rows) INDEX index_columns (index_name) INDEX index_name (index_columns) 40. A database administrator needs to modify an index on the CUSTOMER table calledIDX_NAME because there are multiple customers with the same name. It has beendetermined 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 includeboth NAME and TELEPHONE as part of the index?YOUR ANSWER CORRECT ANSWER ALTER INDEX IDX_NAME ON CUSTOMER(NAME, TELEPHONE); MODIFY INDEX IDX_NAME BY CUSTOMER(NAME, TELEPHONE); CHANGE INDEX IDX_NAME BY CUSTOMER(NAME, TELEPHONE);YOUR ANSWER CORRECT ANSWE REPLACE INDEX IDX_NAME ON CUSTOMER(NAME, TELEPHONE); 41. Which syntax is the correct way to use the DROP INDEX command to drop a primary keyfrom a table? YOUR ANSWER CORRECT ANSWER DROP INDEX PRIMARY KEY tbl_name; DROP INDEX `PRIMARY` ON tbl_name ; DROP INDEX `PRIMARY KEY` ON tbl_name; DROP INDEX WHERE PRIMARY KEY = tbl_name ; 42. A database administrator tries to delete a row in a parent table, but the deletefails because a row in another table depends on that row. Which referential-integrity rule is in effect? YOUR ANSWER CORRECT ANSWER The default delete rule The restrict delete rule The cascade delete rule The set-to-null delete rule 43. A manager deletes the BUILDING_MANAGEMENT row in a DEPARTMENT table. Deletingthe row also deletes the GARDENING_TEAM and CLEANING_TEAM rows from the referencedPERSONNEL_TEAMS table. Which referential-integrity rule is in effect? 21/The default delete rule The restrict delete rule The cascade delete rule The set-to-null delete rule 44. Refer to the given SQL statement. INSERT INTO student VALUES('John','S',NULL),('Mary','S',NULL); What do the parentheses denote? YOUR ANSWE R CORRECT ANSWER The data to be duplicated The attributes that are changeableThe row values for two individual columns The column values for two individual rows 45. What happens in an UPDATE statement if the WHERE clause is omitted? YOUR ANSWE R CORRECT ANSWER Only the first row in the table is updated. Every column in thetable is updated.Every row in the table is updated. Returns an error.46 Which action deletes all rows from a table? YOUR ANSWE R CORRECT ANSWER Omitting the WHERE clause from a DELETE statementAdding an ALL statement to a DELETE statement Omitting the table name in a DELETE statement Adding an asterisk to aDELETE statement 47. What is the purpose of using a SELECT statement? YOUR ANSWE R CORRECT ANSWER To retrieve dataTo update data To delete data To index data 48. Which SQL statement retrieves all of the columns from the Owners table? YOUR ANSWE R CORRECT ANSWER SELECT * FROM Owners; 23/46 SELECT ALL FROM Owners; RETRIEVE COMPLETE FROM Owners; RETRIEVE ALL COLUMNS FROM Owners;24/49. Which SQL statement tallies the number of different cities in which record companies havebeen founded? YOUR ANSWER CORRECT ANSWER SELECT COUNT(DISTINCT city) FROM recordcompany; GROUP BY *(DISTINCT city) FROM recordcompany; SELECT DISTINCT city FROM recordcompany;GROUP BY(city) FROM recordcompany; 50. Which task does ORDER BY perform by default? YOUR ANSWE R CORRECT ANSWER Sorting rows in ascending order Sorting rows in descending order Sorting columns in ascending order Sorting columns in descending order 51. A database administrator of a movie rental company needs to compile a list of moviesreleased each year for a marketing campaign. Which SQL command will accomplish this? YOUR ANSWER CORRECT ANSWER SELECT MOVIE, YEAR FROM MOVIE BY TITLE; SELECT MOVIE, TOTAL FROM MOVIE BY TITLE; 24/SELECT MOVIE, TITLE FROM MOVIE BY MOVIE YEAR;25/YOUR ANSWER CORRECT ANSWE SELECT YEAR, TITLE FROM MOVIE GROUP BY YEAR; 52. How does Table 2 affect the returned results from Table 1 in a left join? YOUR ANSWE R CORRECT ANSWER Records are dropped from the results where a match is foundbetween Table 1 and Table 2. All Table 1 results are returned, regardless of whether a match is found in Table 2.Results are only returned where a match is found between Table 1 and Table 2. Table 1 results are prioritized where a match with Table 2 exists. 53. Which command functions as a RIGHT JOIN with the roles of the tables reversed? YOUR ANSWE R CORRECT ANSWER INNER JOIN OUTER JOIN LEFT JOIN FULL JOIN 54. Refer to the given SQL statement. SELECT t1.*, t2.* FROM t1 LEFT JOIN t2 ON t1.i1 = t2.i2 What does the LEFT JOIN statement do? 25/It selects the rows in Table 1 numbered the same as Table 2. It selects only the rows in Table 1 that are the same as Table 2. It selects all of the rows in Table 1 and the matching rows in Table 2. It selects the rows in both Tables that have numerical data that is left-aligned. 55. What is the difference between COUNT(*) and COUNT( col_name) for specified columnnames? YOUR ANSWE R CORRECT ANSWER COUNT(*) counts every column selected, and COUNT(col_name)counts only col- umns with alphabetical names. COUNT(*) counts every column selected, and COUNT(col_name)counts only non-null values. COUNT(*) counts every row selected, and COUNT(col_name) countsonly nonnull values. COUNT(*) counts every row selected, and COUNT(col_name) countsevery column selected. 56. Which function determines the total value for a column? YOUR ANSWE R CORRECT ANSWER ALL() SUM() TOTAL() SUMMARY()57. How does a row subquery differ from a table subquery? YOUR ANSWE R CORRECT ANSWER A row subquery returns a table with two rows in two columns. A row subquery returns multiplerows of one or more values. A row subquery returns a table with one row in one column. A row subquery returns a single row of oneor more values. 58. Refer to the given SQL statement. 1. SELECT SPNAME 2. FROM SALESPERSON 3. WHERE SPNUM= 4. FROM CUSTOMER 5. WHERE CUSTNUM=20900); What is missing from the subquery at the beginning ofline 4? YOUR ANSWER CORRECT ANSWER (SPNUM (FIND SPNUM (SELECT SPNUM (SUBQUERY SPNUM Accessibility Policy Accessibility Settings 27/

Show more Read less











Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
October 23, 2025
Number of pages
56
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$7.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
Splendid
5.0
(1)

Get to know the seller

Seller avatar
Splendid Brown University
View profile
Follow You need to be logged in order to follow users or courses
Sold
5
Member since
4 year
Number of followers
0
Documents
404
Last sold
2 weeks ago
A+ TAILORED MATERIALS

These notes are crafted from topnotch study sessions—clear, concise, and tailored for quick revision. I’ve cut out the noise and kept only the essentials that helped me ace my exams. If it’s here, it works. Best of luck!

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions