Databases SQL Basics Finding the Data You Want Filtering by Comparing Values

why when I write this come I get error what is the wrong? SELECT * FROM results WHERE home_team > 12;

SELECT * FROM results WHERE home_team > 12;

2 Answers

Ryan Gostic
Ryan Gostic
20,790 Points

home_team is a string therefore you can not compare the number 12 to it.

thank you