SQL Flashcards

sublanguages, statements, data types

1
Q

MySQL Command-Line Client

A

a text interface included in the MySQL Server download. MySQL Server returns an error code and description when an SQL statement is syntactically incorrect or the database cannot execute the statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Tuple

A

ordered collection of elements encolsed in parentheses; (a, b, c)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Types of Literals

A

Must be surrounded by single quotes or double quotes; ‘String’ or “String”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Types of Keywords

A

Words with special meaning; SELECT, FROM, WHERE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Data Definition Language (DDL)

A

a set of commands in a database that lets you CREATE, ALTER, or DROP structures like tables and databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Data Query Language

A

a set of commands in a database that allows you to ask questions and get information from the data.
SELECT is used to retrieve info from tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Data Manipulation Language

A

a set of commands in a database that lets you work with the data itself—INSERT, UPDATE, or DELETE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Data Control Language

A

a set of commands in a database used to manage permissions—deciding who can access or modify data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Data Transaction Language

A

a set of commands in a database used to manage and control changes, ensuring that data stays accurate and consistent during multi-step operations, called transactions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CREATE TABLE

A

creates a new table by specifying the table name, column names, and column data types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

DROP TABLE

A

deletes a table, along with all the table’s rows, from a database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

ALTER TABLE

A

adds, deletes, or modifies column on an existing table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly