forked from gvwilson/sql-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: populating work/job database at appropriate times
- Loading branch information
Showing
35 changed files
with
125 additions
and
162 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | pay | | ||
|--------|-----| | ||
| mik | 2.0 | | ||
| po | 0.5 | |
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,8 +1,5 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | pay | | ||
|--------|-----| | ||
| mik | 2.0 | | ||
| po | 0.5 | | ||
| tay | | |
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,8 +1,3 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | job | | ||
|--------|----------| | ||
| tae | complain | |
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,8 +1,5 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | pay | | ||
|--------|-----| | ||
| mik | 2.0 | | ||
| po | 0.5 | | ||
| tay | 0.0 | |
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,8 +1,14 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | job | name | billable | | ||
|--------|-----------|-----------|----------| | ||
| mik | calibrate | calibrate | 1.5 | | ||
| mik | calibrate | clean | 0.5 | | ||
| mik | clean | calibrate | 1.5 | | ||
| mik | clean | clean | 0.5 | | ||
| mik | complain | calibrate | 1.5 | | ||
| mik | complain | clean | 0.5 | | ||
| po | clean | calibrate | 1.5 | | ||
| po | clean | clean | 0.5 | | ||
| po | complain | calibrate | 1.5 | | ||
| po | complain | clean | 0.5 | | ||
| tay | complain | calibrate | 1.5 | | ||
| tay | complain | clean | 0.5 | |
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,8 +1,7 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | job | | ||
|--------|-----------| | ||
| mik | calibrate | | ||
| mik | clean | | ||
| mik | complain | | ||
| po | clean | | ||
| po | complain | |
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,8 +1,5 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | job | name | billable | | ||
|--------|-----------|-----------|----------| | ||
| mik | calibrate | calibrate | 1.5 | | ||
| mik | clean | clean | 0.5 | | ||
| po | clean | clean | 0.5 | |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | job | name | billable | | ||
|--------|-----------|-----------|----------| | ||
| mik | calibrate | calibrate | 1.5 | | ||
| mik | clean | clean | 0.5 | | ||
| mik | complain | | | | ||
| po | clean | clean | 0.5 | | ||
| po | complain | | | | ||
| tay | complain | | | |
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,8 +1,5 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | | ||
|--------| | ||
| mik | | ||
| po | | ||
| tay | |
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,4 +1,9 @@ | ||
| rand | selector | name | | ||
|----------------------|----------|-------------| | ||
| -6001451967753577798 | 7 | Riaan Dua | | ||
| -5172626638304050554 | 4 | Vedika Rout | | ||
| rand | selector | name | | ||
|----------------------|----------|-----------------| | ||
| 7176652035743196310 | 0 | Divit Dhaliwal | | ||
| -2243654635505630380 | 2 | Indrans Sridhar | | ||
| -6940074802089166303 | 5 | Pranay Khanna | | ||
| 8882650891091088193 | 9 | Riaan Dua | | ||
| -45079732302991538 | 5 | Vedika Rout | | ||
| -8973877087806386134 | 2 | Abram Chokshi | | ||
| 3360598450426870356 | 9 | Romil Kapoor | |
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,8 +1,4 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | job | | ||
|--------|----------| | ||
| po | clean | | ||
| po | complain | |
This file was deleted.
Oops, something went wrong.
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,8 +1,4 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | | ||
|--------| | ||
| po | | ||
| tay | |
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,8 +1,8 @@ | ||
CREATE TABLE job ( | ||
name text not null, | ||
billable real not null | ||
); | ||
CREATE TABLE work ( | ||
person text not null, | ||
job text not null | ||
); | ||
| person | job | | ||
|--------|-----------| | ||
| mik | calibrate | | ||
| mik | clean | | ||
| mik | complain | | ||
| po | clean | | ||
| po | complain | | ||
| tae | complain | |
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,4 +1,5 @@ | ||
.read src/create_work_job.sql | ||
.read src/populate_work_job.sql | ||
|
||
-- start | ||
select | ||
|
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,4 +1,5 @@ | ||
.read src/create_work_job.sql | ||
.read src/populate_work_job.sql | ||
|
||
-- start | ||
select | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.read src/create_work_job.sql | ||
.read src/populate_work_job.sql | ||
|
||
-- start | ||
select | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.read src/create_work_job.sql | ||
.read src/populate_work_job.sql | ||
|
||
-- start | ||
select * | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.read src/create_work_job.sql | ||
.read src/populate_work_job.sql | ||
|
||
-- start | ||
select * | ||
|
Oops, something went wrong.