Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(Microsoft Access SQL) I am trying find the UNum for users who played the same g

ID: 3756923 • Letter: #

Question

(Microsoft Access SQL) I am trying find the UNum for users who played the same game on all consoles. I have most of my query but am not sure how get the correct output. Based on what the question is asking I belive the output should be U20 because that us the only one that has played the same games on concols, but I am not sure how to get there.

SELECT UNum
FROM Users AS U
WHERE EXISTS
(SELECT*
FROM Games AS G
WHERE G.GNum
AND EXISTS

(SELECT *
FROM Plays AS P
WHERE P.UNum = U.UNum
AND P.GNum = G.GNum));

Users UNum U10 U20 U30 U40 Plays UNumGNum U10 U10 U20 U20 U20 U20 U20 U20 U20 U20 U30 U30 U40 U40 U50 U50 U50 U50 U50 U50 U50 U50 U50 U50 UserName Masterv Hometown Sheldon Miss Meemaw CNum TimesPlayed To NewYork NewYork To Seattle G100 G100 G300 G300 G300 G300 G300 G300 G300 G500 G300 G400 G600 G600 G100 G200 G200 G300 G400 G500 G500 G500 G600 G600 Games GNum GameName ListPrice Version CityCreated G100IP G200 PacMan G300 Zelda G400 Doom G500 MarioBros 19.99 G600 Pitfall C6 9.99 24.99 19.99 9.99 0 NewYork C2 0 New York To 9.99 Consoles CNum ConsoleName Price ManuLoc NewYork Seattle Atari 99.99 Intellivision 129.99 119.99 Nintendo PlavStation Coleco 89.99Seattle 189.99 129.99 SegaGenesis 129.99 0 0

Explanation / Answer

If you have any doubts, please give me comment...

SELECT UNum

FROM Users AS U

WHERE NOT EXISTS(

SELECT *

FROM Consoles AS C

WHERE NOT EXISTS(

SELECT *

FROM Plays AS P

WHERE P.UNum = U.UNum AND C.CNum = P.CNum

)

);