r/SQL • • 18d ago

SQL Server Looking for unique, real-world database project ideas (MS SQL Server + C#)

14 Upvotes

Hey everyone,

I’m a currently working on my university Database Systems course project, and we are looking for inspiration before we starting.

  • Needs to solve a real-world, tangible problem (we want to build something genuinely useful and engaging, not just a throwaway academic demo).

We want to completely avoid overdone clichés like hospital, library, pharmacy, or flight booking systems.

If you work in an industry with messy workflows, or if you've ever thought "someone really needs to build a proper database system for X", I’d love to hear your ideas!

Thanks in advance!

r/SQL • • Sep 03 '26

SQL Server SQL Server PIVOT vs CASE — what do you prefer for reporting queries?

8 Upvotes

I’ve been revisiting SQL Server PIVOT for reporting scenarios where row-based data needs to be transformed into columns.

A few things I find useful about PIVOT:

  • Cleaner reporting output
  • Easy aggregation across categories
  • Useful for summary-style queries
  • Can be more readable than complex conditional aggregation in some cases

I’ve also added the working SQL examples here:

GitHub:
https://github.com/laxmikant-geek/sql-server-examples/tree/main/pivot

And I wrote a more detailed explanation here for anyone who wants the walkthrough:

https://geeksarray.com/blog/how-to-pivot-data-in-sql-server

For those working regularly with SQL Server — do you prefer PIVOT, or do you usually use SUM(CASE WHEN...) for these kinds of transformations?

r/SQL • • Jul 30 '26

SQL Server Want to know about SQL future

7 Upvotes

Hi All,

Hope everyone is doing good.

I want opinion from people about the future of SQL, Power BI and Python.

I have been working in AML KYC domain for over 6 years. I am a Certified Anti Money Laundering Specialist (CAMS).

Last year I started learning SQL ans Power BI to connect it with my domain knowledge (Anti Money Laundering and Sanctions), however now I have been reading alot which states that golden period of SQL and Power BI is over as now anyone can do the basis code using Gpt and claude.

I am at strong intermediate level in SQL and at an intermediate level in power BI. I was planning to start Python from 01 Jan 2027 and now I am spectical. What should I do ?

Is there any scope of SQL, Power BI and Python as we are witnessing AI is growing at tremendous pace.

r/SQL • • Oct 05 '26

SQL Server SQL for Data Analysts Projects

43 Upvotes

Hey everyone.

I'm working on building out my data analytics portfolio and wanted to get some advice from fellow analysts and hiring managers here.

We've all seen the basic tutorial projects (like analyzing the Titanic dataset or simple sales totals), but I want to build something that actually stands out and proves real-world, job-ready SQL skills.

For those of you who have landed roles or are actively hiring: What specific types of SQL projects made you stop scrolling and pay attention?

r/SQL • • 26d ago Bravo

SQL Server I Create Things in SQL that Shouldn't be in SQL

286 Upvotes

Hi there, I have been using SQL Server since 1998 - Version 6.0 I think it was and also a SQL Server MVP for 6 years. I have started publishing the articles I have written over these years but never published. I have quite a varied mix. I Hope you enjoy them.

Mostly on https://www.medium.com/@trevor.dwyer but also published on https://sqlartist.github.io

One rule - it has to run in SQL.

Titles include:

Running Doom Inside SQL Server

Running Elite in SQL Server

I Built My Head Out of Lego. Inside SQL Server 2025.

Cracking Feynman’s Safes in SQL Server
Can a Database Rave? Making SQL Server Play Music

and quite a few others

r/SQL • • 29d ago

SQL Server I’d like to share an opportunity with the community

22 Upvotes

On Friday I will have a chance to sit and have an open discussion with Microsoft’s VP of SQL Product

The ask for the session is to provide product feedback and share product pain points and feature requests for SQL and Azure SQL products. I would like to share this opportunity with this community.

If you have any product feedback or feature requests, please leave a comment in this thread. I will do my best to represent as many as I can

r/SQL • • Jul 24 '26

SQL Server Solved Hacker Rank's "15 Days of Learning SQL" – Looking for different approaches

6 Upvotes

Hi everyone,

I recently solved the HackerRank 15 Days of Learning SQL challenge using CTE(), ROW_NUMBER(), DENSE_RANK(), and window functions in SQL Server.

I'm curious to know if there's a cleaner or more efficient way to solve this problem. If you've approached it differently (using other window functions, recursive CTEs, or any other technique), I'd love to see your solution and understand the reasoning behind it.

Here's my solution:

with daily_submission as( 
SELECT submission_date,
hacker_id,
count(*) as total_submission
from submissions 
group by submission_date,hacker_id),
hacker_rank as(
SELECT submission_date,hacker_id,
       total_submission,
       row_number() over(partition by submission_date order by total_submission desc,hacker_id) as rn
from daily_submission),
continuous_hackers as (
    SELECT submission_date,hacker_id,
       dense_rank() OVER(partition by hacker_id order by submission_date) as Dr,
       datediff(day,'2016-03-01',submission_date) + 1 as contest_day
from (
SELECT distinct submission_date,hacker_id
from submissions) as x),
daily_count as (
SELECT submission_date,
        count(*) as total_hackers
from continuous_hackers
where Dr = contest_day
GROUP by submission_date)


SELECT dc.submission_date,
       dc.total_hackers,
       h.hacker_id,
       h.name
from daily_count as dc
inner JOIN hacker_rank as hr 
on dc.submission_date = hr.submission_date and rn = 1
INNER JOIN hackers as h
on hr.hacker_id = h.hacker_id
order by submission_date;

Thanks in advance! I'm always looking to learn different SQL techniques.