I have a database that has 5 1:1 relationships. I have a table called SoftwareVersion. Each SoftwareVersion has 5 phases of certification. The PhaseStatus names are the same for all 5 phases. I could not enforce referential integrity with one PhaseStatus table and a Ph0Status, Ph1Status, etc, field in the SoftwareVersion table. So I built 5 join tables. Now I have 5 1:1 Relationships. Every SoftwareVersion has multiple phases that have a status, but each software version only has one Phase 0 status. Is this a good example of a legitimate 1:1 relationship or is there a better way to build this?
1:1 Relationship, Is this a good idea?
71 Views Asked by 1Ummyeah At
1
There are 1 best solutions below
Related Questions in DATABASE
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- How to not load all database records in my TListbox in Firemonkey Delphi XE8
- microsoft odbc driver manager data source name not found and no default driver specified
- Cloud Connection with Java Window application
- Automatic background scan if user edit column?
- Jmeter JDBC Connection Configuration Parametrization of Database URL for accessing SQL Database
- How to grant privileges to current user
- MySQL: Insert a new row at a specific primary key, or alternately, bump all subsequent rows down?
- Inserting and returning autoidentity in SQLite3
- Architecture: Multiple Mongo databases+connections vs multiple collections with Express
- SQL - Adding a flag based on results within a query - best practice?
- Android database query not returning any results
- Developing a search and tag heavy website
- Oracle stored procedure wrapping compile error with inline comments
- Problems communicating with mysql in php
Related Questions in DATABASE-DESIGN
- Big data with spatial queries/indexing
- Unique hash/index for time interval
- Best practices for creating a huge SQL table
- Database Design: How should I store user's news preferences in MySQL database?
- Is it recommended to use Node.js for an online room booking web application?
- Storing multiple item settings in database
- Which column type for storing the year field in a table with rows of yearly data
- Best way to setup a i8n in a database
- Database normalization for electricity monitoring system
- Database Design: Unique Billing Assocation
- Is it always a bad practice to have circular relationships in your database design
- One column maps to mutiple columns from different table
- Replicating tables within the database
- mysql one translates table vs multiple translate table
- Nosql database design for complex querying
Related Questions in RELATIONAL-DATABASE
- Database Design: How should I store user's news preferences in MySQL database?
- Listing specific requirements on Access Database form
- How to have multiple rows reference the same field of a single row?
- Why does SQL standard allow duplicate rows?
- How to implement certain relation between two entities?
- Django- manytomany model relationships
- HSQL (in-memory) dramatically slows down when database grows
- MySQL query to get all (additional) symptoms and diseases
- best way to index from Oracle/relational DB into Elastic search
- Unable to get correct data over several joins
- Database Design Advice for a Social Network App Needed
- Automaticlly attach to pivot table in Laravel 5
- Strange results with HSQL (memory) when running transactional test
- UPDATE after INSERT for potentially multiple rows - not working
- Messaging table performance - Merge from and to id`s into one single field vs separate 2 fields
Related Questions in MS-ACCESS-2013
- Dividing summed field by another summed field in the same query
- Access 2013 - Set a field value based on value of another field
- MS Access validation rules not firing in subform
- MS Access Run-time error 3999
- Using LIKE in Count(IIF()) in MS Access, get NA count
- me.visible for labels and textboxes access
- Microsoft Access can't represent the join expression "<=" operators
- MS Access programmatically edit a datasheet cell value
- about field update using function with case
- MS Access database issue between different language editions
- MS Access: Linked Text File data doesn't change when pointed at a new file
- Access 2013 calculated field too complex
- "Merging" tables in Access Web App using Data Macro
- Populate Text box on report based on value on another form
- INSERT SQL Updatable Query using proper MS Access cmd Command
Related Questions in DATABASE-MANAGEMENT
- How the following SQL query is working?
- How can I list all tables in a database with Squirrel SQL?
- Map existing Database table for Laravel
- Dynamics 365 Finance and Operations - Delete or disable a Fixed asset location
- How should I managed a database for register/log in with Facebook & Twitter
- Content Management System which integrates with mySQL database
- How can I fix, ORA-02291: integrity constant violated - parent key not found
- How to join each order with its price?
- WhichdDatabase would prove efficient?
- Django: Query works fine with Sqlite3, don't with others Database Management System
- how to determine slow queries?
- Storing users data efficiently in mysql database
- Best practices for managing changelogs from different applications
- Whats the best way to sort and search for similar embeddings for facial recognition
- MySQL Community Server - What is it exactly?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I think you mean every SoftwareVersion has many phases, and each phase has one or more possible statuses at a time.
If so, from what I see you need only two tables. You need a PhaseStatus table of all allowable combinations of {phase,status}. Use a FK reference to that table as a constraint to make sure a SofwareVersion in any given phase has a valid status. You might also want tables that enumerate the domains of phases and statuses, in case they have other interesting properties, such as descriptions or perhaps time constraints.