
SQL Flashcard

Flashcard
•
Quizizz Content
•
Professional Development
•
•
Hard
Student preview

26 questions
Show all answers
1.
FLASHCARD
Front
Ananya is analyzing the sales data for her online store. She wants to find out which products had sales greater than the average sales after grouping them by category. Which SQL clause should she use to filter results after aggregation?
Back
HAVING
2.
FLASHCARD
Front
What is the default sorting order of the ORDER BY clause in SQL?
Back
Ascending
3.
FLASHCARD
Front
Which SQL function is used to remove duplicate rows in a query result?
Back
DISTINCT
4.
FLASHCARD
Front
What is the primary purpose of an index in a database?
Back
Speed up queries
5.
FLASHCARD
Front
Which type of join returns only the matching rows from both tables?
Back
INNER JOIN
6.
FLASHCARD
Front
Which normal form ensures that there are no partial dependencies?
Back
2NF
7.
FLASHCARD
Front
Which SQL keyword is used to retrieve the top 5 records from a table?
Back
Any of the above
8.
FLASHCARD
Front
Which is the best strategy to delete duplicate rows while keeping one instance? Options: DELETE FROM table WHERE id IN (SELECT id FROM table), DELETE FROM table WHERE rownum > 1, DELETE FROM table WHERE id NOT IN (SELECT MIN(id) FROM table GROUP BY column_name), DELETE * FROM table
Back
DELETE FROM table WHERE id NOT IN (SELECT MIN(id) FROM table GROUP BY column_name)
9.
FLASHCARD
Front
Which SQL clause is used to combine rows from multiple tables based on a condition?
Back
JOIN
10.
FLASHCARD
Front
In SQL, which of the following operations is the fastest for retrieving a specific record?
Options:
Table scan,
Indexed lookup,
Sorting,
Aggregation
Back
Indexed lookup
Explore all questions with a free account
Similar Resources on Quizizz
Figurative Language

•
University
Figurative Language Review

•
7th Grade
SQL

•
University
Database Technologies, Relational Model, and Data Modeling

•
University
SQL Flashcard

•
KG - University
Database Fundamentals

•
7th - 8th Grade
pie chart

•
7th Grade
Intro to Microsoft Access

•
10th - 12th Grade