Database Management > QUESTIONS & ANSWERS > Pre-Assessment: Data Management – Applications, Top Exam Questions and answers, graded A+ (All)
Pre-Assessment: Data Management – Applications, Top Exam Questions and answers, graded A+ 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. Many-to-many D. One-to-one binary C What kind of relationship is displayed in this entity-relationship diagram? A. One-to-one binary B. One-to-one unary C. Many-to-many binary D. Many-to-many unary D Which kind of relationship is displayed in this entity-relationship diagram? A. Unary one-to-one B. Unary many-to-many C. Binary one-to-one D. Binary many-to-many E. Ternary one-to-one F. Ternary many-to-many A How is this portion of the entity-relationship diagram read, from left to right? A. No books are written by an author. B. At least one book was written by an author. C. One book was written by more than one author. D. Only one book was written by one author. B Which two examples are attributes? Choose 2 answers. A. A person attending a meeting B. An employee number C. A sales meeting D. A meeting code B, D 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 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 is prohibited. B. The delete occurs immediately. C. A new salesperson is assigned instead. D. The lack of a salesperson is flagged for later. A Refer to the given SQL statement. CREATE TABLE member ( 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 in this statement? Choose 2 answers. A. member_id B. last name C. suffix D. expiration E. email F. city A, D Employee_ID Employee_Name Office_Address 12342 Jacob 54123 Main Street 12346 Michael 354 Center Avenue 12846 Ethan 54123 Main Street 12887 Joshua 54123 Main Street 12894 Daniel 354 Center Avenue 13097 Alexander 354 Center Avenue 13112 Anthony 54123 Main Street 13411 William 354 Center Avenue 13987 Christopher 354 Center Avenue 13998 Matthew 54123 Main Street 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. 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 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. Foreign B. Primary C. Compound D. Composite A 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 undefined. B. It is linked through the office ID. C. It is linked through the salesperson ID. D. It is indicated by the tables' adjacency. B Which command creates a database only if it does not already exist? A. IF NOT EXISTS db_name ; B. CREATE DATABASE IF NEW db_name ; C. CREATE DATABASE IF NOT EXISTS db_name ; D. IF NOT EXISTS CREATE DATABASE db_name ; C 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. AND PRODCOST=20; C. WHERE PRODCOST>=20; D. AND PRODCOST>=20; A What does WHERE identify in a basic SQL SELECT statement? A. The associative entity B. The rows to be included C. A table's intersection data D. A range of included columns B 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; 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. SUM PRODNUM; B. COUNT PRODNUM; C. ORDER BY PRODNUM; D. GROUP BY PRODNUM; D Which data definition language statement affects databases or objects in them? A. SELECT B. INSERT C. ALTER D. NULL C What does the DELETE statement do? A. It removes views. B. It removes rows from a table. C. It removes columns from a table. D. It removes columns not named in the column list. B 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 VALUES list must contain a value for each row in the table. C. The INSERT INTO portion of the statement m [Show More]
Last updated: 2 years ago
Preview 1 out of 17 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Mar 14, 2023
Number of pages
17
Written in
This document has been written for:
Uploaded
Mar 14, 2023
Downloads
0
Views
88
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·