Fix SQL beautification tests

This commit is contained in:
Glavin Wiechert 2015-04-19 21:24:59 -03:00
parent 65c1d1fa0b
commit 613a7599c8
1 changed files with 6 additions and 1 deletions

View File

@ -1,9 +1,14 @@
SELECT ca.proj_id AS proj_id, ca.ca_name AS proj_name, ca.ca_date_start AS proj_start, ca.ca_date_end AS proj_end,
SELECT ca.proj_id AS proj_id,
ca.ca_name AS proj_name,
ca.ca_date_start AS proj_start,
ca.ca_date_end AS proj_end,
(SELECT count(*)
FROM rotations r
WHERE r.proj_id = proj_id
AND r.r_status = 'R'
GROUP BY r.proj_id) r_count,
(SELECT count(*)
FROM rotations r
WHERE r.proj_id = proj_id