-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rewritten loader logic so it orders owners by pets (#486)
* rewritten loader logic so it orders owners by pets * switched ids of owners so their order don't match up with pets * moved sorting logic to sql query from code * edited slides to reflect new logic
- Loading branch information
1 parent
6f49e06
commit bd8805f
Showing
4 changed files
with
13 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
INSERT INTO owners (name) VALUES ('Jennifer'), ('Simon'); | ||
INSERT INTO pets (name, owner) VALUES ('Max', 1), ('Charlie', 2); | ||
INSERT INTO pets (name, owner) VALUES ('Max', 2), ('Charlie', 1); |
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