6.2. List the data types that are allowed for SQL attributes.
What is EXCEPT
The result of EXCEPT is all records of the left SELECT result set except records which are in right SELECT result set, i.e. it is subtraction of two result sets.
What is the difference between EXCEPT DISTINCT and EXCEPT ALL
The ALL operator leaves duplicates intact, while the DISTINCT operator removes duplicates
Resources
https://mariadb.com/kb/en/except/
What is GROUP BY
s. Each group (partition) will consist of the tuples that have the same value of some attribute(s), called the grouping attribute(s). We can then apply the function to each such group indepen- dently to produce summary information about each group. SQL has a GROUP BY clause for this purpose.
What is HAVING
times we want to retrieve the values of these functions only for groups that satisfy certain conditions. For example, suppose that we want to modify Query 25 so that only projects with more than two employees appear in the result. SQL provides a HAVING clause, which can appear in conjunction with a GROUP BY clause, for this purpose. H
What is ORDER BY
6.3. How does SQL allow implementation of the entity integrity and referential integrity constraints described in Chapter 3? What about referential trig- gered actions?
6.1. How do the relations (tables) in SQL differ from the relations defined for- mally in Chapter 3? Discuss the other differences in terminology. Why does SQL allow duplicate tuples in a table or in a query result?