0% found this document useful (0 votes)
51 views1 page

CIT111 W04 Assignment

Assignment for BYU CIT111 Week 4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views1 page

CIT111 W04 Assignment

Assignment for BYU CIT111 Week 4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Flavio Hernandez de Hoyos

CIT 111
October 08, 2020

W04 Assignment: Chapter 3


Query 1: #6

SELECT vendor_name, vendor_contact_last_name, vendor_contact_first_name


FROM Vendors

Query 2: #7

SELECT CONCAT(vendor_contact_last_name, ', ', vendor_contact_first_name) AS Full_name


FROM Vendors WHERE vendor_contact_last_name REGEXP '^[ABCE]'
ORDER BY vendor_contact_last_name asc

Query 3: #8

SELECT invoice_due_date AS 'Due Date', invoice_total AS 'Invoice Total', invoice_total*.1 AS '10%', invoice_total+
(invoice_total*.1) AS 'Plus 10%'
FROM invoices WHERE invoice_total >= 500 AND invoice_total <=1000
ORDER BY invoice_due_date asc

Query 4: #9

SELECT invoice_number, invoice_total, (payment_total+credit_total) AS 'payment_credit_total', Invoice_total-


(payment_total+credit_total) AS 'balance_due'
FROM invoices WHERE Invoice_total-(payment_total+credit_total)> 50
ORDER BY balance_due desc LIMIT 5

Query 7: #10

SELECT invoice_number, invoice_total, Invoice_total-(payment_total+credit_total) AS 'balance_due', payment_date


FROM invoices WHERE payment_date IS NULL

Query 5: #11

SELECT DATE_FORMAT (CURRENT_DATE, '%m-%d-%Y') AS 'CURRENT_DATE'

Query 6: #12

SELECT 50000 AS 'starting_principal', 50000 * .065 AS interest, 50000 + (50000 * .065) AS 'principle_plus_interest'

You might also like