-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLAT-1492: Bypass join tables in independent strategy
GitOrigin-RevId: 32a2a10721dfbc1741b4080280fe36dce9dbdb76
- Loading branch information
Showing
9 changed files
with
150 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
create table if not exists beneficiary ( | ||
id integer primary key, | ||
name text not null | ||
); | ||
|
||
create table if not exists insurance_policies ( | ||
id integer primary key, | ||
primary_beneficiary integer not null, | ||
secondary_beneficiary integer not null, | ||
-- | ||
foreign key (primary_beneficiary) references beneficiary (id), | ||
foreign key (secondary_beneficiary) references beneficiary (id) | ||
); | ||
|
||
insert into beneficiary (name) values | ||
("John Doe"), | ||
("Jane Smith"), | ||
("Michael Johnson"), | ||
("Emily Brown"), | ||
("William Wilson"); | ||
|
||
insert into insurance_policies (primary_beneficiary, secondary_beneficiary) values | ||
(1, 2), | ||
(2, 3), | ||
(3, 4), | ||
(4, 5), | ||
(5, 1), | ||
(1, 3), | ||
(2, 4), | ||
(3, 5), | ||
(4, 1), | ||
(5, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters