Database Systems Final - SQL Basics

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

12 Terms

1
New cards

What is a schema

The structure and organization of the database

2
New cards

What is DDL

Data Definition Language - Defines schema (CREATE, ALTER, DROP)

3
New cards

What is DML

Data Manipulation Language - modifies data (SELECT, INSERT, UPDATE, DELETE)

4
New cards

What is DCL

Data Control Language - permissions (GRANT, REVOKE)

5
New cards

What is the order SQL processes clauses

FROM → WHERE → GROUP BY → HAVING → SELECT → ORDER BY

6
New cards

What are aggregate functions

COUNT, SUM, AVG, MIN, MAX

7
New cards

When must GROUP BY be used

When selecting non-aggregate columns with an aggregate

8
New cards

Order of precedence for SQL AND/OR/NOT

NOT → AND → OR

9
New cards

What does CREATE TABLE do

Defines a new table

10
New cards

What does ALTER TABLE do

Modifies and existing table

11
New cards

What does INSERT TABLE do

Adds new rows to a table

12
New cards

What does DELETE FROM do

Deletes rows in a table