Introduction
Numbers
Boolean
Date and time
Summary

Instruction

Nice. Did you try to insert a value like 1.236? Did you see what happened? It was rounded to 1.24. This is because we specified two digits after the decimal point when creating the column. Once you provide the precision and scale, you can't exceed it.

Exercise

Let's check how much tax Peter is going to pay. Select 0.15 of every amount in the table payment.

Stuck? Here's a hint!

Type

SELECT 0.15*amount FROM payment;

Console

Code editor

Result

TableConsole