• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

Snhu Dad 220 Exam Script Questions And Solutions 2025/2026 Rated A+

Document preview thumbnail
Preview 2 out of 5 pages

SNHU DAD 220 EXAM SCRIPT QUESTIONS AND SOLUTIONS 2025/2026 RATED A+

Content preview

SNHU DAD 220 EXAM SCRIPT QUESTIONS AND SOLUTIONS
2025/2026 RATED A+
✔✔what does the string function SUBSTRING(s, pos, len) do? - ✔✔Returns the
substring from s that starts at position pos and has length len

ex. SELECT SUBSTRING("Boomerang", 1, 4);
returns 'Boom'

✔✔What does the string function TRIM(s) do? - ✔✔returns the string s without leading
and trailing spaces

ex. SELECT TRIM(" test ");
returns 'test'

✔✔What does the string function UPPER(s) do? - ✔✔Returns the uppercase s

✔✔What does the date and time function CURDATE() CURTIME() NOW() do? -
✔✔Returns the current date, time, or date and time in 'YYYY-MM-DD', 'HH:MM:SS',
or'YYYY-MM-DD HH:MM:SS' format

✔✔What does the date and time function DATE(expr) TIME(expr) do? - ✔✔Extracts the
date or time from a date or datetimeexpression expr

ex. SELECT DATE('2013-03-25 22:11:45');
returns '2013-03-25'
SELECT TIME('2013-03-25 22:11:45');
returns '22:11:45'

✔✔What does the date and time function DAY(d) MONTH(d) YEAR(d) do? -
✔✔Returns the day, month, or year from date d

ex. SELECT DAY('2016-10-25');
returns 25
SELECT MONTH('2016-10-25');
returns 10
SELECT YEAR('2016-10-25');
returns 2016

✔✔What does the date and time function HOUR(t) MINUTE(t) SECOND(t) do? -
✔✔Returns the hour, minute, or second from time t

ex. SELECT HOUR('22:11:45');
returns 22
SELECT MINUTE('22:11:45');

, returns 11
SELECT SECOND('22:11:45');
returns 45

✔✔What does the date and time function DATEDIFF(expr1, expr2) TIMEDIFF(expr1,
expr2) do? - ✔✔Returns expr1 - expr2 in number of days or timevalues, given expr1
and expr2 are date, time, or datetime values

ex. SELECT DATEDIFF('2013-03-10', '2013-03-04');
returns 6
SELECT TIMEDIFF('10:00:00', '09:45:30');
returns 00:14:30

✔✔data query language (DQL) - ✔✔extracts data from and about the database

✔✔The SHOW statement - ✔✔shows information about databases, tables, columns,
and server status information

Common examples
SHOW DATABASES lists databases available in the database system.
SHOW TABLES lists tables available in the currently selected database.
SHOW COLUMNS lists columns available in a specific table named by a FROM clause.
SHOW CREATE TABLE shows the CREATE TABLE statement for a given table.

✔✔The SELECT statement - ✔✔retrieves data from a table

✔✔Result set - ✔✔data returned from the SELECT statement, stored in a result table

✔✔The WHERE clause - ✔✔combined with the SELECT statement to filter the result
set. The WHERE clause must come after the FROM clause.

✔✔Condition - ✔✔expression that evaluates to TRUE, FALSE, or NULL. Only a
condition that is TRUE selects the row. Uses a comparison operator

✔✔When will a comparison operator evaluate to NULL? - ✔✔When one or both
operands are NULL. Ex: NULL > 1000 is NULL.

✔✔Logical operators - ✔✔AND, OR, AND NOT

✔✔What specifies which logical operators are evaluated first? - ✔✔Parenthesis, if none
AND is evaluated first

✔✔How do logical operators evaluate to NULL? - ✔✔TRUE AND NULL is NULL, but
FALSE AND NULL is FALSE.

Document information

Uploaded on
June 30, 2025
Number of pages
5
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.49

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.
sterlingscoress
4.0
(2)
Sold
22
Followers
2
Items
8732
Last sold
2 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