-
Notifications
You must be signed in to change notification settings - Fork 0
/
SQL_physical discomfort
42 lines (36 loc) · 974 Bytes
/
SQL_physical discomfort
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
## Women who had osteoarthritis grouped by age
SELECT age0,osteoar0, COUNT(*)
FROM kf092010.women_health_num_3
WHERE osteoar0 IN ('1','2')
GROUP BY 1,2
ORDER BY 1,2;
## Women who had breast pain grouped by age
SELECT age0,breastp0, COUNT(*)
FROM kf092010.women_health_num_3
WHERE breastp0 IN ('1','2')
GROUP BY 1,2
ORDER BY 1,2;
##Women who had cramps grouped by age
SELECT age0,cramps0, COUNT(*)
FROM kf092010.women_health_num_3
WHERE cramps0 IN ('1','2')
GROUP BY 1,2
ORDER BY 1,2;
##Women who had bloating grouped by age
SELECT age0,bloated0, COUNT(*)
FROM kf092010.women_health_num_3
WHERE bloated0 IN ('1','2')
GROUP BY 1,2
ORDER BY 1,2;
##Women who had mood change grouped by age
SELECT age0,moodchn0, COUNT(*)
FROM kf092010.women_health_num_3
WHERE moodchn0 IN ('1','2')
GROUP BY 1,2
ORDER BY 1,2;
## Women who had anxiousness grouped by age
SELECT age0,anxious0, COUNT(*)
FROM kf092010.women_health_num_3
WHERE anxious0 IN ('1','2')
GROUP BY 1,2
ORDER BY 1,2;