Skip to content

Instantly share code, notes, and snippets.

@smarteist
Last active March 24, 2024 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smarteist/0d102197f2ef23aa9491b5c898a8c365 to your computer and use it in GitHub Desktop.
Save smarteist/0d102197f2ef23aa9491b5c898a8c365 to your computer and use it in GitHub Desktop.
This is relax relational algebra calculator example data
group: SUPPLIER PARTS - S, SP, P
description: This is a very simple database that is used by ChrisDate & HughDarwen throughout their books (e.g., AnIntroductionToDatabaseSystems & TheThirdManifesto) for examples.
P = {
pn, pname, color
1, 'PN1', 'Red'
2, 'PN2', 'Blue'
3, 'PN3', 'Yellow'
4, 'PN4', 'Green'
5, 'PN5', 'Blue'
6, 'PN6', 'Black'
}
S = {
sn, sname, city
1, 'SN1', 'C1'
2, 'SN2', 'C2'
3, 'SN3', 'C2'
4, 'SN4', 'C1'
5, 'SN5', 'C3'
6, 'SN6', 'C4'
}
SP = {
sn, pn, qty
1, 1, 10
1, 2, 20
1, 3, 10
1, 4, 40
1, 5, 50
1, 6, 50
2, 1, 30
2, 3, 30
3, 6, 50
4, 3, 50
5, 1, 30
5, 2, 80
5, 3, 10
5, 4, 79
5, 5, 50
5, 6, 20
}
@jasicarose75
Copy link

jasicarose75 commented Mar 18, 2024

For me, the worst thing is when something has to do with mathematics. I delegate all my work-related tasks to other people. At the university, I actually asked do my math homework, I found https://edubirdie.com/do-my-math-homework for this. I don’t know how I learned 2 programming languages. This is of course just hard for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment