Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ifrah Shahid
lab-exercises
Commits
e67b673c
Commit
e67b673c
authored
Oct 27, 2016
by
Sorrel Harriet
Browse files
minor amends
parent
f0144c6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lab-4/music-store-app/sql/schema_norm.sql
View file @
e67b673c
...
...
@@ -108,7 +108,7 @@ Compile wishlists from this data. */
CREATE
TABLE
Wish
(
customer_id
INT
,
album_upc
INT
,
PRIMARY
KEY
(
customer_id
,
album_
id
),
PRIMARY
KEY
(
customer_id
,
album_
upc
),
FOREIGN
KEY
(
customer_id
)
REFERENCES
Customer
(
id
)
ON
DELETE
CASCADE
,
...
...
@@ -122,11 +122,11 @@ CREATE TABLE Rating (
customer_id
INT
NOT
NULL
,
album_upc
CHAR
(
12
)
NOT
NULL
,
score
TINYINT
unsigned
NOT
NULL
,
PRIMARY
KEY
(
customer_id
,
album_
id
),
PRIMARY
KEY
(
customer_id
,
album_
upc
),
FOREIGN
KEY
(
customer_id
)
REFERENCES
Customer
(
id
)
ON
DELETE
CASCADE
,
FOREIGN
KEY
(
album_upc
)
REFERENCES
Album
(
upc
)
ON
DELETE
CASCADE
);
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment