APPLICATIONS OBJECTIVE
ASSESSMENT ACTUAL EXAM
2025/2026 QUESTIONS WITH VERIFIED
CORRECT SOLUTIONS || 100%
GUARANTEED PASS
<BRAND NEW VERSION>
1. Write a SELECT statement to show a list of all employees' first names and
their managers' first names. List only employees that have a manager. Order
the results by Employee first name. Use aliases to give the result columns
distinctly different names, like "Employee" and "Manager".
The Employee table has the following columns:
ID - integer, primary key
FirstName - variable-length string
LastName - variable-length string
ManagerID - integer - ANSWER ✓ SELECT DISTINCT m.firstname as
employee, e.firstname as manager
FROM employee AS e
INNER JOIN employee AS m
ON e.id = m.managerid
ORDER BY m.firstname ASC;
2. Write a SELECT statement to create a lesson schedule with the lesson
date/time, horse ID, and the student's first and last names. Order the results
in ascending order by lesson date/time, then by horse ID. Unassigned lesson
times (student ID is NULL) should not appear in the schedule.
, Horse with columns:
ID - primary key
RegisteredName
Breed
Height
BirthDate
Student with columns:
ID - primary key
FirstName
LastName
Street
City
State
Zip
Phone
EmailAddress
LessonSchedule with columns:
HorseID - partial primary key, foreign key references Horse(ID)
StudentID - foreign key references Student(ID)
LessonDateTime - partial primary key - ANSWER ✓ SELECT
LessonDateTime, HorseID, FirstName, LastName
FROM lessonschedule
INNER JOIN student
ON studentid = id
ORDER BY lessondatetime, horseid ASC;
3. Write a SELECT statement to create a lesson schedule for Feb 1, 2020 with
the lesson date/time, student's first and last names, and the horse's registered
name. Order the results in ascending order by lesson date/time, then by the
horse's registered name. Make sure unassigned lesson times (student ID is
NULL) appear in the results.
Horse with columns:
ID - primary key
RegisteredName
,Breed
Height
BirthDate
Student with columns:
ID - primary key
FirstName
LastName
Street
City
State
Zip
Phone
EmailAddress
LessonSchedule with columns:
HorseID - partial primary key, foreign key references Horse(ID)
StudentID - foreign key references Student(ID)
LessonDateTime - partial primary key - ANSWER ✓ SELECT
lessonschedule.lessondatetime, student.firstname, student.lastname,
horse.registeredname
FROM lessonschedule
LEFT JOIN student
ON lessonschedule.studentid = student.id
LEFT JOIN horse
ON lessonschedule.horseid = horse.id
WHERE date(lessonschedule.lessondatetime) = '2020-02-01'
ORDER BY lessonschedule.lessondatetime ASC, horse.registeredname
ASC;
2.14 LAB - Select tall horses with subquery
The Horse table has the following columns:
ID - integer, primary key
RegisteredName - variable-length string
Breed - variable-length string
, Height - decimal number
BirthDate - date
4. Write a SELECT statement to select the registered name and height for only
horses that have an above average height. Order the results by height
(ascending). - ANSWER ✓ SELECT registeredname, height
FROM horse
WHERE height > (
SELECT AVG(height) FROM horse)
ORDER BY height ASC;
5. Which SQL statement is used to remove rows of data from a database? -
ANSWER ✓ DELETE
6. What is the purpose of the ON clause in SQL joins? - ANSWER ✓ Specifies
the condition for the join between the two tables
7. Which of the following best describes a strong entity? - ANSWER ✓ An
entity that has a unique identifying attribute
8. The LIKE operator is used to: - ANSWER ✓ Search for a specified pattern
in a column
9. To find the number of non-NULL rows in a column, you would use: -
ANSWER ✓ COUNT()
10.Which statement about NoSQL databases is true? - ANSWER ✓ They are
optimized for big data
11.In ER modeling, what describes the relationship between a salesperson and
an office space/cubicle? - ANSWER ✓ One-to-One
12.In which type of table is no specific order imposed on rows? - ANSWER ✓
Heap table
13.Which symbol represents a one-to-many relationship in ER Diagrams? -
ANSWER ✓ A crow's foot