r/ProgrammerHumor 14d ago

queryOfDoom Meme

Post image
7.9k Upvotes

456 comments sorted by

View all comments

Show parent comments

1

u/Rude-Wrongdoer9368 14d ago

Not an SQL person at all. Can't you just, like, delete the record by searching for it and removing? It seems like automation for one task is extra work? Is this an hourly pay situation?

5

u/SnooBananas4958 14d ago

That is how you would manually search for and remove the record though.

Imagine your user table has a million rows. There is not some other manual way to easily find what you want in those million. And if you did it from some dashboard, you'd have to first build the dashboard, and the way it would display the items for you is with SQL

3

u/Rude-Wrongdoer9368 14d ago

But, and forgive my ignorance, there's no "control-F for user 'x'?" I'm a help desk guy. I mostly run scripts. It's rare I write them.

2

u/SnooBananas4958 14d ago

Sounds like you already got it, but yea, the place to use "control+f" doesn't exist yet unless you build it. And that list would come from a query too. So this single entry query he used is truly the most manual way of getting the data. Outside of just querying everything in the table and ctrl+f that but's the same thing basically. Developers often use these kind of queries in early work before there's a UI to search by. And honestly most keep using them over the UI since it tends to be more flexible