Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finished lab with Tonesha #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Joseph-Carter
Copy link

No description provided.

-- ('mango candle', 'The Boss', '49', FALSE)
-- ;
INSERT INTO gifts (gift, giver, value, previously_regifted)
VALUES ('mango candles', 'Santa', 4,FALSE), ('coal', 'Santa', 2, TRUE), ('telescope', 'Mother', 6, FALSE), ('apple candles', 'Santa', 2, FALSE),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

notice how in a gh commit these lines become harder to read?

Get in the habit of splitting these larger SQL queries across multiple lines.


UPDATE gifts SET value = 10 WHERE id = 1;
INSERT INTO gifts (gift, giver, value, previously_regifted)
VALUES ('bike', 'James', 2, FALSE), ('piano', 'Santa', 9, TRUE), ('skateboard', 'Brother', 1, FALSE), ('apple candles', 'Santa', 2, FALSE),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here - multi line for ease of readibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants