Unit 1 Flashcards

1
Q

SQL includes commands to create database objects such as tables, indexes, and views, as well as commands to define access rights to those database objects.

A

data definition language (DDL):

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

SQL includes commands to insert, update, delete, and retrieve data within the database tables.

A

data manipulation language (DML):

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

SQL is a

A

nonprocedural language:

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

is a group of database objects—such as tables and indexes—that are related to each other. Usually, the ——- belongs to a single user or application.

A

Schema

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

They help distinguish the kinds of data that can be stored or processed inside our database objects.

A

Data Types

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

Fixed character length data, 1 to 255 characters

A

CHAR

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

Variable character length data,1 to 2,000 characters

A

VARCHAR

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

Numeric data. decimal(9,2)is used to specify numbers with two decimal places and up to nine digits long, including the decimal places. Some RDBMSs permit the use of a MONEY or a CURRENCY data type.

A

Decimal

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

Integer values only

A

INT

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

Small integer values only

A

SMALLINT

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

formats vary. Commonly accepted formats are: ’DD-MON-YYYY’, ’DD-MON-YY’, ’MM/DD/YYYY’, and ’MM/DD/YY’

A

DATE

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

is a collection of related data held in a table format within a database. It consists of columns and rows.

A

table

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

A column or combination of columns whose values uniquely identify each row in the table

A

PRIMARY KEY

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

A column or combination of columns used to establish and enforce a link between the data in two tables

A

FOREIGN KEY

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

Ensures that no duplicate values are entered in specific columns that do not participate in a primary key

A

UNIQUE

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

Enforces domain integrity by limiting the values that are accepted by a column

A

CHECK

17
Q

Defines column values stored when no value has been assigned

A

DEFAULT

18
Q

Designates that a column will accept null values

A

Nullability

19
Q

can be used to improve the efficiency of searches and to avoid duplicate column values.

A

SQL Indexes