D
DS
Is there any difference between these 2 SQL statements?
The where clause...
1
SELECT PayName.PaymentNameID, PayName.PaymentName,
PayName.ExpirationDate, SecurityDetails.SecurityID,
SecurityDetails.Active, Privleges.PrivID, Privleges.PayTag
FROM (SecurityDetails INNER JOIN Privleges ON SecurityDetails.PrivID =
Privleges.PrivID) INNER JOIN PayName ON Privleges.PayTag =
PayName.PaymentType
WHERE (((PayName.PaymentName) Not Like "Coupon") AND
((PayName.ExpirationDate) Is Null) AND ((SecurityDetails.Active)=-1)) OR
(((PayName.ExpirationDate)>Now()))
ORDER BY PayName.PaymentName;
2
SELECT PayName.PaymentNameID, PayName.PaymentName,
PayName.ExpirationDate, SecurityDetails.SecurityID,
SecurityDetails.Active, Privleges.PrivID, Privleges.PayTag
FROM (SecurityDetails INNER JOIN Privleges ON SecurityDetails.PrivID =
Privleges.PrivID) INNER JOIN PayName ON Privleges.PayTag =
PayName.PaymentType
WHERE (((PayName.PaymentName) Not Like "Coupon") AND
((PayName.ExpirationDate) Is Null) AND ((SecurityDetails.Active)=-1)) OR
(((PayName.PaymentName) Not Like "Coupon") AND
((PayName.ExpirationDate)>Now()) AND ((SecurityDetails.Active)=-1))
ORDER BY PayName.PaymentName;
Will they work the same?
Thanks
DS
The where clause...
1
SELECT PayName.PaymentNameID, PayName.PaymentName,
PayName.ExpirationDate, SecurityDetails.SecurityID,
SecurityDetails.Active, Privleges.PrivID, Privleges.PayTag
FROM (SecurityDetails INNER JOIN Privleges ON SecurityDetails.PrivID =
Privleges.PrivID) INNER JOIN PayName ON Privleges.PayTag =
PayName.PaymentType
WHERE (((PayName.PaymentName) Not Like "Coupon") AND
((PayName.ExpirationDate) Is Null) AND ((SecurityDetails.Active)=-1)) OR
(((PayName.ExpirationDate)>Now()))
ORDER BY PayName.PaymentName;
2
SELECT PayName.PaymentNameID, PayName.PaymentName,
PayName.ExpirationDate, SecurityDetails.SecurityID,
SecurityDetails.Active, Privleges.PrivID, Privleges.PayTag
FROM (SecurityDetails INNER JOIN Privleges ON SecurityDetails.PrivID =
Privleges.PrivID) INNER JOIN PayName ON Privleges.PayTag =
PayName.PaymentType
WHERE (((PayName.PaymentName) Not Like "Coupon") AND
((PayName.ExpirationDate) Is Null) AND ((SecurityDetails.Active)=-1)) OR
(((PayName.PaymentName) Not Like "Coupon") AND
((PayName.ExpirationDate)>Now()) AND ((SecurityDetails.Active)=-1))
ORDER BY PayName.PaymentName;
Will they work the same?
Thanks
DS