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

Non procedural language

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

A group of database objects—such as tables and indexes—that are related to each other.

A

Schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
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
6
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
7
Q

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
8
Q

Integer values only

A

Int

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

Small integer values only

A

Small int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
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
11
Q

a collection of related data held in a _____ 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
12
Q

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
13
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
14
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
15
Q

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

A

Check

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

Defines column values stored when no value has been assigned

A

Default

17
Q

Designates that a column will accept null values

A

Nullability

18
Q

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

A

Sql Indexes