June 2010
Intermediate to advanced
328 pages
7h 51m
English
In most brands of database, writing a query that violates the Single-Value Rule should elicit an error immediately as you prepare the query. The following are examples of error messages given by some brands of database:
Firebird 2.1:
| | Invalid expression in the select list (not contained in either an |
| | aggregate function or the GROUP BY clause) |
IBM DB2 9.5:
| | An expression starting with "BUG_ID" specified in a SELECT clause, |
| | HAVING clause, or ORDER BY clause is not specified in the GROUP BY |
| | clause or it is in a SELECT clause, HAVING clause, or ORDER BY clause |
| | with a column function and no GROUP BY clause is specified. |
Microsoft SQL Server 2008:
| | Column 'Bugs.bug_id' ... |
Read now
Unlock full access