Skip to content

Commit ba8ae40

Browse files
authoredJul 1, 2024
Create SQL Police Department 10
1 parent 0ef249c commit ba8ae40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎SQL Police Department 10

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*Please submit the top 20 records surnames, join dates and number of password changes' details when sorted by join dates in descending order and then by number of password changes in descending order. Please make sure there are no duplicates.*/
2+
SELECT DISTINCT Surname, Joined, PasswordChanges
3+
FROM mailing_list
4+
ORDER BY Joined DESC, PasswordChanges DESC
5+
LIMIT 20;

0 commit comments

Comments
 (0)
Please sign in to comment.