r/SQL • u/--Ether-- • Apr 07 '26
PostgreSQL ERD Review Request
Hello.
I am new to SQL. I am trying to design database that's a little more complicated than two tables & simple CRUD operations. My idea was to have some sort of system which is basically seniority based bidding. User's can bid on schedules, which are basically a collection of shifts. I seem to have hit a brick wall since I was not able to write a SELECT statement to get each users schedule based on their bid & seniority, so I added an "assigned_shift" table that will insert the data after I do calculation in the application side. Is this a good design?

View all comments
Show parent comment
2
u/--Ether-- Apr 07 '26
The PARTITION BY clause is new to me. I will take a deeper look into it. thank you :)