From 5aa4e17c1c01c4310282cf499c9375b02946828f Mon Sep 17 00:00:00 2001 From: daviddoji Date: Wed, 15 Apr 2026 10:41:44 +0200 Subject: [PATCH] automated commit by check50 [check50=True] --- 7.sql | 2 ++ 1 file changed, 2 insertions(+) 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";