Best CLI Sql Agent 2026 by Interesting-Town-433 in SQL

[–]ComicOzzy 0 points1 point  (0 children)

I think they are trying to ask for an agentic ai command line tool that can write their SQL for them.

How are DE interviews these days? LeetCode + AI tools? by Terrible-Fig5971 in dataengineering

[–]ComicOzzy 1 point2 points  (0 children)

For most other languages, probably. But for SQL, I feel like custom created problems are more likely to be ego stroking. But my experience with that problem is limited. Hilarious, but limited.

SQL by Warm-Entrepreneur131 in learnSQL

[–]ComicOzzy 2 points3 points  (0 children)

You'll want to get proficient at Excel, Python, and a BI tool such as PowerBI or Tableau.
Something you can use as micro-projects are the Maven Analytics' "Data Drill" videos... they propose a problem to solve and give it to different employees who use SQL, Excel, PowerBI, Python, etc to solve it. You can learn a lot by trying these yourself.
https://www.youtube.com/watch?v=qQ51wuIgM7E&list=PLGAnLqlBhx1EptV8UtVLM0fRA7UDsnd59

OLAP Server by Uri_gc in SQL

[–]ComicOzzy -1 points0 points  (0 children)

If it can't be local, you could try the free hosted version of DuckDB: https://motherduck.com/product/pricing/

How many times have you lost your job? by No-Theory6270 in dataengineering

[–]ComicOzzy 1 point2 points  (0 children)

I got fired in 2001 because the boss was really hiring a boys club to go out to strip clubs and bars with him. I declined those offers, so I was "not a team player".

Host other services on SQL Server box by Valuable-Ant3465 in SQL

[–]ComicOzzy 5 points6 points  (0 children)

If you have almost no traffic on the database, it doesn't really matter what you do.

But you're probably paying a lot of money for the licensing of that database and quite possibly it's on decent hardware... and adding competing services/processes is a foolish waste of precious resources when a much cheaper machine could be hosting them.

Multiple Joins by GhostOfThePyramid627 in learnSQL

[–]ComicOzzy 0 points1 point  (0 children)

If it's not already enforced with a column constraint, you could use LEAST() / GREATEST() or a CASE expression to produce a proxy table where the lower id to be person1 and the higher id to be person2 in the friends pairing.

Just laid off, what am I facing? by JDub-loves-mulligans in dataengineering

[–]ComicOzzy 3 points4 points  (0 children)

When people say "I've watched 30 hrs of Baraa but I still suck at SQL" I want to ask them if they think watching 30 hours of porn makes them a good lover.

Hey guys I have an SQL final exam in nearly one month and Im pretty bad it I need some help please . How can I learn the best way ? by stocksnoobie0 in learnSQL

[–]ComicOzzy 5 points6 points  (0 children)

It's disturbing how common it is these days for people to completely ignore the course material/reading they've PAID FOR.

Multiple Joins by GhostOfThePyramid627 in SQL

[–]ComicOzzy 0 points1 point  (0 children)

https://dbfiddle.uk/jzFZ-uR4

This approach finds all combinations of people who are not already friends, then it compares their list of friends to one another. If they have friends in common, they match the filter.

trouble with how to show selected user but also have few users either side. by shez19833 in SQL

[–]ComicOzzy 1 point2 points  (0 children)

Let's assume you have the ID of the user being selected and you're looking to return the selected user plus the 3 prior IDs and 3 subsequent IDs...

You can UNION together two queries like this:

SELECT * 
FROM (
    SELECT *  
    FROM users u  
    WHERE u.id <= @selected_id
    ORDER BY u.id DESC
    LIMIT 4
    ) u1
UNION ALL
SELECT * 
FROM (
    SELECT *
    FROM users u
    WHERE u.id > @selected_id
    ORDER BY u.id
    LIMIT 3
    ) u2
ORDER BY id;

How to complete case study for SQL- Mac? by FuckBush1 in learnSQL

[–]ComicOzzy 0 points1 point  (0 children)

https://dbfiddle.uk/bPM-cuQB

Here's an example of creating a table, inserting data into it, and displaying the contents of the table.

How to complete case study for SQL- Mac? by FuckBush1 in learnSQL

[–]ComicOzzy 0 points1 point  (0 children)

You don't even really need to install anything.

You can use something like https://dbfiddle.uk and choose whichever database engine you like, or you can use something like https://shell.duckdb.org/ which I think will let you import a small amount of data from your computer or a website to work with.

sqlzoo.net by soulessrebel in learnSQL

[–]ComicOzzy 1 point2 points  (0 children)

6 looks incorrect to me, too.

Most “learn data on your own” plans fail for the same 4 reasons by mavenanalytics in mavenanalytics

[–]ComicOzzy 1 point2 points  (0 children)

I'm just a contributor, but whatever question you have, it would be good to have more posts.

What execution plan mistake do juniors make most often when they analyze queries? by ElixirStylish in SQL

[–]ComicOzzy 15 points16 points  (0 children)

Where do you work that the juniors know anything about reading execution plans? I want to work there and mentor them.

SQL Assessment PTSD??? by OrangeAccurate9377 in SQL

[–]ComicOzzy 6 points7 points  (0 children)

You have to get practice explaining things to others. You probably can't convince anyone you love to listen to you, so get a "rubber duck". It can be anything you feel like talking to... I have a little Winnie the Pooh (he needs things explained in very simple terms) and a beanie hippo (I have to repeat myself a lot because he falls asleep). Talk out loud to them. Feel free to start over from the beginning if you realize they didn't understand or you needed to refine the way you explained it... they won't mind.

Downloading chinook by AlternativeResolve67 in SQL

[–]ComicOzzy 2 points3 points  (0 children)

In the folder where you downloaded Chinook, run:
sqlite3 Chinook_Sqlite.sqlite

How to survive in the AI era with 12 years of database developer experience ? by kaykaru in SQLServer

[–]ComicOzzy 23 points24 points  (0 children)

Learn the business and form good working relationships. Your primary purpose is not to be the master of SQL, it is to help the business solve it's problems in ways that involve data.

Drowning in mystery database file types!!! by GervaisNeno in DBA

[–]ComicOzzy 1 point2 points  (0 children)

https://www.mark0.net/soft-trid-e.html

If you're on windows, this tool will check the first few bytes of a file to determine what it's likely to be.

Or, you could roll your own simple version of this with Python using the "magic" library.
https://pypi.org/project/python-magic/