Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer the following questions. Make sure you use comments in your SQL file to clarify / show which SQL statement is the answer to which

Answer the following questions. Make sure you use comments in your SQL file to clarify/show which SQL statement is the answer to which question. The questions are:
1. Write an SQL query to show payment amout and month of the payment, e.g., January.
2. Write an SQL query to show the CustomerName and the complete address of each customer (the statement should return only two columns; CustomerName, and address).
3. Write an SQL query to show the countries that customers are from.
4. Write an SQL query to show the first name and last name of employees in Upper Cases. The code should return only one column as 'EmpName'.
5. Write an SQL query to show the length of the first name of each employee.
6. Write an SQL query to show the year and month that each order is placed.
7. Write an SQL query to show city of offices (in capital letters) and state and country in lower letters.
8. Write an SQL query to show customers and their names' length.
9. Write an SQL query to show orders and their status under a single column.
10. Write an SQL query to show ProductName and their prices. The code should return only one column.

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

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

=+employee to take on the international assignment?

Answered: 1 week ago