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

Database Exam 2 SQL REVISED AND UPDATED FOR 2026/2027 ACTUAL EXAM COMPLETE QUESTIONS AND CORRECT DETAILED ANSWERS (VERIFIED ANSWERS) |ALREADY GRADED A+||BRAND NEW!!

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
06-05-2026
Written in
2025/2026

Database Exam 2 SQL REVISED AND UPDATED FOR 2026/2027 ACTUAL EXAM COMPLETE QUESTIONS AND CORRECT DETAILED ANSWERS (VERIFIED ANSWERS) |ALREADY GRADED A+||BRAND NEW!!

Institution
RPT121i SQL II
Course
RPT121i SQL II

Content preview

Database Exam 2 SQL

1. Define what inner be a part of is
2. What are and describe the two varieties of join in standards's
3. What form of relationship is used to hyperlink tables together - ANS-1. A traditional be a part
of in which most effective rows that meet a given standards are decided on
2. -equijoin (or herbal be part of), if the join criteria contain equality
- theta be a part of, if the join criteria involve an inequality
3. Uses a PK-FK relationship

1. How does the CROSS JOIN method paintings?
2. Define Cartesian
3. What is the trouble with this form of be part of? - ANS-1.Provides the cartesian made of
tables, which leads to a unmarried desk of information
2. Cartesian product approach it'll take each product from desk one and integrate it with each
consecutive row on table , then it shows the columns we're choosing
three. The difficulty with CROSS JOIN, is that it consequences in inappropriate records

1. What is the entire range of rows which can be created with this JOIN
2. Create an example of ways a CROSS JOIN statement will look in combining different
columns of one-of-a-kind tables: - ANS-1. The quantity of rows in both tables extended together
2. SELECT item_desc, supplier_name FROM item, supplier

1.What is the LIKE clause used for?
2.What do the % and _ do within the LIKE clause - ANS-1. It offers the potential to do simple
pattern matching, in which patterns are usually expressed as a string
2. % fits zero or extra characters (* in Access)
_ matches exactly one person (# in Access)

Define the 2 facts kinds:
1. CHAR(n)
2. VARCHAR(n) - ANS-1. This allows you to specify a set period character
2. This is the extra efficient of the 2 to use as it permits it to store the quantity of facts that has
been surely used, and saves the greater space in case of alternate

Define the two statistics sorts:
1. Integer/SMALLINT
2. Decimal - ANS-1. This permits you to specify the quantity of reminiscence that should be
stored in keeping with value for numbers. SMALLINT being set to shop less numbers
2. (precession, scale)

, Define these three Primary string kinds
1. BLOB
2. TEXT
three. ENUM - ANS-1. Used for binary strings of statistics
2. Used for massive character strings of statistics
3. String item with a cost selected from a list of permitted values that is unique at table growing
time

Describe the IF declaration

Exercise: List all objects and their fees, together with a further column that identifies every item
as "pricey" if it expenses extra than $three, and "cheap" if it value much less than $3. Make sure
the object price has a $ signal with the aid of it, and it rounds to two decimal places. - ANS--
Allows for showing consequences that satisfy conflicting situations on the same time
- SELECT item_desc, CONCAT("$", FORMAT( item_price, 2), IF(item_price >= three, "pricey",
"cheap") As Category FROM object

Describe the UNION assertion and the two matters it helps

What are the two matters it calls for and the only component it deletes - ANS-- Combines the
output of two SELECT statements, it supports combining databases (new consumer info from
any other DB), and representing multuple competing situations simultaneously

- Requires the identical number of attributes in every assertion, corresponding records sorts to
be compatible, and gets rid of duplicates

Describe these four methods involved within the RLIKE clause:
1. "."
2. "t*"
3. "T+"
four. "t?" - ANS-1. Matches any single character
2. Matches zero or more times of the letter t
3. Matches one or extra times of the letter t
4. Matches zero or one instance of the letter t

Describe those four methods involved inside the RLIKE clause:
1. "^A"
2. "e$"
three. "[A-T]"
4. "[a-dx]" - ANS-1. Matches the given pattern at the start of a string
2. Matches the previous sample on the quit of the string
3. Matches more than a few characters
4. Matches any characters that are a, b, c, d, or x

Written for

Institution
RPT121i SQL II
Course
RPT121i SQL II

Document information

Uploaded on
May 6, 2026
Number of pages
10
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.99
Get access to the full document:

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


Also available in package deal

Get to know the seller

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.
Legitexams Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
67
Member since
1 year
Number of followers
1
Documents
1251
Last sold
12 hours ago

Welcome To my Store My Goal is to help you achieve your desired grades by providing credible study materials I'm happy to help you with quality documents On this page you will find quality study guides, Exams assignments, Research papers and Test Banks all verified correct . you'll find past and recent revised and verified study materials . Stay here and You'll find everything you need to pass !!! . I always ensure my documents are of high standards Be assured to get good grades and always leave a review after a purchase Refer a friend SUCCESS!!!!

Read more Read less
3.2

26 reviews

5
12
4
1
3
3
2
0
1
10

Recently viewed by you

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