- Guías de estudio, Notas de estudios & Resúmenes
¿Buscas las mejores guías de estudio, notas de estudio y resúmenes para ? En esta página encontrarás 6 documentos de estudio para .
6 resultados
Examen
Introduction to Relational Databases Challenge 1.4 (WGU)
Which of the following statement(s) would successfully delete the invoice_id 353 
from the invoice table? 
 a.) 
 DELETE FROM invoice_line WHERE invoice_id = 353; 
 DELETE FROM invoice WHERE invoice_id = 353; 
 b.) 
 DELETE FROM invoice WHERE invoice_id = 353; 
 c.) 
 DELETE FROM invoice WHERE invoice_id = 353; 
 DELETE FROM invoice_line WHERE invoice_id = 353; 
 d.) 
 DELETE FROM invoice_line WHERE invoice_id = 353 
Which of the following statement(s) would successfully delete the inv...
Examen
Introduction to Relational Databases Challenge 1.2 (WGU)
Popular1.2 SINGLE TABLE CONSTRUCTION 
The following CREATE TABLE statement creates a table called 'company' that 
consists of the company_id as the primary key, the company_name, and the 
address. 
CREATE TABLE company( 
company_id INT PRIMARY KEY 
company_name VARCHAR (100), 
address VARCHAR (100) 
); 
Identify the line of code that would generate an error in this CREATE TABLE 
statement. 
 a.) 
 2 
 b.) 
 4 
 c.) 
 1 
 d.) 
 3 
 
The following CREATE TABLE statement creates a table called ...
Examen
Introduction to Relational Databases Challenge 1.3 (WGU)
Identify the SQL command that uses an aggregate function that could be used to 
find the lowest total in the invoice table. 
 a.) 
 SELECT lowest(total) FROM invoice; 
 b.) 
 SELECT total(min) FROM invoice; 
 c.) 
 SELECT min total FROM invoice; 
 d.) 
 SELECT min(total) FROM invoice; 
Identify the SQL command that uses an aggregate function that could be used to 
find the average total in the invoice table. 
 a.) 
 SELECT avg(total) from invoice; 
 b.) 
 SELECT average total FROM in...
Examen
Introduction to Relational Databases Challenge 2.1 (WGU)
Which result set requires a JOIN? 
 a.) 
 Showing all track names with genre names 
 b.) 
 Showing all track names with genre IDs 
 c.) 
 Showing all genre names with genre IDs 
 d.) 
 Showing all track names with both genre ID and track ID 
Which result set requires a JOIN? 
 a.) 
 Showing all invoice totals with both customer ID and invoice ID 
 b.) 
 Showing all customer names with customer IDs 
 c.) 
 Showing all invoice totals with customer last names 
 d.) 
 Showing all inv...
Examen
Introduction to Relational Databases Challenge 2.4 (WGU)
All invoices from USA will require a fee paid to an external organization for 10% 
of the total. 
Which of the following statements would query the sum of the total of the 
invoices in the country USA and calculate 10% of it? 
 a.) 
 SELECT AVG(total*.10) AS calculated_fee FROM invoice 
 WHERE billing_country = 'USA'; 
 b.) 
 SELECT total(SUM)*.10 AS calculated_fee FROM invoice 
 WHERE billing_country = 'USA'; 
 c.) 
 SELECT SUM(total)*.10 AS calculated_fee FROM invoice 
 WHERE bill...
Examen
Introduction to Relational Databases Challenge 2.3 (WGU)
Which of the following queries will use a subquery to find the rows in the invoice 
table in the country USA that have the invoice total larger than the average of 
invoices of those in the country Canada? 
 a.) 
 SELECT * FROM invoice 
 WHERE total > 
 (SELECT AVG(total) FROM invoice 
 WHERE billing_country = 'Canada') 
AND billing_country = 'USA'; 
 b.) 
 SELECT * FROM invoice 
 WHERE total > 
 (SELECT AVG(total) FROM invoice 
 WHERE billing_country = 'USA') 
AND billing_...