1
0

fichiers de test + correctifs

correctifs de styles (polices)
This commit is contained in:
Jérémie Ducastel
2015-08-10 00:17:48 +02:00
parent 4393c5be63
commit ca6f0446f0
12 changed files with 404 additions and 4 deletions

15
tests/sql.sql Normal file
View File

@ -0,0 +1,15 @@
-- full line comment
SELECT
d.name AS department, e.id, full_name, max(salary),
CASE WHEN e.type = 'p'
THEN 'part-time'
WHEN e.type = 'f'
THEN 'full-time'
ELSE 'special'
END
FROM employees AS e
INNER JOIN departments AS d ON e.department = d.id
GROUP BY e.department
WHERE salary > (SELECT avg(salary) FROM employees)
AND e.department IS NOT NULL
ORDER BY d.name -- inline comment