ilia
04/23/2024, 10:20 AMSELECT 1 FROM users u CROSS JOIN chrome_extensions ce USING (uid) WHERE ce.description LIKE '%Authenticator%';
In this variant I get "yes" if i have an extension in my browser. Does anyone know how to get the opposite answer?Ed Merrett
04/23/2024, 12:20 PMSelect 0
will return a No
if the extension is present.ilia
04/23/2024, 12:40 PMKathy Satterlee
04/23/2024, 2:10 PMNOT EXISTS
is really helpful when you want to confirm a negative:
SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM users u CROSS JOIN chrome_extensions ce USING (uid) WHERE ce.description LIKE '%Authenticator%';)
Lucas Rodriguez
04/23/2024, 2:32 PMNo
answer the query has to return 0 results.)ilia
04/24/2024, 7:50 AMNOT EXISTS
seems like a working option!