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 18 pages
Exam (elaborations)

WGU C170 Focused on MSQL Code Problem Set Exam Questions with Complete Answers 2024/2025

Document preview thumbnail
Preview 3 out of 18 pages

WGU C170 Focused on MSQL Code Problem Set Exam Questions with Complete Answers 2024/2025 Create a brand-new table. - correct answer CREATE TABLE tableName ( column1 datatype, column2 datatype, column3 datatype Delete an entire table along with all the table rows from a database. - correct answer DROP TABLE tableName; Data Type: Integer with range 0-255 - correct answer TINYINT UNSIGNED Data Type: Integer with range 0-65,535 - correct answer SMALLINT UNSIGNED Data Type: Integer with range 0-16,777,215 (16.8 million) - correct answer MEDIUMINT UNSIGNED Data Type: Integer with range 0 - 4,294,967,295 (4.3 billion) - correct answer INTEGER UNSIGNED can also use: INT UNSIGNED Data Type: Integer with range 0 - 2^64 -1 - correct answer BIGINT UNSIGNED Data Type: Use for things like prices with a set number of decimal places. IE: A store that sells items up to $10,000.00. - correct answer DECIMAL(M,D) where M = number of significant digits D= number of digits after decimal point. IE: Store with prices up to $10,000.00 would use DECIMAL(7,2) Data Type: Approximate decimal numbers with range -3.4E+38 to 3.4E+38 (uses only 4 bits of data) - correct answer FLOAT

Content preview

WGU C170 Focused on MSQL Code Problem
Set Exam Questions with Complete Answers
2024/2025

Create a brand-new table. - correct answer CREATE TABLE tableName (
column1 datatype,
column2 datatype,
column3 datatype


Delete an entire table along with all the table rows from a database. - correct answer
DROP TABLE tableName;


Data Type: Integer with range 0-255 - correct answer TINYINT UNSIGNED


Data Type: Integer with range 0-65,535 - correct answer SMALLINT UNSIGNED


Data Type: Integer with range 0-16,777,215 (16.8 million) - correct answer
MEDIUMINT UNSIGNED


Data Type: Integer with range 0 - 4,294,967,295 (4.3 billion) - correct answer
INTEGER UNSIGNED
can also use:
INT UNSIGNED


Data Type: Integer with range 0 - 2^64 -1 - correct answer BIGINT UNSIGNED


Data Type: Use for things like prices with a set number of decimal places. IE: A store
that sells items up to $10,000.00. - correct answer DECIMAL(M,D) where M = number
of significant digits
D= number of digits after decimal point.

,IE: Store with prices up to $10,000.00 would use
DECIMAL(7,2)


Data Type: Approximate decimal numbers with range -3.4E+38 to 3.4E+38 (uses only 4
bits of data) - correct answer FLOAT


Data Type: Approximate decimal numbers with range -1.8E+308 to 1.8E+308 (uses 8
bits of data) - correct answer DOUBLE


Data Type: Format 'YYYY-MM-DD' - correct answer DATE


Data Type: Format 'hh:mm:ss' - correct answer TIME


Data Type: Format 'YYYY-MM-DD hh:mm:ss' - correct answer DATETIME


Data Type: Fixed length string of N characters - correct answer CHAR(N)


Data Type: Variable length string up to N characters - correct answer VARCHAR(N)


After creating a table, this code is used to fill in the rows. Can also be used to add in
new rows later on. - correct answer INSERT INTO...VALUES


Example:


INSERT INTO tableName (column1Title, column2Title, ...)
VALUES (column1entry1, column2entry1,...),
(column1entry2, column2entry2,...),
(column1entry3, column2entry3,...);

, Select all columns from a table - correct answer SELECT *
FROM tableName;


Create a new database - correct answer CREATE DATABASE databaseName;


Delete an entire database and all associated tables. - correct answer DROP
DATABASE databaseName;


Lists all databases. - correct answer SHOW DATABASES;


Lists all tables in a particular database. - correct answer USE databaseName;
SHOW TABLES;


List all columns in a table from a database. - correct answer USE databaseName;
SHOW TABLES;
SHOW COLUMNS
FROM tableName;


Create a new column on an existing table. - correct answer ALTER TABLE tableName
Add columnName DataType;


Modify a column name or data type in an existing table. - correct answer ALTER
TABLE tableName
CHANGE columnName newColumnName newDataType;


Delete a column in an existing table. - correct answer ALTER TABLE
DROP columnName;

Document information

Uploaded on
August 30, 2024
Number of pages
18
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