You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//FROM "test_emp" WHERE emp_no < 10010 ORDER BY emp_no;
12
+
//
13
+
// d:i | m:i | h:i
14
+
//0 |0 |0
15
+
//0 |0 |0
16
+
//0 |0 |0
17
+
//0 |0 |0
18
+
//0 |0 |0
19
+
//0 |0 |0
20
+
//0 |0 |0
21
+
//0 |0 |0
22
+
//0 |0 |0
23
+
//;
24
24
25
25
timeAsFilter
26
26
SELECT birth_date, last_name FROM "test_emp" WHERE birth_date::TIME = CAST('00:00:00' AS TIME) ORDER BY emp_no LIMIT 5;
@@ -59,15 +59,15 @@ null |100445
59
59
0 |904605
60
60
;
61
61
62
-
63
-
timeAsHavingFilter
64
-
SELECT MINUTE_OF_HOUR(MAX(birth_date)::TIME + INTERVAL 10 MINUTES) as minute, gender FROM test_emp GROUP BY gender HAVING CAST(MAX(birth_date) AS TIME) = CAST('00:00:00.000' AS TIME) ORDER BY gender;
//SELECT MINUTE_OF_HOUR(MAX(birth_date)::TIME + INTERVAL 10 MINUTES) as minute, gender FROM test_emp GROUP BY gender HAVING CAST(MAX(birth_date) AS TIME) = CAST('00:00:00.000' AS TIME) ORDER BY gender;
65
+
//
66
+
//minute:i | gender:s
67
+
//10 | null
68
+
//10 | F
69
+
//10 | M
70
+
//;
71
71
72
72
timeAsHavingFilterNoMatch
73
73
SELECT MINUTE_OF_HOUR(MAX(birth_date)::TIME) as minute, gender FROM test_emp GROUP BY gender HAVING CAST(MAX(birth_date) AS TIME) > CAST('00:00:00.000' AS TIME);
0 commit comments