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

Getting Syntax Error when creating View combining Customer/Invoice #116

Open
oxicakes opened this issue May 14, 2020 · 0 comments
Open

Getting Syntax Error when creating View combining Customer/Invoice #116

oxicakes opened this issue May 14, 2020 · 0 comments

Comments

@oxicakes
Copy link

oxicakes commented May 14, 2020

I'd like to combine customer and invoice in a view to make the Selecting Albums to Purchase project easier to answer, however, I am getting a syntax error when creating a view via the following code. Any thoughts? thanks :)

CREATE VIEW usa_customer AS
SELECT c.country, i.customer_id, i.invoice_id FROM customer c
WHERE c.country = "USA"
INNER JOIN invoice i ON c.customer_id = i.customer_id

SELECT * from usa_customer;

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

No branches or pull requests

1 participant