Can you tell me if this is done right or if I need to improve some of them I have a hard time understanding the query's when there is an associative entity.
List all donors
SELECT* from Donor;
List the first and last names of all donors
SELECT dfname, dlname
FROM donor
List the phone numbers of donors number 106 and 125
SELECT dphone
FROM DONOR
WHERE dphone = “106”
AND dphone = “125”;
List the amount given by each donor for each year
SELECT year
FROM YEAR IN (
SELECT donor, amount
FROM GIFT);
List the donors who have made a donation every year
SELECT dfname, dlname
FROM DONOR
WHERE IN( SELECT * FROM
YEAR)
AND amount != null;
List the names of donors who live in Georgia or North Carolina
SELECT dfname, dlname
FROM donor
WHERE state = “GA”
OR state = “NC”;
List the names of donors whose last name is Williams and who live in Athens, GA
SELECT dfname, dlname
FROM donor
WHERE dlname = “Williams”
AND city = “Athens”
AND state = “GA”;
Id like to thank every one who helped and I wish I could give everyone a green check mark as all answers entered provided a solution. I appreciate the help and maybe one day I can contribute to a question you may have in the future.