MYSQL Exercises Write a SELECT statement that returns the same result set as thi
ID: 3593511 • Letter: M
Question
MYSQL
Explanation / Answer
Hi,
Ans 1- Select distinct vendor_name from vendors where vendor_id in(select vendor_id from invoices) order by vendor_name;
Ans 2- Select invoice_number, invoice_total from invoices I where payment>(select avg(payment) from invoices I1 where I.invoice_id=I1.invoice_id);
Ans 3- select account_number,account_description from general_ledger_accounts gla where account_number not exists(select account_number from Invoice_Line_Items) order by account_number;
Ans 4- select invoice_id,invoice_sequence,line_item_amount,vendor_name from Invoice_Line_Items where invoice_sequence in(select invoice_sequence from Invoice_Line_Items where invoice_sequence>1 );
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.