About 18,400,000 results
Open links in new tab
  1. ddl - SQL create weak entity table - Stack Overflow

    Jan 6, 2019 · CREATE TABLE primary_entity ( id numeric PRIMARY KEY, -- some data fields ); CREATE TABLE weak_entity ( id numeric PRIMARY KEY REFERENCES primary_entity(id) ON DELETE CASCADE, -- some data fields );

  2. How to create a table for a weak entity using microsoft sql server ...

    My issue is, how to create a table to this weak entity including it's partial key. Example: First entity: Book(BookId - PK, Titlle) Second entity (the weak entity): Chapter(No, Title) (at this point Chapter.No isn't a primary key because one or more books …

  3. sql - Strong vs Weak entities MYSQL - Stack Overflow

    Apr 17, 2015 · For a assignment of MySQL/SQL, I need to create 2 different tables to show the difference between strong entities and weak entities. Could someone show me an example of how I would do this? I understand that a strong entity can exists without another entity, while the same is not true for a weak entity.

  4. Creating Weak Entities in SQL for Data Dependence - w3resource

    Feb 14, 2025 · Learn how to design weak entities in SQL that depend on strong entities. Maintain referential integrity with composite primary keys.

  5. mysql - Strong vs weak entity types on SQL - Database …

    Jan 9, 2022 · The term weak entity is used for a table where the rows cannot exist without referencing some "parent" entity. For example, you might have tables Users and Phones such that a user can have zero, one, or multiple phones. But a phone number cannot exist without referencing its owning user.

  6. What Is a Weak Entity and How Do I Denote It in an ER Diagram?

    Jan 31, 2023 · In this article, we will discuss the concept of weak entity, illustrate that concept with a weak entity example, and see how weak entities are represented in an ER diagram. To give proper context to the weak entity concept, let’s start by briefly looking at the basics of the entity-relationship diagram.

  7. sql - create weak entity - Oracle Forums

    However, I don't know how to do in order to create Registration table. CREATE Table REGISTRATION - weak entity (CustID Number (2), RDate Varchar2(11), Primary Key (CustID, RDate), Foreign Key (CustID) REFERENCES CUSTOMER, Foreign Key (RDate) REFERENCES REVIEW (RDate)); CREATE Table REVIEW - weak …

  8. MySQL Workbench draw weak entity - Super User

    Mar 5, 2013 · A entity is called "weak" when its existence depends on the existence of another (i.e., strong) entity. In MySQL Workbench, click on the relationship between two relations and check "Identifying relation". One example for a weak …

  9. Weak Entity Set in ER diagrams - GeeksforGeeks

    Dec 28, 2024 · An entity type should have a key attribute which uniquely identifies each entity in the entity set, but there exists some entity type for which key attribute can’t be defined. These are called Weak Entity type.

  10. How do we express a weak entity to be dependent on another weak entity?

    Jan 19, 2018 · If you want to make sure a book cannot be created without an author reference, declare author_id as not nullable (author_id integer not null). Declaring the FK as you did is enough to ensure that author_id is a valid reference. As for the actual question, I'm not sure I've understood what the trouble is.

  11. Some results have been removed
Refresh