diff --git a/7.sql b/7.sql index e69de29..81c2f1b 100644 --- a/7.sql +++ b/7.sql @@ -0,0 +1,2 @@ +-- write a SQL query to count the number of players who bat (or batted) right-handed and throw (or threw) left-handed, or vice versa. +SELECT COUNT(*) FROM "players" WHERE "bats" = "R" AND "throws" = "L" OR "bats" = "L" AND "throws" = "R";