Beginner Question in PostgreSQL concerning CASE, WHEN, THEN, END AS

I am following a video tutorial that tackles <kbd>CASE</kbd>, <kbd>WHEN</kbd>, and <kbd>END AS </kbd> queries. pgAdmin can find it with <kbd>SELECT</kbd> but when using the <kbd>CASE</kbd> it ceases to exist! select film_id, title, description, release_year, length, rating, CASE WHEN language_id ‘1’ THEN ‘English’ WHEN language_id ‘2’ THEN ‘Italian’ WHEN language_id ‘3’ THEN ‘Japanese’ WHEN language_id… Read More Beginner Question in PostgreSQL concerning CASE, WHEN, THEN, END AS

How to do if elif statements in postgressql and save the outcome in a new column?

i’m quite new to postgressql, so i have a table called public.dim_products with a column called weight_kg what i would like to do is given some weight in the weight ranges below to set up a new column called weight_class and have these values `+————————–+——————-+ | weight_class VARCHAR(?) | weight range(kg) | +————————–+——————-+ | Light… Read More How to do if elif statements in postgressql and save the outcome in a new column?

What's the "internal" language on the pgadmin4's function creation wizard?

We’re learning how do functions work and we found out this language (?) on the selection, we didn’t find any documentation, neither on pgadmin’s official website… Any help is appreciated! >Solution : Don’t search the pgadmin4 documentation, but look at the SQL tab of the dialog to see the generated SQL commands. Then refer to… Read More What's the "internal" language on the pgadmin4's function creation wizard?