Viewing the Data

Selects

SELECT id, first_name, last_name, specialty 
FROM curriculeon.teachers;
ID First Name Last Name Specialty
1 John Smith FRONT END
2 Tabitha Schultz MIDDLE TIER
3 Jane Herman DATA TIER

Where Clause

SELECT id, first_name, last_name, specialty
FROM curriculeon.teachers
WHERE specialty='FRONT END';
ID First Name Last Name Specialty
1 John Smith FRONT END

Limit and Order Clauses

SELECT id, room_number, years, teacher_id FROM curriculeon.teacher_meta
WHERE teacher_id != 1
ORDER BY years DESC;
SELECT teacher_id FROM curriculeon.teacher_meta
WHERE teacher_id != 1
ORDER BY years DESC
LIMIT 1;

| teacher_id | |:———-:| | 3 |