I am new in Sqlalchemy and trying to achieve the following goal with relationship(): There is an User table which stores user data. Every user i ...
I am new in Sqlalchemy and trying to achieve the following goal with relationship(): There is an User table which stores user data. Every user i ...
I want to define a model that has a self-referential (or recursive) foreign key using SQLModel. (This relationship pattern is also sometimes referred ...
I have this simple entity which may have some children of its own type: Actually, an individual entity may has a parent of its own type or not; and ...
I want to create a referencing / parent-child relationship one-to-zero or one in Entity Framework Core. I mean that my entity could have a parent: ...
I have a self-referencing entity Comment in my project: I am trying to do the following: I want to get all root comments (comments that don't ha ...
This is my entity : fake data : I want to retrieve the rows with the following conditions: parentId is NULL and status is CommentStatus.Visible ...
Suppose I have a table 'prlines' with a self relation on adjacent records: id | prev_id ------------ 1 | NULL 2 | NULL 3 | 1 4 | 2 5 | 3 6 | 5 ...
I've found examples for a self-referencing many-to-many relationship with an association table. How can I achieve the same using an association object ...
I have a spring + Data JPA setup which contains several Entities that inherit from interface definitions like this (in “pseudo” Java): Each entity ...
So here is my issue...what I am trying to create is a self-referencing many to many relationship. Basically here is my model. The idea being that a ...
I have the table orders with the following fields id, updated_at, self_ref_id, and others which doesn't count. The column self_ref_id is a self refere ...
I've got a self referencing table (in SQL Server): Example data: I want to create an sql query to retrieve all pages of the table with FULL rela ...
I am creating a self referential relationship for services. The idea is to allow you to add a potentially infinite level of sub services to a service, ...
Is it possible to have a self-referencing entity where the self-reference ID is NOT NULL? See my sample entity where parent.parent_id is configured wi ...
I'm trying to migrate from int based primary keys to guid based system, and I'm having trouble with migrating self referenced table When querying t ...
TypeAID and TypeBID are nullable fields where row can have one, both or none values entered, and both IDs are pointing to same table Entity.ID (self ...
I have a self referencing employee table, meaning that there are employees with a primary key "EmployeeID" and a foreign key "SupervisorID" for the pa ...
Hi I'm new with django and python. and I want to add the level, how to break it down further. Please help me, invest lots of time and mind. Thanks ...
I have a self referential relationship established. A person can have one a single parent (or None), and a person can have many children (or None). S ...
I need to store groups of users in other groups, somewhat like Windows Active Directory. I have the following what works But I would like to do th ...