Вы находитесь на странице: 1из 11

Course Syllabus POS/410 Version 2.

Course Syllabus
College of Information Systems & Technology POS/410 Version 2.8 SQL for Business
Copyright 2010, 2009, 2008, 2007, 2006 by University of Phoenix. All rights reserved.

Course Description This course covers Structured Query Language (SQL) that provides a unified language that lets you query, manipulate, or control data in a business applications environment. Policies Faculty and students/learners will be held responsible for understanding and adhering to all policies contained within the following two documents: University policies: You must be logged into the student website to view this document. Instructor policies: This document is posted in the Course Materials forum.

University policies are subject to change. Be sure to read the policies at the beginning of each class. Policies may be slightly different depending on the modality in which you attend class. If you have recently changed modalities, read the policies governing your current class modality. Course Materials Vieira, R. (2009). Beginning Microsoft SQL Server 2008 Programming. Indianapolis, IN: Wiley Publishing, Inc. Software Microsoft SQL Severer 2008 (Virtual Desktop) Supplemental Resource Rob, P., & Coronel, C. (2009). Database systems: Design, implementation, and management (8th ed.). Boston: Course Technology. Article References Barnett, R. (2008, October 13). Anatomy of a SQL-injection attack. Network World, 25(40), 30. Ben-Gan, I. (2009, September). Logged inserts. SQL Server Magazine, 11(9), 21. Campbell, D., & Nori, A. (2007). The Microsoft data platform. International Conference on Management of Data. Proceedings of the 2007 ACM SIGMOD international conference on Management of data, 1053-1060. Cerullo, C., & Porta, M. (2007, September). A system for database visual querying and query visualization: Complementing text and graphics to increase expressiveness. 18th International Conference on Database and Expert Systems Applications (DEXA 2007), 109-113. Nori, A. (2007). Mobile and embedded databases. International Conference on Management of Data. Proceedings of the 2007 ACM SIGMOD International Conference on Management of Data, 1175-1177.

Course Syllabus POS/410 Version 2.8

Pathivada, C. S. (2009, June). Avoid referential integrity errors when deleting records from databases. SQL Server Magazine, 11(6), 15. Raab, D. (2009, October 1). Business intelligence and the new analytical databases; What would BI apps look like if they weren't designed around the constraints of relational databases? Information Management, 19(8), 52. Sellers, M. (2009, November). Pivoting the dynamic way. SQL Server Magazine, 11(11), 35. Weis, R., & Johnston, T. (2007, May). Managing time in relational databases, part 1. DM Review, 17(5), 20. Zhang, C., & Huang, Y. (2007). Cluster by: A new SQL extension for spatial data aggregation. Geographic Information Systems. Proceedings of the 15th Annual ACM International Symposium on Advances in Geographic Information Systems. All electronic materials are available on the student website.

ASSIGNMENTS Submission of Individual and Learning Team assignments For each assignment, make sure that you provide a single MS Word document that contains the following items: 1. A title page including your name. Your name should also be included in the header of the documents. a. For Learning Teams, simply include your team name in the header. However, each team members name should be on the title page. 2. All SQL query statements (copy and paste from your query editor). Code is to be manually typed. Due to the large volume of records associated with the Learning Team assignment; the import function may be used. 3. Copy and paste the results, or provide a screen shot of the resulting views. (Select *) 4. Results will include the execution status statement results 5. A short analysis of the query (at least two complete sentences) stating if the query executed as expected

Course Syllabus POS/410 Version 2.8

Week One: SQL Tables


Details
Objectives Course Preparation 1.1 Create tables using SQL. Read the course description and objectives. Make sure you have access to the required software: Microsoft SQL Severer 2008 (Virtual Desktop) NOTE: The Microsoft SQL Severer 2008 Virtual Desktop can be accessed on the left hand side of the Course Materials Page.

Due

Points

Review the Learning Team Toolkit. Readings Read Ch. 1, RDBMS Basics: What Makes Up a SQL Server Database? of Beginning Microsoft SQL Server 2008 Programming. Read Ch. 2, Tools of the Trade, of Beginning Microsoft SQL Server 2008 Programming. Read Ch. 5, Creating and Altering Tables, of Beginning Microsoft SQL Server 2008 Programming. Read the Week One Read Me First. Read this weeks Electronic Reserve Readings. Participate in class discussion. Respond to weekly summary Respond to weekly discussion questions. 2 1 2

Participation Weekly Summary Discussion Questions Learning Team Instructions

Start your a Learning Team Charter. The Learning Team assignment for this class, is based upon Service Request SR-kf-009, SQL Accounting Database. A link to the Virtual Organizations can be found on the Course Materials page.

Week Two: Table Queries


Details
Objectives 2.1 Apply single-table queries. 2.2 Apply multiple-table queries. Read Ch. 3, The Foundation Statements of T-SQL, of Beginning Microsoft SQL Server 2008 Programming. Read Ch. 4, JOINs, of Beginning Microsoft SQL Server 2008 Programming. Read Ch. 7, Adding More to Our Queries, of Beginning Microsoft

Due

Points

Readings

Course Syllabus POS/410 Version 2.8

SQL Server 2008 Programming. Read the Week Two Read Me First. Read this weeks Electronic Reserve Readings. Participation Weekly Summary Discussion Questions Learning Team Instructions Participate in class discussion. Respond to weekly summary Respond to weekly discussion questions. 2 1 2

Your Learning Team assignments will be based on Kudler Fine Foods Service Request SR-kf-009 SQL Accounting Database. 1. 2. 3. 4. Go to Materials, then select the link Service Requests Under Virtual Organizations, select IT Service Requests Go to the right side of the page to Kudler Fine Foods. Select SR-kf-009 -- SQL Accounting Database

Monday, May 21

Based on this service request, 1. Create a Learning Team charter. a. Make sure that you address a contingency plan if a team member(s) drops the course.

2.

Develop a detailed project plan where you will define the tasks, work assignments and timeline. a. This timeline does NOT have to be created in MS Project.

3.

On Kudler Fine Foods intranet site analyze the current Chart of Accounts. This includes tasks such as identifying primary and foreign keys. Also, begin illustrating the data characteristics. How do you intend to structure your database?

All of these steps are to be submitted to the instructor for review. SPECIAL NOTE: You may create your database using one or multiple tables. Monday, May 21 15

Individual Table Queries

Create a SQL Server Database for Kudler Fine Foods. Most of your data will be available on the Kudler Fine Foods intranet site. Some of the data you will need to create (e.g. social security numbers). If you have to create data, document the logic that you used to do so. Create the following two tables using the following fields: (Note: Supply the SQL Server data types when creating the

Course Syllabus POS/410 Version 2.8

tables. Apply the primary keys to the tables.) Employee Table Social_security_number (you will need to create your own SS#s) Last_name First_name Address City State_code Zip_code Telephone_area_code Telephone_number Email_address Job_title_code Hire_date Salary Age Job_ID (this is the EEO-1 Classification) Job_title Table Job_ID Job_title Exempt_non_exempt_status High_Salary Low_Salary

Using information from the Human Resource Department, in the Kudler Fine Foods intranet, use the SQL INSERT statement to: 1. Go to the Human Resources department in the Kudler Fine Foods intranet. Using information found in the Employee Files for the La Jolla and Encinitas stores, enter records into the employee table for the following employees: Glenn Edelman Eric McMullen Raj Slentz Erin Broun Donald Carpenter David Esquivez Nancy Sharp 2. After viewing the job classifications and job descriptions section, enter the following records into the job_title table. Accounting Clerk Asst. Manager Bagger Cashier Computer Support Specialist Director of Finance & Accounting Retail Asst. Bakery & Pastry Retail Asst. Butchers and Seafood Specialists

Course Syllabus POS/410 Version 2.8

Stocker

3. Document your rationale for exempt and non-exempt employees. For example, how did you determine how you would enter their salaries? 4. Check results by selecting all columns from both tables. Non-exempt employees at Kudler Fine Foods are paid an hourly wage and must track their working hours. 5. Write a query, that shows the employees name in one column, entitled Full Name in the following format Bob Smith.

All of these steps are to be submitted to the instructor for review.

Week Three: Data Changes


Details
Objectives 3.1 Apply changes to data. 3.2 Apply changes to tables. Read Ch. 5, Creating and Altering Tables, of Beginning Microsoft SQL Server 2008 Programming. Read Ch. 6, Constraints, of Beginning Microsoft SQL Server 2008 Programming. Read Ch. 9, SQL Server Storage and Index Structures, of Beginning Microsoft SQL Server 2008 Programming. Read Ch. 10, Views, of Beginning Microsoft SQL Server 2008 Programming. Read the Week Three Read Me First. Read this weeks Electronic Reserve Readings. Participate in class discussion. Respond to weekly summary Respond to weekly discussion questions. 2 1 2

Due

Points

Readings

Participation Weekly Summary Discussion Questions Learning Team Instructions

Continue working on the Service Request SR-kf-009, SQL Accounting Database Define the SQL Database. Here illustrate the data types, primary keys, ect. Place the data from the Chart of Accounts spreadsheet into the SQL database. (Due to the number of records you may use the Import feature or SQL script.)

Monday, May 28

Course Syllabus POS/410 Version 2.8

Make sure to note the number of records that you loaded to your database. Create values for the accounts and document your logic for creating these values. Document any changes that you have made to your database.

Individual Data Changes and SQL Statements

Using the database and tables from Week Two, write SQL statements and enter five additional records into the employee table. Check the results by selecting all of the columns from both of your tables Using the database and tables in Week Two, write SQL queries using various commands: Using the COUNT command, how many employees are over age 47? Write a SQL query that joins two tables in your database and uses BETWEEN to restrict record selection. (Use salary to restrict the data.) Using the HAVING command, how many positions have more than 3 employees? (e.g. Cashiers, 4) Using the updated database, write the following queries: Use the COMPUTE command to generate a grand total for all of the exempt employees salaries. Select employees last names and group them by salary in job titles, grouped into exempt and non-exempt. Write a SQL query that joins two tables in the example database and uses LIKE to restrict record selection. (Use zip codes to restrict data.) Create a query that shows all employees whose name has the second letter of either an a,e,o or u. Human Resources has requested a listing of employees. They want the listing to show the first initial of the employees last name. In addition, they want the report in the following sort order: exempt/non-exempt status, the first letter of their last name, last name, first name and salary. For example: Exempt, S, Smith, Bob, $50,000 Due to a corporate mandate, all employees who are Asst. Manager, must have their job title changed to Sr. Supervisor.

Monday, May 28

15

Week Four: Reports


Details
Objectives 4.1 Apply reporting in SQL.

Due

Points

Course Syllabus POS/410 Version 2.8

Readings

Read Ch. 11, Writing Scripts and Batches, of Beginning Microsoft SQL Server 2008 Programming. Read Ch. 12, Stored Procedures, of Beginning Microsoft SQL Server 2008 Programming. Read Ch. 17, Reporting for Duty, Sir!: A Look At Reporting Services, of Beginning Microsoft SQL Server 2008 Programming. Read the Week Four Read Me First. Read this weeks Electronic Reserve Readings. Participate in class discussion. Respond to weekly summary Respond to weekly discussion questions. 2 1 2

Participation Weekly Summary Discussion Questions Learning Team Instructions

Continue work on the Learning Team Project.

Monday, June 4

10

Due to demand, executive management has decided to relocate the Del Mar store to Chula Vista. Show how you made the change and the modification Use the proper SQL command in order to tell the number of unique accounts that you have in your database. In a separate query use a CASE statement to identify individual accounts with a balance less than $2,500, $2,501 5,000 or greater than $5,000.

Individual SQL Reports

Building on the previous database, write queries using the SQL SELECT statement. Make sure to illustrate the salaries before and after the modifications (Select *). Sort all employees by payroll, in descending order. Calculate the total payroll of exempt and non-exempt employees (before & after the adjustments are made). Choose a specific job_title and increase the salary of all individuals in this category by 2.75%. Increase the remaining employees salaries by 3.5%. Add a Robert Simms as a new hire to the Employee table. You discovered that at the last minute Robert decided not to accept the offer and that he should not have been added to your database. As a result, this information needs to be deleted from the table.

Monday, June 4

15

The HR Department recently submitted a change request. They want the following information extracted from the database based on the employees actual salaries.

Course Syllabus POS/410 Version 2.8

Calculate the average salary for all employees. Calculate the maximum salaries for exempt and non-exempt employees. Calculate the number of exempt and non-exempt employees there are, by job code. The results should be sorted in descending order. Calculate the average, minimum and maximum salary for exempt employees. Using the UNION command also display the same information for the non-exempt employees. Determine if there are any employees whose salary is below the minimum salary for their job title.

Using a CASE statement, illustrate: Assuming that todays date is 12/2/2025, create a temporary field that calculates the total service time (in years) of each employee. In the same query, use a CASE statement to identify employees who are over 54 years old and have over 20 years of service time with the company. Identify them as Potential Retirees.

Week Five: Embedded SQL


Details
Objectives 5.1 Explain embedded SQL. 5.2 Apply SQL to a business application. Read Ch. 13, User-Defined Functions, of Beginning Microsoft SQL Server 2008 Programming. Read Ch. 15, Triggers, of Beginning Microsoft SQL Server 2008 Programming. Read the Week Five Read Me First. Read this weeks Electronic Reserve Readings. Participate in class discussion. Respond to weekly summary Respond to weekly discussion questions. 2 1 2

Due

Points

Readings

Participation Weekly Summary Discussion Questions Learning Team Project

Complete work on the Learning Team project. Since Harvey is not a technical manager, write a report that discusses the logic of the query that you created to fulfill his Service Request. Include in your synopsis the following items: Create the final SQL database Chart of Accounts report.

Monday, June 11

10

Course Syllabus POS/410 Version 2.8

10

Submit query, screen shots and the Chart or Accounts report for grading. Finally, create one query that uses the commands OR, AND, IN, Substring, CASE, LIKE and COMPUTE. Discuss the logic that explains what this query does and why you created it.

Learning Team Evaluation Each student is to submit a separate Learning Team evaluation.

Optional Discussion Questions Week One Discussion Questions Oftentimes, when expense reductions occur in a company it is not uncommon for training to be one of the first items cut. How do you effectively balance the costs of programmer training with the related benefits? How would you write a justification for a training class during a time of expense reductions? What would it contain? (Due Day 3) Anil Nori mentions 7 characteristics of mobile and embedded characteristics. First what is an embedded characteristic? Secondly, select 3 of these components and explain how they could be useful to a mobile professional. (Due Day 5) In the Campbell & Nori (2007) article, the authors discuss data trends in the marketplace and Microsofts corresponding initiatives to keep their products up-to-date. Discuss one trend and an example of how Microsoft added functionality to the SQL server to keep products aligned with the trend. (Due Day 7)

Week Two Discussion Questions Based on the Sellers (2009) article, discuss the advantages and disadvantages of the SQL PIVOT statement. (Due Day 3) Weis & Johnston (2007) say the dimension of time is inadequately incorporated in database management systems and SQL. Discuss one supporting reason for this assertion and why the authors say it is important. Support your answer with an example from your current or previous workplace. (Due Day 5)

Week Three Discussion Questions Pathivada's article discussed stored procedures and multiple benefits associated with them. What is a stored procedure and how can it be beneficial? Name at least two instances where the use of stored procedures was beneficial to the author. (Due Day 3) One well-known publication mentioned that in a period of economic uncertainty many companies need experts to help them remain competitive in this current economic environment. With this in mind, how could a struggling company keep or attract technology experts? What non-financial factors could be a factor? (Due Day 5)

Course Syllabus POS/410 Version 2.8

11

Week Four Discussion Questions In the Zhang & Huang (2007) article, the authors propose introducing a CLUSTER BY clause into SQL. What functionality does their proposed clause provide? How might your current or previous workplace use it in a SQL query? (Due Day 3) Based on the Cerullo & Porta (2007) article, what is your opinion of visual approaches? Provide an explanation that supports your opinion. (Due Day 5)

Week Five Discussion Questions Barnett (2008) discusses the security risk of using SQL in e-commerce applications. Describe how criminals can use SQL to steal or destroy customer data, and how organizations can prevent these problems from happening in the first place. (Due Day 3) Based on the Raab (2009) article, what are the issues with using SQL when accessing the new business intelligence analytical databases? (Due Day 5)

Copyright
University of Phoenix is a registered trademark of Apollo Group, Inc. in the United States and/or other countries. Microsoft, Windows, and Windows NT are registered trademarks of Microsoft Corporation in the United States and/or other countries. All other company and product names are trademarks or registered trademarks of their respective companies. Use of these marks is not intended to imply endorsement, sponsorship, or affiliation. Edited in accordance with University of Phoenix editorial standards and practices.

Вам также может понравиться