Trasformare la sottoquery in join? [duplicare]
Aug 17 2020
Trasforma la seguente query SQL in una query basata su join
SELECT *
FROM STUDENTS
WHERE StudentID IN (
SELECT UserID FROM Stripe_Transactions where Quantity > 5
)
Dal momento che l'elaborazione richiede molto tempo!
Perché la sottoquery richiede molto tempo?
Risposte
SibinThomasQu4d Aug 17 2020 at 05:27
SELECT tb1. * Da STUDENTS tbl1 INNER JOIN Stripe_Transactions tbl2 su tbl1.StudentID = tbl2.UserID dove tbl2.Quantity> 5