CASE
SELECT
gender_id
SELECT id, first_name, CASE gender WHEN 1 THEN 'Male' WHEN 2 THEN 'Female' ELSE 'Undefined' END AS student_gender FROM students
Pro tip: use ```triple backticks around text``` to write in code fences