MySQL Forums
Forum List  »  Newbie

Re: Error 1064
Posted by: Regina Hill
Date: December 10, 2014 08:15AM

I did it like this:

SELECT invoice_id, invoice_number, invoice_total,
(SELECT vendor_name
FROM vendors v
WHERE v.vendor_id = i.vendor_id)
FROM invoices i
WHERE invoice_total > 5000
Order by invoice_id;

Options: ReplyQuote


Subject
Written By
Posted
December 09, 2014 09:46PM
December 10, 2014 05:25AM
December 10, 2014 08:12AM
Re: Error 1064
December 10, 2014 08:15AM
December 10, 2014 03:31PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.