new MTA DAF 3 Flashcards

1
Q
Please order the following elements from a select query:
INTO
SELECT
HAVING
WHERE
ORDER BY
GROUP BY
FROM
A
SELECT
INTO
FROM
WHERE
GROUP BY
HAVING
ORDER BY
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What wildcard character can used in the SELECT command?

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

Which keywords are necessary to add data into a table?

A

INSERT, VALUES

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

What key is replicated from the primary key of one table to a secondary table, and then all the key attributes get duplicated from the primary table?

A

Foreign key

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

What would you use to combine two expressions in a query in SQL?

A

AND

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

What statement is used to delete a table from a database?

A

DROP

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

What do you perform when you want to recall specific records from a database?

A

query

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

What would you use to combine two parameters in a query in SQL?

A

AND

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

How can you prevent the accidental loss of an entire table?

A

Use referential integrity.

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

What command do you use to perform a query in SQL?

A

SELECT

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

What statement would you use to add data to a table?

A

INSERT

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

What clause is used to combine related data from multiple table sources?

A

JOIN

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

Which clause used with the SELECT command will return values that you want to exclude from the normal parameters?

A

EXCEPT

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

What keyword used with the SELECT statement is used to not output specified records?

A

NOT

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

What command would you use to delete a table while leaving the table structure in place for future use?

A

TRUNCATE TABLE

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