It’s really hard to understand how to combine CAST
with ROUND
in one of the assignments. The task states
- Convert the
bytes
column of thetrack
table to megabytes, and round the results to two decimal places. Alias the result asmegabytes
.
This is my code, but I don’t know to to include the ROUND function.
SELECT (CAST(bytes AS FLOAT) / 1000000) AS megabytes
FROM track;
It’s not very thought through to give such an “advanced” assignment without even giving examples how to combine these two functions.