DDD - Implementation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How are tables linked in a relational database

A

tables are linked by matching the foreign key from one table to the primary key in a related table

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

what does referential integrity mean

A

that all of the foreign keys in a table must link to a primary key in a related table

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

What does the SELECT statement

A

selects data from a database

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

what does the asterisk symbol do

A

select all of the fields in the table

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

The FROM command is used to

A

specify which tables to select data from

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

what does the order by statement

A

sorts the results of an SQL query in ascending or descending order

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

what is ascending order

A

A-Z, 1-10

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

what is descending order

A

Z-A, 10-1

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

<

A

less than

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

>

A

greater than

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

=

A

equal

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

when will <,>, = operators can be used

A

within the WHERE clause to refine SQL queries

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

When can the OR and AND operators can be used

A

with the WHERE clause to refine SQL queries

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

what is the INSERT INTO statement used for

A

to insert a record into a table

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

syntax for insert

A

INSERT INTO table
VALUES (values to be inserted);

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

what is the UPDATE staement used for

A

to update a record in atable

17
Q

syntax for update

A

UPDATE table
SET column = value
WHERE criteria;

18
Q

What is the DELETE statement used for

A

to delete a record from a table

19
Q

syntax for delete

A

DELETE FROM table
WHERE criteria;

20
Q

what is an equi-join

A

used to join matching columns of related tables

21
Q

syntax for equi-joins

A

SELECT fields
FROM table_1, table_2
WHERE table_1.column_name= table_2.column_name