In my database table, I have three fields. Let's say the fields names are name,age, and favorite_numbers.
Now, the contents of my database are as follows:
- Anna is 15 and her favorite numbers are "14,21,16"
- Jessica is 20 and her favorite numbers are "21,30,20"
- Sara is 30 and her favorite numbers are "50,45,21"
- Jessa is 12 and her favorite numbers are "10,12,20"
- Farrah is 19 and her favorite numbers are "6,12,20"
How do I formulate my query in order to view the names of the people whose has the favorite number of 21?
In the contents above, I wanted to display Anna, Jessica and Sara's names only since the three of them has the favorite number of 21.