How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask ATLPROG Your Own Question
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

1.Write a SELECT statement that returns four columns based

Customer Question

1.Write a SELECT statement that returns four columns based on the InvoiceTotal column of the Invoices table:
•Use the CAST function to return the first column as data type decimal with 2 digits to the right of the decimal point.
•Use CAST to return the second column as a varchar.
•Use the CONVERT function to return the third column as the same data type as the first column.
•Use CONVERT to return the fourth column as a varchar, using style 1.

2.Write a SELECT statement that returns four columns based on the InvoiceDate column of the Invoices table:
•Use the CAST function to return the first column as data type varchar.
•Use the CONVERT function to return the second and third columns as a varchar, using style 1 and style 10, respectively.
•Use the CAST function to return the fourth column as data type real.

3.Write a SELECT statement that returns two columns based on the Vendors table. The first column, Contact, is the vendor contact name
in this format: first name followed by last initial (for example, “John S.”) The second column, Phone, is the VendorPhone column without the area code.
Only return rows for those vendors in the 559 area code. Sort the result set by first name, then last name.

4.Write a SELECT statement that returns the InvoiceNumber and balance due for every invoice with a non-zero balance
and an InvoiceDueDate that’s less than 30 days from today.

5.Modify the search expression for InvoiceDueDate from the solution for exercise 4.
Rather than 30 days from today, return invoices due before the last day of the current month.

Here are the files.
http://wikisend.com/download/163200/SQL Diagram.docx
http://wikisend.com/download/456316/sql8_allfiles.zip
Submitted: 5 years ago.
Category: Programming
Expert:  jatechexpert replied 5 years ago.
hithanks for using justAnswer.comi will hel0p you to do thiswhen you need this
Customer: replied 5 years ago.
In a few hours, thank you
Expert:  jatechexpert replied 5 years ago.
hiok i will try to do this soon
Expert:  jatechexpert replied 5 years ago.
hisorry i am opting out this to other experts
Customer: replied 5 years ago.
ok
Expert:  jatechexpert replied 5 years ago.
hi
ok then
Customer: replied 5 years ago.
How do I cancel a question?
Expert:  jatechexpert replied 5 years ago.
hiyou have an option to close it
Customer: replied 5 years ago.
I would like for the question to be answered by somone. I was hoping to get it solved today.
Expert:  jatechexpert replied 5 years ago.
hiif some one wiish to help you. they will contact you
Customer: replied 5 years ago.
Question answered, close question please.
Expert:  jatechexpert replied 5 years ago.

hi

 

you have an option to lock this