Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 23 pages
Exam (elaborations)

WGU C170 SQL Applicability Problem set study Exam Questions and Complete answers Guaranteed Success 2024/2025

Document preview thumbnail
Preview 3 out of 23 pages

WGU C170 SQL Applicability Problem set study Exam Questions and Complete answers Guaranteed Success 2024/2025 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 Foreign Primary Compound Composite - correct answer Foreign Which command creates a database only if it does not already exist 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 ; - correct answer CREATE DATABASE IF NOT EXISTS db_name ; 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 WHERE PRODCOST=20; AND PRODCOST=20; WHERE PRODCOST=20; AND PRODCOST=20; - correct answer WHERE PRODCOST=20; What does WHERE identify in a basic SQL SELECT statement The associative entity The rows to be included A table's intersection data A range of included columns - correct answer The rows to be included Refer to the given SQL statement. SELECT EMPNUM FROM EMPLOYEE

Content preview

WGU C170 SQL Applicability Problem set
study Exam Questions and Correct answers
Guaranteed Success 2024/2025

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


Foreign
Primary
Compound
Composite - correct answer Foreign


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




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 ; - correct answer CREATE
DATABASE IF NOT EXISTS db_name ;


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


WHERE PRODCOST=20;
AND PRODCOST=20;
WHERE PRODCOST>=20;
AND PRODCOST>=20; - correct answer WHERE PRODCOST=20;


What does WHERE identify in a basic SQL SELECT statement


The associative entity
The rows to be included
A table's intersection data
A range of included columns - correct answer The rows to be included


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


WHERE EMPNUM = 1000+;
WHERE EMPNUM > 1000;
WHERE EMPNUM => 1000;
WHERE EMPNUM >= 1000; - correct answer WHERE EMPNUM >= 1000;


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


SUM PRODNUM;
COUNT PRODNUM;
ORDER BY PRODNUM;
GROUP BY PRODNUM; - correct answer GROUP BY PRODNUM;


Which data definition language statement affects databases or objects in them


SELECT
INSERT
ALTER
NULL - correct answer ALTER


What does the DELETE statement do


It removes views.
It removes rows from a table.
It removes columns from a table.
It removes columns not named in the column list. - correct answer It removes rows
from a table.


Which condition must be in effect to use the INSERT INTO ... VALUES syntax for an
INSERT statement

Document information

Uploaded on
August 30, 2024
Number of pages
23
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
KieranKent55
3.6
(9)
Sold
43
Followers
18
Items
6492
Last sold
6 months ago




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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions