To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 1dbf731d authored by Reto Da Forno's avatar Reto Da Forno

DB schema updated

parent ae7543d7
This diff is collapsed.
# users
select count(*) from tbl_serv_users;
# of different institutions
# select count(distinct institution) from tbl_serv_users;
select institution, count(institution) from tbl_serv_users group by institution;
# of tests / test time
select time_start_wish from tbl_serv_tests order by time_start_wish limit 1;
select count(*) from tbl_serv_tests where test_status_preserved in ('finished', 'failed', 'retention expiring', 'synced') or test_status_preserved is null;
select min(time_start_act), max(time_end_act), max(time_end_act - time_start_act), sum(time_end_act - time_start_act) as duration from tbl_serv_tests where (test_status_preserved in ('finished', 'failed', 'retention expiring', 'synced') or test_status_preserved is null) and (time_end_act is not null and time_start_act is not null and time_start_act < time_end_act and time_end_act - time_start_act < 72 * 3600 and time_end_act<'2013-10-01 00:00:00');
select min(time_start_act), max(time_end_act), max(time_end_act - time_start_act), sum(time_end_act - time_start_act) as duration from tbl_serv_tests where (test_status_preserved in ('finished', 'failed', 'retention expiring', 'synced') or test_status_preserved is null) and (time_end_act is not null and time_start_act is not null and time_start_act < time_end_act and time_end_act - time_start_act < 72 * 3600);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment