ISYS 4283 UARK Harmon Final Flashcards

(20 cards)

1
Q

Data Definition Language (DDL)

A

Commands that define a database, including creating, altering, and dropping tables and establishing constraints

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

Data Manipulation Language (DML)

A

Commands that are used for updating, inserting, modifying, and querying the data

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

Data Control Language (DCL)

A

Commands that control a database, including administering privileges and committing data

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

Join

A

A relational operation that causes two or more tables with a common domain to be combined into a single table or view

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

Inner Join or Equi-Join

A

A join in which the joining condition is based on equality between values in the common columns; common columns appear redundantly in the result table (INNER JOIN)

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

Natural Join

A

An equi-join in which one of the duplicate columns is eliminated in the result table

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

Join Info (Know this)

A

The common columns in joined tables are usually the primary key of the dominant table and the foreign key of the dependent table in 1:M relationships

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

Outer Join

A

A join in which rows that do not have matching values in common columns are nonetheless included in the result table (as opposed to inner join, in which rows must have matching values in order to appear in the result table)

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

Subquery

A

Placing an inner query (SELECT statement) inside an outer query

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

Options for Subquery

A
  • In a condition of the WHERE clause
  • As a “table” of the FROM clause
  • In the HAVING clause
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When to use join vs subquery

A

Join technique only-data from several relations are the be retrieved and displayed. Subquery only allows you to display data from tables in outer query.

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

Subquery Example: Show all customers who have placed an order

A

SELECT CustomerName
FROM Customer_T
Where CustomerID IN
(SELECT DISTINCT CustomerID FROM ORDER_T);

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

IN Clause

A

Allows you to specify multiple values in a WHERE clause. Shorthand for multiple OR conditions

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

Update Clause

A

Modifies data in existing rows

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

Insert Clause

A

Adds one or more rows to a table

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

Clauses of the SELECT statement

A

Select
FROM
WHERE
ORDER BY

17
Q

WHERE clause

A

Indicate the conditions under which a row will be included in the result

18
Q

ORDER BY

A

Sort the result according to specified criteria
DESC- Descending (Default is ascending)

19
Q

FROM

A

Indicates the table from which data will be obtained

20
Q

Order of Clauses of the SELECT statement

A

SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY