First of all - Great set of exercises, many thanks for that!
I noticed that the solution for 00060000-fachours3.ex uses char formatting (which I did not think of while solving it) and I was wondering if there is a reason for leaving out the (for me) obvious way to apply trunc(<value>, 2).
If not, could this be included? I would also be happy to contribute a PR, just let me know.
For example:
select f.facid, f.name, trunc(sum(b.slots / 2.0), 2)
from
cd.facilities f join cd.bookings b
on b.facid = f.facid
group by 1,2
order by 1;
BTW - for the dataset, trunc and round yield the same results.
First of all - Great set of exercises, many thanks for that!
I noticed that the solution for
00060000-fachours3.ex
uses char formatting (which I did not think of while solving it) and I was wondering if there is a reason for leaving out the (for me) obvious way to applytrunc(<value>, 2)
. If not, could this be included? I would also be happy to contribute a PR, just let me know.For example:
BTW - for the dataset,
trunc
andround
yield the same results.