SQL Fundamentals Flashcards

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

1/13

flashcard set

Earn XP

Description and Tags

Flashcards covering fundamental SQL concepts and commands.

14 Terms

1
New cards

SQL

Stands for Structured Query Language and consists of commands to create database structures, perform data manipulation, and query the database.

2
New cards

Query

A specific request for data manipulation issued by the end-user or the application to the DBMS.

3
New cards

CREATE DATABASE

SQL command used to create a new database. Syntax: CREATE DATABASE database_name;

4
New cards

DROP DATABASE

SQL command used to delete an existing database. Syntax: DROP DATABASE database_name;

5
New cards

CREATE TABLE

SQL command used to create a new table in a database. Syntax: CREATE TABLE table_name (column1 datatype, …);

6
New cards

DROP TABLE

SQL command used to delete an existing table in a database. Syntax: DROP TABLE table_name;

7
New cards

TRUNCATE TABLE

SQL command used to delete only the data within a table. Syntax: TRUNCATE TABLE table_name;

8
New cards

ALTER TABLE

SQL command used to add, delete, or modify columns in an existing table.

9
New cards

NOT NULL Constraint

Ensures that a column cannot have a NULL value.

10
New cards

UNIQUE Constraint

Ensures that all values in a column are different.

11
New cards

PRIMARY KEY Constraint

Uniquely identifies each row in a table.

12
New cards

FOREIGN KEY Constraint

Uniquely identifies a row in another table; establishes a link between tables.

13
New cards

CHECK Constraint

Ensures that all values in a column satisfy a specific condition.

14
New cards

DEFAULT Constraint

Sets a default value for a column when no value is specified.