Employee Search


Ruby on Rails Database abstraction Public

Easy  

3min

A company database contains the following table, in which id is the primary key:

employees

id name age
1 Steve 21
2 John 44
3 Amy 26
4 Marcus 44

Select all the statements that return only the employee with name "John" (id = 2).