Skip to content

Commit 358d339

Browse files
authored
Create 1747-leetflex-banned-accounts.sql
1 parent fb682b3 commit 358d339

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

1747-leetflex-banned-accounts.sql

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Write your MySQL query statement below
2+
SELECT DISTINCT L1.account_id FROM LogInfo L1 INNER JOIN LogInfo L2
3+
ON L1.account_id = L2.account_id
4+
AND L1.ip_address <> L2.ip_address
5+
AND (L1.login BETWEEN L2.login AND L2.logout OR L1.logout BETWEEN L2.login AND L2.logout);

0 commit comments

Comments
 (0)