db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

SQL function

A SQL function is a named query. Its body can use the parameter names. Mark it IMMUTABLE when the same input always gives the same output.

task

Write net(cents int, pct numeric) returning cents after adding pct percent tax, rounded, as int.

hints