100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
WGU C170 SQL Applicability Problem set study Exam Questions and Complete answers Guaranteed Success 2024/2025 R213,83   Add to cart

Exam (elaborations)

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

 5 views  0 purchase
  • Course
  • WGU 170
  • Institution
  • WGU 170

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 Forei...

[Show more]

Preview 3 out of 23  pages

  • August 30, 2024
  • 23
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • WGU 170
  • WGU 170
avatar-seller
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller KieranKent55. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R213,83. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

66579 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R213,83
  • (0)
  Buy now