SQL Flashcards

1
Q

Catalog

A

A named collection of schemas in an SQL environnement

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

INFORMATION_SCHEMA

A

Special schema always contained in a catalog and which provides information on all schemas in the catalog and all the elements descriptors in these schemas

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

Basic data types

A
  • Numeric
  • Boolean
  • Character-string
  • Bit-string
  • Date and time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Additional data types

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

Domain

A

Name used with the attribute specification.
Makes it easier to change the data type for a domain that is used by numerous attributes

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

Type

A

User defined types (UDTs) are supported for object oriented applications. Use the command CREATE TYPE

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

Constraints

A

A relational model has 3 basic contraints types that are supported in SQL:
- Key constraint: a primary key value cannot be duplicated
- Entity integrity constraint: a primary key value cannot be null
- Referential integrity constraints: the foreign key must have a value that is already present as a primary key or may be null.

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

Attribute constraints

A
  • Basic constraints:
    • restrictions on attribute domain and null
    • default value of an attribute
    • not null constraints
    • check clause
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Key constraints

A
  • Primary key clause: specifies one or more attributes that make up the primary key of a relation
  • Unique clause: specifies alternate (secondary) keys
  • Foreign key clause
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Projection attribute

A

Attributes whose values are to be retrieved

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

Selection condition

A

Boolean condition that must be true for any retrieved tuple.

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