SELECT PLAYERS.

PLAYERNO,NAME FROM PLAYERS,COMMITTEE_MEMBERS WHERE POSITION='CHAI
RMAN' AND PLAYERS.PLAYERNO =COMMITTEE_MEMBERS.PLAYERNO;
SELECT PAYMENTNO FROM PENALTIES WHERE AMOUNT=50 OR AMOUNT=75 OR AMOUNT=100;
SELECT PAYMENTNO FROM PENALTIES WHERE AMOUNT BETWEEN 50 AND 100;
SELECT PLAYERNO,NAME FROM PLAYERS WHERE PLAYERNO NOT IN(SELECT DISTINCT PLAYERNO
FROM MATCHES)
SELECT PLAYERNO,COUNT(MATCHNO) AS NUMBER
FROM MATCHES
GROUP BY PLAYERNO
ORDER BY NUMBER DESC
SELECT PLAYERNO
FROM PENALTIES
GROUP BY PLAYERNO
HAVING COUNT(PLAYERNO)>1
SELECT TEAMNO,COUNT(MATCHNO),SUM(WON)
FROM MATCHES
GROUP BY TEAMNO;
SELECT COUNT(PLAYERNO),TOWN
FROM PLAYERS
GROUP BY TOWN
ORDER BY COUNT(PLAYERNO) DESC
SELECT AVG(DISTINCT AMOUNT)
FROM PENALTIES
SELECT COMMITTEE_MEMBERS.PLAYERNO,NAME,BEGIN_DATE,END_DATE
FROM COMMITTEE_MEMBERS,PLAYERS
WHERE PLAYERS.LEAGUENO IS NULL AND PLAYERS.PLAYERNO=COMMITTEE_MEMBERS.PLAYERNO
SELECT PLAYERNO,POSITION,MAX(DATEDIFF(END_DATE,BEGIN_DATE))
FROM COMMITTEE_MEMBERS
UPDATE MATCHES
SET WON=2
WHERE MATCHNO=13
UPDATE PENALTIES
SET AMOUNT=AMOUNT*1.05
DELETE FROM PENALTIES
WHERE PAYMENTNO=7;
DELETE FROM COMMITTEE_MEMBERS
WHERE PLAYERNO NOT IN (SELECT DISTINCT PLAYERNO FROM MATCHES);
INSERT INTO COMMITTEE_MEMBERS(PLAYERNO,BEGIN_DATE,END_DATE,POSITION)VALUES(57,'1
944-01-01',NULL,'TREASURER');