Subversion Repositories VORC

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
208 - 1
## View: v_class_coaches
2
#
3
# +------------+-------------+------+-----+---------+-------+
4
# | Field      | Type        | Null | Key | Default | Extra |
5
# +------------+-------------+------+-----+---------+-------+
6
# | date       | date        | YES  |     | NULL    |       |
7
# | start_time | time        | YES  |     | NULL    |       |
8
# | location   | varchar(45) | YES  |     | NULL    |       |
9
# | coaches    | text        | YES  |     | NULL    |       |
10
# | cRCids     | text        | YES  |     | NULL    |       |
11
# +------------+-------------+------+-----+---------+-------+
12
 
13
CREATE OR REPLACE VIEW `v_class_coaches` AS select `v_shift`.`date` AS `date`,`v_shift`.`start_time` AS `start_time`,`v_shift`.`location` AS `location`,group_concat(`v_shift`.`derby_name` separator ' & ') AS `coaches`,group_concat(`v_shift`.`RCid` separator ' & ') AS `cRCids` from `v_shift` where ((`v_shift`.`dept` = 'COA') and (`v_shift`.`role` = 'Coach') and (isnull(`v_shift`.`derby_name`) = 0) and (`v_shift`.`derby_name` <> '')) group by `v_shift`.`location`,`v_shift`.`start_time`,`v_shift`.`date`