ch6-ppt Flashcards

(19 cards)

1
Q

DDL

A

data definition language. DEFINE database. create tables and constraints

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

DML

A

data manipulation language. MAINTAIN and QUERY database

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

DCL

A

data control language. CONTROL a database, administer previledges

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

CREATE SCHEMA

A

defines portion of database owned by particular owner

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

CREATE TABLE

A

define new table and columns

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

CREATE VIEW

A

define logical table from one of more tables or views

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

ALTER TABLE

A

cahnge column specifications

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

INSERT INTO

A

populate table. can also be used to copy and paste table using a SELECT statement

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

UPDATE

A

modify all rows with a condition

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

SELECT statement basic clauses

A

1- SELECT
2- FROM
3- WHERE

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

WHERE

A

conditional operator. answers which rows will be included in the result

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

LIKE

A

use only for wildcard conditionals

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

wildcards

A
  • (any sequence at beg or end)
    ? (any character)

use LIKE conditional

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

BETWEEN date usage

A

surround dates with pound signs #

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

expressions

A

AS statements used to rename colums in the resulting query.

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

aggregate functions

A

1-COUNT()
2-MIN/MAX()
3-AVG()
4-SUM()

17
Q

ORDER BY

A

last element in SELECT statement. organize in abc order. use DESC for descending.

18
Q

GROUP BY

A

summary row for each unique GROUP

19
Q

HAVING

A

quality groups by a conditional