May 2019
Intermediate to advanced
600 pages
20h 46m
English
To create a table of test data, we need the following:
The steps are as follows:
postgres=# SELECT * FROM generate_series(1,5); generate_series----------------- 1 2 3 4 5(5 rows)
postgres=# SELECT date(t) FROM generate_series(now(), now() + '1 week', '1 day') AS f(t); date ------------ 2018-04-24 2018-04-25 2018-04-26 2018-04-27 2018-04-28 2018-04-29 2018-04-30 2018-05-01(8 rows)
Read now
Unlock full access