SQL - Data Management - Applications - Study to PASS the test ... 3 Flashcards

1
Q

COMMIT / ROLLBACK work only with data manipulation commands that add, modify, or delete table rows.

A

COMMIT / ROLLBACK

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

INSERT info : inner query always executed 1st by the RDBMS.

IN : checks if an attribute value matches any value within a value list. All values in list must be the same data type.

A

INSERT / IN

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

ALTER TABLE (options : ADD | MODIFY | DROP - for columns)

*** A table can be dropped only if it is not the “one” side of any relationship. If tried to drop otherwise the RDBMS will generate an error message indicating that a foreign key integrity violation has occurred.

DISTINCT : produces a list of only values that are different from one another.

A

ALTER TABLE / Etc … / DISTINCT

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

COUNT(*) : returns number of total rows from the query, including rows that contain nulls.

GROUP BY : rows grouped together into smaller collections; only used with COUNT, MIN, MAX, AVG, and SUM. Also used with HAVING (replaces WHERE).

A

COUNT(*) / GROUP BY

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