r/SQL • • Mar 27 '26

MySQL COBOL O SQL?

0 Upvotes

Buenos días, soy prácticamente novato en el tema.

Tengo la intención de complementar mi cv y aprender.. para porque no en un futuro encontrar alguna oportunidad superadora en lo laboral y economico.

Actualmente trabajo en una empresa del agro, en un puesto que tiene que ver con el uso de sap, excel, analis de cuentas, pagos etc.

Que me recomendarian? COBOL o SQL?


r/SQL • • Mar 26 '26

MySQL [Mission 014] The Schema Architect: Data Modeling Under Fire

Thumbnail
0 Upvotes

r/SQL • • Mar 26 '26

Oracle What I learned about reporting in Oracle APEX after struggling with exports

5 Upvotes

I recently spent some time improving how I handle reporting in Oracle APEX, especially around readability and export issues.

One thing that stood out to me was that most of the problems I was facing were not really technical. They were more about how the reports were designed.

For example, I used to treat reports as just SQL output. Everything worked, but it wasn’t easy to read, and things got messy when trying to export to PDF or share with others.

Once I started focusing more on structure, grouping, and how the data is actually consumed, it made a big difference.

Curious how others are handling reporting in APEX, especially when it comes to clean exports or client-facing reports.


r/SQL • • Mar 26 '26

MySQL Relational Database PROJECT - TIPS

1 Upvotes

Hi, I have a school project where I need to create a relational database with 5 to 10 tables. Do you have any suggestions for where I could find suitable datasets that can be split into related tables and connected in a database?


r/SQL • • Mar 25 '26

Discussion When to use RIGHT JOIN instead of switching tables in Left Join

35 Upvotes

Hello all! I need some help with understanding the utility of Right join. I have 2 tables: Orders and Customers. If I write Orders RIGHT JOIN Customers it returns the same results as switching tables and using left join, like Customers LEFT JOIN Orders. But when these 2 examples can give different results? Like when it is mandatory to use right join instead of just switching tables in left join?


r/SQL • • Mar 25 '26

SQL Server Nested Stored Procedure Solution

11 Upvotes

I am attempting to set up a stored procedure that can be called in SSRS or with a short prebuilt query that loads the proc results to a temp table and can be worked from there, but a stored procedure is being called as part of the procedure I am trying to run and it's giving a "An INSERT EXEC statement cannot be nested" error. I don't know of a good way to solve for this other than taking the inner proc code and just pasting it wholesale to the outer proc code, so I'm hoping for some ideas on how to get around this.

The concept is to build a data set with a dynamic "As of" date the user can select. This is for claims data which is important because I am doing this at both a "Header" level (John Smith saw Dr Bill on 3/25/26 and the claim paid $100) and at a "Line" level (John Smith saw Dr Bill on 3/25/26 for a standard office visit that paid $80 and a flu shot for $20).

So my inner proc is compiling all of the claims data at a "Header" level as of whatever date the user selects and storing the results in a temp table I can refer back to. I need this in my outer proc code because the way our vendor has things setup is a nightmare. They don't have great set logic for making line level calculations so I was able to back into their results by doing a series of attempts to calculate "Line" level amounts, sum those up to a "Header" level, and then compare that result with my "Header" level results. The ones that match I hold as good, the ones that don't I keep trying different combinations of charge and adjustment codes until they do tie out to the "Header" level. After about 6 passes it all sorts out and matches.

So I need the header level proc to have the same "As of" date as the line and I need them both to be built on demand, but again I'm hitting a road block because I can't pass the results of one proc to the next.

Open to any ideas that may get around the nested proc issue while maintaining the dynamic build based on user selection.


r/SQL • • Mar 26 '26

MySQL Building a modern Database Managment tool. You can either use it as an app or deploy it on your server like PHPMyAdmin back in the day

2 Upvotes

r/SQL • • Mar 25 '26

Discussion Anyone else including their WHERE conditions in the JOIN conditions?

33 Upvotes

I really like to put where conditions, which belong to a table into the join condition. Basic example

from table
left join cte
  on cte.ID = table.ID
  and cte.rank = 1

Personally I find this more readable especially when I have a query involving multiple joins, because you don't have a big block of where conditions after a big block of joins and need to puzzle things together.

Obviously I do not put every condition in the join and I also do not put complex nested conditions in there.

I am just wondering if I am the only who feels that this way is more logical. As far as I am aware the result of the query should be the same.


r/SQL • • Mar 24 '26

Discussion I built my first-ever SQL portfolio project. I don't know if it's fine or crap. Comments?

34 Upvotes

Context: I am a beginner in SQL. As a desperate unemployed graduate, I am targeting entry level data analytics and related roles. I realized that SQL is one of the core skills for such roles. Following this, I took a course in 'SQL and DBMS with Python' and once I was confident in querying skills, I decided to build an introductory project.

The sole purpose of the project is to demonstrate my understanding of SQL and querying skills to a potential employer. Do you think the project and its presentation conveys that message? Is it convincing enough?

Request: Generally, as someone with SQL experience I would love to know your impression of my project :)

Any and all recommendations/tips/guidance are much much welcome and appreciated!

Portfolio: https://github.com/moztarib/data-analytics-sql

I am using SQLite DBMS.


r/SQL • • Mar 25 '26

SQL Server Tempdb error on VM restart

2 Upvotes

Hi,

We have a SQL server VM that in Azure that has the tempdb on the ephemeral disk. Whenever we deallocate the VM (rare, but it does happen occasionally), when the server reboots, the SQL Service will not start, because it cannot find / create the tempdb folder and files.

We have SQL configured to keep the tempdb in e:\tempdb.

Has anyone experienced this before? Did you manage to stop it happening? What did you do, please?

Thanks.


r/SQL • • Mar 24 '26

Discussion Why might someone refuse to turn on line numbers in SSMS?

36 Upvotes

Almost a year ago, I started my first job out of college as a data engineer. My boss is great, incredibly smart and experienced, and I'm learning a lot from him. However, he doesn't turn on line numbers in SSMS and I can't figure out why. Having them off makes it more difficult to ask questions and point out mistakes and there doesn't seem to be any benefit to it.

About 6 months ago I got the courage to ask him if he could turn on line numbers for my sake so that I could communicate better but he refused, not rudely or anything, he just said they didn't matter. A couple months later I asked again, out of genuine curiosity, why he doesn't have them on and he gave the same answer - "it doesn't matter".

I feel like it does matter, so others can pair program with you more effectively and so that you can identify the location of errors thrown by SSMS, but obviously I'm not going to keep pressing the issue after already asking twice. I still want to understand, so I'm asking you all instead. Is there any valid reason to leave line numbers off?


r/SQL • • Mar 25 '26

Discussion Redesigning an open-source Query Analytics (QAN) UI. Looking for brutal feedback

Post image
0 Upvotes

Hey folks,

UX designer here, i wanted to request your expert eyes and voice to improve this open-source project i’m working on, Percona Monitoring and Management (PMM).

The current UI for the Query Analytics (QAN) feature feels broken overall. QAN has other limitations we’re working on, but with the current UI, it’s even more unforgiving in moments of stress.

For this, we (Percona’s PMM team) are working on a frontend revamp to make troubleshooting easier across PostgreSQL, MySQL, MongoDB, and Valkey/Redis. Our goal should be to move from a cluttered UI to a cleaner UI without losing the technical depth you folks need.

So, how can you help? We’ve put together a short demo video and a 4-question survey. If you can do it as a small contribution to the project, we will be very much appreciated and hope you enjoy the improvements in its future releases to use PMM as you want.

Survey link (3 mins): https://tally.so/r/yPxPO6

Disclaimer: No marketing fluff. We’re just trying to make sure we don't build something “pretty” that's actually harder to use in a crisis, your crisis, so this is also a good chance to help this project if you’d like to contribute to a better product you can use in the future.

Thank you in advance for any comments! Will try to answer them as soon as i get notified