WGU C175 Final+1+2 Exam Solution.
What is a broad definition of data? -correct answer Raw facts that are captured on printed or digital media What are data? -correct answer Facts that are collected and stored in a database system What is a determining characteristic of unstructured data? -correct answer It does not follow a data model. Which is true about flat files? -correct answer They contain no internal hierarchical organization. Which technology has no internal hierarchy? -correct answer Flat files How were data retrieved before database management systems? -correct answer Sequentially from simple files In which two ways does a database management system environment increase effectiveness in working with data? -correct answer - It enables data sharing, - It permits storage of vast volumes of data. What is the uniquely identifiable element about which data can be categorized in an entity-relationship diagram? -correct answer Entity types Which classification is correct for the box marked "Quantity" in the given entity-relationship diagram? -correct answer Intersection data Which data classification is an entity? -correct answer Event A salesperson is authorized to sell 12 products; a product can be sold by 10 salespersons. Which kind of binary relationship is described in this example? -correct answer Many-to-many Which three kinds of rules for referential integrity are provided by modern relational database management systems? -correct answer Insert, Delete, Update What is an important aspect of "referential integrity"? -correct answer Reference to data in one relation is based on values in another relation. Sales data, detailing the customer names, products sold, and salespersons, is kept in a database. Which kind of data in this database would qualify as intersection data related to both the product and salesperson entities? -correct answer Customer names What is an attribute or group of attributes that uniquely identify a tuple in a relation? -correct answer Primary key What is necessary for a primary key in one relation of a database to match with its corresponding foreign key in another relation of the same database? -correct answer A domain of values What uniquely identifies each entity in a collection of entities but is not the primary key? -correct answer The alternate key What is a term for a set of columns in a table that can uniquely identify any record in that table without referring to other data? -correct answer Candidate key What happens to the original data in database indexing? -correct answer It is copied to the index. Why are indexes created in a physical database design? -correct answer To retrieve data directly using a pointer. Why is an index created on a database column? -correct answer To optimize data retrievals Refer to the given SQL statement. SELECT SPNUM, SPNAME FROM SALESPERSON What is the correct line to add to the end of this statement to find salespersons with a commission percentage of 15? -correct answer WHERE COMMPERCT=15; Refer to the given SQL statement. SELECT COMMPERCT, YEARHIRE FROM SALESPERSON WHERE SPNUM=22; How should this statement be altered to retrieve the entire record instead of the commission percentage and year of hire? -correct answer Replace COMMPERCT, YEARHIRE with an asterisk A manager asks an employee to list attributes of the customers that are headquartered in Los Angeles and that have a customer number higher than 1000. Refer to the given SQL statement prepared by this employee. SELECT CUSTNUM, CUSTNAME, HQCITY FROM CUSTOMER WHERE HQCITY='Los Angeles' Which line should go at the end of this statement? -correct answer AND CUSTNUM1000; What is a key difference between the DISTINCT and ORDER BY statements, in SQL SELECT commands? -correct answer ORDER BY modifies the presentation of data results and DISTINCT filters data results. Which SQL statement alphabetizes customer names within the same satellite-office city? ORDER or ALPHA? -correct answer ORDER BY SATCITY, CUSTNAME; The given SQL statement is intended to list the names of the products of which salesperson Fox has sold more than 500 units. SELECT PRODNAME FROM SALESPERSON, SALES, PRODUCT ? ? AND SPNAME='Fox' AND QUANTITY500; Which set of lines should replace the question marks to make this statement work? -correct answer WHERE SALESPERSON.SPNUM=SALES.SPNUM AND SALES.PRODNUM=PRODUCT.PRODNUM The given SQL statement is intended to query how many books there are with at least 800 pages from publishers in Los Angeles, United States. SELECT COUNT(*) ? WHERE PUBLISHER.PUBNAME=BOOK.PUBNAME AND CITY='Los Angeles' AND COUNTRY='United States' AND PAGES=800;
Información del documento
- Subido en
- 14 de marzo de 2024
- Número de páginas
- 13
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas