Computer Science Homework Solutions
Problem
#152446

Query Statement for to query DATA

Use only one SQL statement for each task. Submit the SQL statement(s) that you would use to accomplish each task.

1.Find all employees whose name starts with either an S, s, A, a, T, or t. List all information about each employee in the output. (Though our table does not contain lower cases, your SQL should work even if there were lower cases.) You must use either LOWER or UPPER function.

2.Find all orders not placed during the first quarter (Jan-Mar). (Use to_char or like.)

5.Find the total number of products sold for each product.
6.Find the average order dollar total amount across all orders.
7.What is the average sale price (acutalprice in item table) for all products with ‘ACE’ in their descriptions. You should return one number as the answer.


Solution Summary

This solution deals with a set of 5 SQL queries based on DDL and DML statements

Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$3.99)
Included in Download
  • Plain text response
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • MS SERVER SQL SCRIPT PROBLEMS/MS SQL SERVER 2003 - Using the database and tables from attached document, write queries using the SQL SELECT statement. (Note: Select all of the data from both of your tables before you perform the following) 1. Cho ...
  • DDL and DML - Hi, See attached file for assignment problems. Thank you DDL and DML 1. For emp table, set the constraint that Hiredate is later than Jan. 1, 1980. 2. Modify Dept table so that dname c ...
  • MS SQL STATEMENT PROBLEMS - I am using Microsoft SQL Server 2000 1. Database Tables TABLE: Employees Job_title_code Social_security_number Last_name First_name Address City State Zip_code Telephone_ar ...
  • Web elements - This task should be applied to the file attached of work already completed. Make a layout grid with page descriptions for each page. The descriptions should contain information on how you p ...
  • Who in an organization should decide where in the organizational structure the information security function should be located? - Who in an organization should decide where in the organizational structure the information security function should be located? Why? List and describe the options available for the location of the ...
Browse