Imagine a table that holds the TODOs of a team. If a TODO is not yet assigned to a member of the team, its user_id
is NULL
. If it is not NULL
it is a foreign key to the users
table.
More Related Contents:
- Should each and every table have a primary key?
- Database, Table and Column Naming Conventions? [closed]
- In Firebase, is there a way to get the number of children of a node without loading all the node data?
- What are the performance improvement of Sequential Guid over standard Guid? [closed]
- When and why are database joins expensive?
- Normalization: What does “repeating groups” mean?
- Copying data from one SQLite database to another
- Difference Between Firestore Set with {merge: true} and Update
- Can HTML5 databases and localStorage be shared across subdomains?
- What is a database transaction?
- Calculate distance between Zip Codes… AND users.
- Relational table naming convention [closed]
- When I should use one to one relationship?
- What’s the difference between findAndModify and update in MongoDB?
- PostgreSQL: Drop PostgreSQL database through command line [closed]
- How SID is different from Service name in Oracle tnsnames.ora
- Are foreign keys really necessary in a database design?
- GUID vs INT IDENTITY [duplicate]
- Difference between a theta join, equijoin and natural join
- How to parse the data from Google Alerts?
- Database of common name aliases / nicknames of people
- Storing an image into an Attachment field in an Access database
- Best representation of an ordered list in a database?
- Business Logic: Database or Application Layer
- NULL permitted in Primary Key – why and in which DBMS?
- SQL LIKE operator in Cloud Firestore?
- Can I download an SQLite db on /sdcard and access it from my Android app?
- Creating test data in a database [closed]
- What are some best practices and “rules of thumb” for creating database indexes?
- Personal names in a global application: What to store [closed]