
SQL Server Quiz
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Medium
ARLENE QUICAY
Used 5+ times
FREE Resource
Enhance your content in a minute
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the advantage of using DATEDIFF(YEAR, HireDate, GETDATE()) as a computed column in the Employees table?
To prevent future updates to the HireDate field
To automatically calculate years of service without manual updates
To store redundant date values for performance improvement
To enforce referential integrity across related tables
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following approaches would most accurately preserve deleted employee records for audit purposes?
Use a DELETE statement and remove records from the table
Move records to a dedicated archive table before deletion
Update the Salary field to zero to mark deletion
Disable all constraints and leave the record untouched
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary reason for using HAVING AVG(Salary) > 40000 after a GROUP BY clause?
To filter individual rows based on salary conditions
To filter grouped records based on their aggregated average
To calculate the total salary of all employees
To increase the performance of the GROUP BY operation
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In SQL Server, what is the main risk of directly deleting employees with Salary < 30000?
It will increase the number of employees in higher salary ranges
It may unintentionally remove employees with valid ongoing records
It automatically duplicates higher-paid employees
It restricts future salary increases in the database
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is CONCAT(FirstName, ' ', LEFT(MiddleName, 1), '. ', LastName) a better formatting choice than using simple string addition (+) in SQL Server?
It allows for CASE statements to modify values mid-string
It reduces NULL handling issues and ensures clean formatting
It increases the storage size of the result set
It forces all results into a single uppercase string
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the Shoe Ordering System, what is a key reason to prefer DECIMAL(10, 2) for the Price column over FLOAT?
It performs faster on all mathematical operations
It ensures fixed precision without rounding errors
It restricts the storage of negative values
It limits the number of transactions processed per second
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
According to the correct rule for DECIMAL(p, s), what is the maximum number of digits before the decimal point for DECIMAL(8, 3)?
3
5
8
6
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
40 questions
Infinity Code Nexus
Quiz
•
University
40 questions
Quiz Editing Video
Quiz
•
12th Grade - University
35 questions
Quiz# 4: Components and Devices
Quiz
•
University
30 questions
Kelas 8 - Halaman 31 (PTS)
Quiz
•
8th Grade - University
30 questions
Warmup - Python - Machine Learning
Quiz
•
University
40 questions
Trắc nghiệm củng cố kiến thức lớp 11 HK2
Quiz
•
11th Grade - University
40 questions
Ujian Akhir Semester Informatika
Quiz
•
7th Grade - University
30 questions
Quiz Perangkat Keras dan Lunak
Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
