add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
SET
CREATE TABLE
INSERT 0 12
employee_id ts login_time logout_time
504 2015-04-03 2015-04-03 13:05:02 2015-04-03 15:26:16
504 2015-04-03 2015-04-03 15:29:04 2015-04-03 15:30:25
504 2015-04-03 2015-04-03 15:31:41 2015-04-03 17:40:19
505 2015-04-03 2015-04-03 17:43:40 2015-04-03 20:17:59
505 2015-04-03 2015-04-03 22:12:59 2015-04-03 23:30:59
SELECT 5
employee_id ts login_time logout_time
504 2015-04-03 04/03/2015 01:05:02 PM 04/03/2015 03:26:16 PM
504 2015-04-03 04/03/2015 03:29:04 PM 04/03/2015 03:30:25 PM
504 2015-04-03 04/03/2015 03:31:41 PM 04/03/2015 05:40:19 PM
505 2015-04-03 04/03/2015 05:43:40 PM 04/03/2015 08:17:59 PM
505 2015-04-03 04/03/2015 10:12:59 PM 04/03/2015 11:30:59 PM
SELECT 5