dbms quiz 2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/29

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:57 PM on 3/25/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

30 Terms

1
New cards

What will the following SQL query return?

SELECT DISTINCT City
FROM Customers;

Only unique cities

2
New cards

What will this query return?
SELECT COUNT(*)
FROM Employees
WHERE Salary > 50000;

Number of employees with salary > 50000

3
New cards

What will this query return?
SELECT Name, City
FROM CUSTOMERS
WHERE City = ‘London’;

Names and cities of London customers only

4
New cards

This query will find:
SELECT COUNT(*)
FROM ORDERS;

Total number of orders

5
New cards

What does this query show?
SELECT Department,AVG(Salary)
FROM EMPLOYEES
GROUP BY Department;

Average salary per department

6
New cards

This query returns:
SELECT Name, Price
FROM PRODUCTS
WHERE Price > 100
ORDER BY Price DESC;

Products over $100, most expensive first

7
New cards

Which join returns matching records from both tables?

INNER JOIN

8
New cards

Which clause is used to eliminate duplicate rows?

DISTINCT

9
New cards

What does the BETWEEN operator do?

Checks range of values

10
New cards

WHICH SQL clause is used to search for NULL values?

IS NULL

11
New cards

What is COUNT?

Number of rows containing non-null values

12
New cards

What is MIN?

Minimum attribute value encountered in a given column

13
New cards

What is MAX?

Maximum attribute value encountered in a given column

14
New cards

What is SUM?

Sum of all values for a given column

15
New cards

What is AVG?

The arithmetic mean (average) for a specified column

16
New cards

What is DELETE command?

Used to delete selected rows from a table

17
New cards

What is UPDATE command?

Used to change individual columns of selected rows in a table

18
New cards

What is COMMIT?

Makes a change permanent

19
New cards

What is ROLLBACK?

Cancels all insertion, deletion, and update operations since the most recent COMMIT

20
New cards

What is COMMIT and ROLLBACK?

Are transaction management commands

21
New cards

Are table creation, drop and alter commands affected by COMMIT or ROLLBACK?

No, none are affected

22
New cards

What is GROUP BY?

Allows grouping results

23
New cards

What is INTERSECT?

Combines rows from two queries, returning only the rows that appear in both sets
ex: query INTERSECT query

24
New cards

What is EXCEPT (minus)?

Combines rows from two queries and returns only the rows that appear in the first set
ex: query EXCEPT query, query MINUS query

25
New cards

Can IN and NOT IN subsqueries be used in place of INTERSECT?

Yes

26
New cards

What is GRANT command?

Granting privileges to others

27
New cards

What is a Subqueries and what can it return?

Query inside another query
One single value
List of values
Virtual table

28
New cards

What is One single value?

One column and one row

29
New cards

What is List of values?

One column and multiple rows

30
New cards

What is virtual table?

Multicolumn, multirow set of values

Explore top notes

note
Confederation Lecture Vocabulary
Updated 325d ago
0.0(0)
note
UNIT 3-BIOLOGY 1
Updated 1200d ago
0.0(0)
note
Japanese Term 3- fashion
Updated 287d ago
0.0(0)
note
Modelos Atómicos en la Historia
Updated 330d ago
0.0(0)
note
QU - SOCY 122 Fall Midterm
Updated 522d ago
0.0(0)
note
Confederation Lecture Vocabulary
Updated 325d ago
0.0(0)
note
UNIT 3-BIOLOGY 1
Updated 1200d ago
0.0(0)
note
Japanese Term 3- fashion
Updated 287d ago
0.0(0)
note
Modelos Atómicos en la Historia
Updated 330d ago
0.0(0)
note
QU - SOCY 122 Fall Midterm
Updated 522d ago
0.0(0)

Explore top flashcards

flashcards
latin vocab 1-30
28
Updated 745d ago
0.0(0)
flashcards
Foreign and domestic affairs
24
Updated 1080d ago
0.0(0)
flashcards
unit 5 ap hug
54
Updated 1155d ago
0.0(0)
flashcards
Pediatrics (Test 2)
64
Updated 1133d ago
0.0(0)
flashcards
Mason Religion Midterm
45
Updated 1196d ago
0.0(0)
flashcards
Les Professions
42
Updated 419d ago
0.0(0)
flashcards
Science
50
Updated 1212d ago
0.0(0)
flashcards
latin vocab 1-30
28
Updated 745d ago
0.0(0)
flashcards
Foreign and domestic affairs
24
Updated 1080d ago
0.0(0)
flashcards
unit 5 ap hug
54
Updated 1155d ago
0.0(0)
flashcards
Pediatrics (Test 2)
64
Updated 1133d ago
0.0(0)
flashcards
Mason Religion Midterm
45
Updated 1196d ago
0.0(0)
flashcards
Les Professions
42
Updated 419d ago
0.0(0)
flashcards
Science
50
Updated 1212d ago
0.0(0)