SQL and SQL Commands Flashcards

1
Q

What are two components within SQL?

A
  • DDL(Data Definition Language) modifies the structure of a database.
  • DML(Data Manipulation Language) modifies the data within the database.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 4 common commands within DDL? And what do they do?

CREATE, ALTER, DROP, Permissions

A
  • CREATE: Creates a table or Database.
  • ALTER: Changes the structure of a table or database.
  • DROP: Deletes a table or database.
  • Permissions enable who can modify the database with DDL.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the four major commands within DML?

SELECT, INSERT, DELETE, UPDATE

A
  • SELECT: selects or retrieves information (records & fields) from a database.
  • INSERT: adds new records (rows) to a database table.
  • DELETE: removes records from a database table.
  • Update: modifies existing records in a database table.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly