-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstats_db.sql
More file actions
45 lines (44 loc) · 2.38 KB
/
stats_db.sql
File metadata and controls
45 lines (44 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
-- HG00512
select sum(case when HG00512_anchor = 1 and HG00512_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "LOOP",
sum(case when HG00512_anchor = 0 and HG00512_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "NO LOOP"
from anchor_database
union all
-- HG00513
select sum(case when HG00513_anchor = 1 and HG00513_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "LOOP",
sum(case when HG00513_anchor = 0 and HG00513_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "NO LOOP"
from anchor_database
union all
-- HG00514
select sum(case when HG00514_anchor = 1 and HG00514_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "LOOP",
sum(case when HG00514_anchor = 0 and HG00514_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "NO LOOP"
from anchor_database
union all
-- HG00731
select sum(case when HG00731_anchor = 1 and HG00731_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "LOOP",
sum(case when HG00731_anchor = 0 and HG00731_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "NO LOOP"
from anchor_database
union all
-- HG00732
select sum(case when HG00732_anchor = 1 and HG00732_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "LOOP",
sum(case when HG00732_anchor = 0 and HG00732_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "NO LOOP"
from anchor_database
union all
-- HG00733
select sum(case when HG00733_anchor = 1 and HG00733_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "LOOP",
sum(case when HG00733_anchor = 0 and HG00733_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "NO LOOP"
from anchor_database
union all
-- NA19238
select sum(case when NA19238_anchor = 1 and NA19238_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "LOOP",
sum(case when NA19238_anchor = 0 and NA19238_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "NO LOOP"
from anchor_database
union all
-- NA19239
select sum(case when NA19239_anchor = 1 and NA19239_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "LOOP",
sum(case when NA19239_anchor = 0 and NA19239_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "NO LOOP"
from anchor_database
union all
-- NA19240
select sum(case when NA19240_anchor = 1 and NA19240_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "LOOP",
sum(case when NA19240_anchor = 0 and NA19240_sv = "0/1" and "SV_type" = "<INV>" then 1 else 0 end) as "NO LOOP"
from anchor_database