Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Few SQL questions I'm getting a syntax error SELECT invoice_due_date,invoice_total,invoice_total/10 as 10%,invoice_total+(invoice_total/10) as plus_10% FROM invoices WHERE invoice_total>=500 AND invoice_total

Few SQL questions

I'm getting a syntax error

SELECT invoice_due_date,invoice_total,invoice_total/10 as 10%,invoice_total+(invoice_total/10) as plus_10% FROM invoices WHERE invoice_total>=500 AND invoice_total <=1000 ORDER BY invoice_due_date DESC FETCH FIRST 12 ROWS ONLY;

column invoice_number in field list is ambiguous

SELECT invoice_number, invoice_date, payment_date (invoice_total - payment_total - credit_total) as 'balance_due' from invoices, invoice_archive WHERE payment_date IS NOT NULL;

Could I get some help where the errors are?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Neo4j Data Modeling

Authors: Steve Hoberman ,David Fauth

1st Edition

1634621913, 978-1634621915

More Books

Students also viewed these Databases questions

Question

Why could the Robert Bosch approach make sense to the company?

Answered: 1 week ago