One of Several
Return the name and dept of everyone who works in ops or in risk. Rows may come in any order.
Example 1
employees
| id | name | dept |
|---|---|---|
| 1 | Ada | ops |
| 2 | Ben | risk |
| 3 | Cy | sales |
| 4 | Dee | tech |
returns
| name | dept |
|---|---|
| Ada | ops |
| Ben | risk |
Constraints
- Up to 12 people
Write it in your browser, against the clock. The model query, with a note on each piece of it, comes after.
More SQL problems
- Only the Big OnesBeginner
- Starts With ABeginner
- Three LargestBeginner
- Trade ValueBeginner
- Two ColumnsBeginner
- Average per SymbolEasy
- Biggest SpenderEasy
- Bought and SoldEasy