Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
-2 votes
1 answer
66 views

The project is a database for an online clothing store. Which tables are well normalized and which need to be normalized? DB schema of all the tables before doing any normalization: https://i.sstatic....
-3 votes
0 answers
39 views

I am building an SMS gateway system in Django that acts as an interface between university data sources (e.g., student information systems) and an SMS provider. The Architecture: To ensure data ...
0 votes
0 answers
45 views

We’re building a system where an offer can be redeemed until a global limit is reached. For example, an offer may allow a maximum total redeemable amount (e.g., 10M), or/and only allow each user to ...
Best practices
0 votes
2 replies
121 views

I’m designing a domain model where some entities evolve over time, and I need to keep a historical record of their state that can be retrieved later. A simplified example: A Credit Line represents a ...
Best practices
0 votes
5 replies
97 views

I'm developing a desktop application for gym management. One feature is a store for selling memberships and products. My client sometimes wants to sell something that is not in the inventory or ...
Best practices
1 vote
1 replies
103 views

Our team manages a SQL Server 2019 data warehouse that’s grown to over 10 TB. It currently uses a single database with multiple schemas (clinical, financial, hr, operations, staging, etc.). Our DBA is ...
Best practices
3 votes
1 replies
112 views

I am creating an E-Commerce app. It has Category and Product classes. Both have multilingual descriptions, so, tables with title, description, meta-*, etc. and unique key (id, language_id). To add ...
0 votes
0 answers
112 views

I have a table CREATE TABLE Person ( id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, home CHAR(2) NOT NULL ); where I would like the values of home to be either a country code or a ...
0 votes
1 answer
61 views

I’ve been working on a React/Firebase app for the past 10 months, and things have been smooth so far. Recently, I decided to do some refactoring. I switched from using user-generated fields as unique ...
3 votes
1 answer
138 views

I have two tables in Postgres with a parent/child relationship: CREATE TABLE table_a ( id SERIAL PRIMARY KEY, type TEXT NOT NULL, rundate DATE NOT NULL ); CREATE TABLE table_b ( id ...
1 vote
2 answers
69 views

We have entities Teacher and Student; there are two relationships between them, supervision and teaching: Supervision is one-to-many, but teaching is many-to-many, which is a problem. To fix it, I ...
0 votes
1 answer
82 views

I have these tables in my PostgreSQL database: CREATE TABLE companies ( id INT PRIMARY KEY, name VARCHAR(255) NOT NULL UNIQUE ); -- Employees belong to one company CREATE TABLE employees ( ...
-1 votes
1 answer
121 views

I have a table Languages: ID | ISO639 | NAME ---+--------+--------- 1 | EN | English 2 | DE | Deutsch 3 | TR | Türkçe (etc.) I have another table Headlines: ID | EN | DE | ...
rhavin's user avatar
  • 1,804
0 votes
2 answers
152 views

I want to create a database for my blog website where I have many posts and categories. A post can have many categories and a category can have many posts. I couldn't figure out how to implement it in ...
-1 votes
1 answer
69 views

Why isn't it possible to add a column to a partition? From my point of view, the partitioning feature introduced in PostgreSQL is much more useful than table inheritance. Table inheritance shoots at ...

15 30 50 per page
1
2 3 4 5
...
1615

AltStyle によって変換されたページ (->オリジナル) /