Files
me50/7.sql
2026-04-15 10:41:44 +02:00

3 lines
239 B
SQL

-- 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";