Hacker News new | past | comments | ask | show | jobs | submit login
What's an SQL query you've written that was hard and/or fun to write? (twitter.com)
9 points by gleb 41 days ago | hide | past | web | favorite | 2 comments



This one was fun:

DELETE FROM users;

Not so fun for my employer.


The employer:

DELETE Employee_ID FROM Master.HR.Payroll WHERE Employee_ID = 'planetzero'




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: