Essential storage keeps sign-in and learning features working. Google Analytics measures visits; Microsoft Clarity records interactions to help us improve usability. Both are optional and stay off until you choose. Read our privacy policy.
Choose a language and build confidence with focused exercises, helpful tests, and explanations that teach the underlying pattern.
Attach an AFTER INSERT trigger on order_lines that subtracts NEW.qty from products.stock. Then insert order 3 for Ada buying one MUG-9 at 900 cents, and return mug stock plus the new line. Do not replay the trigger on the historical PEN-2 line: create the trigger after the seed.
Return every customer with spent_cents and spend_rank. spent_cents is the sum of qty * unit_cents across their lines, or 0 if they never ordered. Rank by spent_cents descending using RANK() so ties share a rank. Order the result by spend_rank, then display_name.
Return the number of English vowels in a null-terminated string. Count upper- and lower-case letters, and treat a null pointer as an empty string.