How would I write this in SQL. Let's say I have a relation which is
college(name, age, address)
I want to find the names of the students that are 20
Is there a way I can write this in SQL
R1 = σ(age = 20) from college
R2 = π(name) from R1
I guess I can write this as
select name from college where age = 20;
Just wondering how I could use variables to make it cleaner?