CIS 336 CIS336 CIS/336 ENTIRE COURSE HELP – DEVRY UNIVERSITY

Page 1

CIS 336 CIS336 CIS/336 ENTIRE COURSE HELP – DEVRY UNIVERSITY

DOWNLOAD SOLUTION https://www.solvedcollegepapers.com/product/cis-336-cis336-cis-336-dev/

CIS 336 Entire Course CIS336 Entire Course includes:       

CIS336 Lab 1 Normal Forms and Entity Relationship Diagrams CIS 336 Lab 2 The Expanded Entity Relationship Diagram CIS336 Lab 3 Building the Physical CIS336 Lab 4 Introduction to Select Insert Update and Delete Statements CIS336 Lab 5 Joining Tables CIS336 Lab 6 Group Functions and Subqueries CIS336 Lab 7 Working with Views

CIS 336 CIS336 CIS/336 ENTIRE COURSE HELP - DEVRY UNIVERSITY quantity Category: Assignments Help Experts Tags: CIS 336, CIS 336 CIS336 CIS/336 Introduction to Database with Lab - DeVry University, CIS 336 Entire Course, cis336 lab 1, CIS336 Lab 1 Normal Forms and Entity Relationship Diagrams, CIS336 Lab 2 The Expanded Entity Relationship Diagram, CIS336 Lab 3 Building the Physical, CIS336 Lab 4 Introduction to Select Insert Update and Delete Statements, CIS336 Lab 5 Joining Tables, CIS336 Lab 6 Group Functions and Subqueries, CIS336 Lab 7 Working with Views, cis336 week 1, cis336 week 1 ilab 

Description

Description


CIS 336 CIS336 CIS/336 ENTIRE COURSE HELP – DEVRY UNIVERSITY

CIS 336 Entire Course CIS336 Entire Course includes:       

CIS336 Lab 1 Normal Forms and Entity Relationship Diagrams CIS 336 Lab 2 The Expanded Entity Relationship Diagram CIS336 Lab 3 Building the Physical CIS336 Lab 4 Introduction to Select Insert Update and Delete Statements CIS336 Lab 5 Joining Tables CIS336 Lab 6 Group Functions and Subqueries CIS336 Lab 7 Working with Views

CIS 336 CIS336 CIS/336 ENTIRE COURSE HELP – DEVRY UNIVERSITY

CIS336 Lab 7 Working with Views Lab 7 will introduce the concept of database views. This lab may be completed using either DeVry’s Omnymbus EDUPE-APP lab environment, or a local copy of the MySQL database running on your own computer using the OM database tables. The lab will utilize a set of tables that are represented by the ERD (OM_ERD.docx) and are created and populated by the script file (create_OM_db.sql). Follow the instructions in the file CreateOMTables.docx to create your database, tables, and data. A few IMPORTANT things to note if using EDUPE MySQL: **There can be NO SPACES in alias names given to a column. For example: Select unit_price as “Retail Price “ from items; –this does NOT work in EDUPE MySQL. Any of the following WILL WORK: 1Select 2Select 3Select 4Select

unit_price unit_price unit_price unit_price

as as as as

“RetailPrice” from items; “Retail_Price” from items; Retail_Price from items; RetailPrice from items;

**Any calculated fields MUST be given an alias (and note above NO SPACES in alias). For example: select unit_price * 2 from items; –this does NOT work in EDUPE MySQL This will work: select unit_price * 2 as NewPrice from items;


Deliverables Lab Report (Answer Sheet) containing both the student-created SQL command(s) for each exercise, and the output showing the results obtained. Be sure your name is on the file. LAB STEPS: Complete each of the exercises below. 1. Use an ALTER TABLE statement to update the customers table so that the Primary Key field is an auto-increment field, then create TWO insert statements to test proper operation, using your own first and last name for one (and a name of your choice for the second one), and any data you care to imagine for the remaining fields. IMPORTANT NOTE: When using a LOCAL copy of MySQL, if you attempt to simply issue the ALTER TABLE command you have composed by itself, you should receive an error similar to the following (try it for yourself!). ERROR 1833: Cannot change column ‘customer_id’: used in a foreign key constraint ‘orders_fk_customers’ of table ‘om.orders’ (Note – EDUPE will not give this error message, however you should still follow the CORRECT procedure as discussed here to complete this problem). The reason for this is that you are attempting to alter data in one column that has a defined PK:FK relationship to a field in another table. Referential Integrity rules prevent this. So, how do you resolve such a problem? One approach to solving this dilemma is to turn off the foreign key checks that implement referential integrity rules. However, the danger here is that other users and processes operating on the database while these constraints are suspended could create or modify data in a way that compromises integrity. We can solve this second problem by preventing other users and processes from altering the data in the table in which we are working until we have turned the foreign key checks back on. We therefore need to construct a script that does the following. o Locks the customer table – lock table customers write; o Turns off FK checks – set foreign_key_checks = 0; o Alters the table to add the auto_increment feature to the PK field o Turns FK checks back on – set foreign_key_checks = 1; o Unlocks the customer table – unlock tables; It is VERY important to consider that altering tables can require a bit of time for very large tables, and that while the table is locked, other users and processes cannot operate. Consequently, this kind of modification should not be done during peak operating hours in a production operation (as a student in a lab exercise, working on your own database, you may do this at any time) but ideally in hours during which the business does not normally operate. In cases where round-the-clock, high availability of a database is required, other approaches may be required. Addressing this problem in a highavailability, high-demand environment is an advanced topic, study of which is outside the scope of this course. Use the outline below to construct your script. Show all commands in your answer sheet along with the output of the commands. 1lock table customers write; 2set foreign_key_checks = 0;

– Replace this comment with your ALTER TABLE command to add the


3auto_increment feature to the PK field 4set foreign_key_checks = 1; 5unlock tables; 6–statements to insert two rows into the table –verify auto_increment with a select statement 7 Locks the customer table – lock table customers write;Turns off FK checks – set foreign_key_checks = 0;Alters the table to add the auto_increment feature to the PK field 2. The Vice President of Marketing for your firm wants the firm’s sales representatives to be able to directly view and edit customer details, but only for the state to which a particular sales representative is assigned. You have suggested that this need can be addressed with a view. For example, a view could be created for one particular state, and user account permissions for accessing that view granted only to sales representatives from that state. The VP has asked you to quickly create a simple proof-of-concept demonstrating how this might work. Complete the following steps: o Construct a view on the customers table called CA_CUSTOMERS that consists of all data about customers that live in California. o Display the data using this view to verify that only customers that reside in California are visible. o Prove that It is possible to add or update records through this view by updating the record for Karina Lacy to change the spelling of Karina’s last name to Lacie. o Display the data using the customer table to verify that the change has been made. Show all commands in your answer sheet along with the output of the commands. 3. The Senior Customer Service Manager has requested the ability to create a report at any time that will show shipped orders that took some specified number of days to fulfill. o Create a view named SHIPPING_TIME that lists only customer_first_name, customer_last_name, order_date, shipped_date, and the calculated field days_to_fulfill (use the DATEDIFF function) showing the number of days between when the customer placed the order and when it was shipped. Show the data from this view. Now let’s do some queries by adding sorting and filters USING THIS VIEW, WITHOUT CHANGING IT. o Use the view to display the data sorted by highest to lowest days to ship o Use the view to display only the orders that took less than 10 days to ship. o Use the view to display only the orders that took more than 30 days to ship. 4. Queries that require joins and aggregate functions can be easier to construct when using a view as a “temporary” table. Consider a report to show total sales by artist. o First create a view called SalesData that displays the order_id, item_id, the calculated field ItemTotal (which is quantity times price), the title and artist_id. o Display the data in the SalesData view sorted by artist_id. Does this help you to “visualize” how to group the data to create the totals? o Create a query USING THIS VIEW and the appropriate aggregate function to display artist_id and the total sales for each artist.


Now join to the artist table in order to display the artist_name along with the total sales. 5. Now use this same method to display the total sales per customer. o Create a view called SalesData with the appropriate data. At a minimum you will need customer_id and the calculated item total. DO NOT use the customer table in this view, it will be joined later. o Display the data in your view sorted by customer_id. Does this help you to “visualize” how to group the data to create the totals? o Create a query USING THIS VIEW and the appropriate aggregate function to display customer_id and the total sales for each customer. o Now join to the customer table in order to display the customer_name as a single field named Customer along with the total sales. Sort the report by Total sales in descending order. o

Download Full Course Solution: CIS 407A CIS407A CIS/407A ENTIRE COURSE HELP – DEVRY UNIVERSITY https://www.solvedcollegepapers.com/product/cis-407a-cis407a-cis-407a-vry/

CIS407A Entire Course CIS407A entire course includes: CIS407A Week 1 iLab Annual Salary Calculator CIS407A Week 2 iLab User Input Web Pages CIS407A Week 3 iLab User activity monitoring CIS407A Week 4 iLab Web forms with database interaction CIS407A Week 5 iLab Transaction Processing CIS407A Week 6 iLab Login and Security Levels CIS407A Week 7 iLab Error Notification via E-MailEach tutorial includes Visual Studio ASP.NET 2013 Project. Download Full Course Solution: BIOL 102 BIOL102 BIOL/102 : Principles of Human Biology – Liberty University https://www.solvedcollegepapers.com/product/biol-102-principles-of-human-biologyliberty-university/ 

week 5 ccrossword puzzle.docx

Liberty University

Principles of Human Biology

BIOL 102 – Fall 2012


Download Full Course Solution: CIS 339 CIS339 CIS/339 ENTIRE COURSE HELP – DEVRY UNIVERSITY https://www.solvedcollegepapers.com/product/cis-339-cis339-cis-339-ent/ CIS339 Entire Course includes:       

CIS 339 Week 1 Lab System Request CIS 339 Week 2 Lab Use Case Diagram and Use Case Description CIS 339 Week 3 Lab Class Diagram and CRC Cards CIS 339 Week 4 Lab Behavioral Model and Diagrams CIS 339 Week 5 Lab Package Diagram CIS 339 Week 6 Lab CRCs Contracts and Method Specifications CIS 339 Week 7 Lab Object-Oriented Programming Language

Download Full Course Solution: CFDI-320 Week 3 Assignment – Another Day on the Job https://www.solvedcollegepapers.com/product/cfdi-320-week-3-assignment-another-day-on-thejob/ Week 3: Assignment - Another Day on the Job

You are a digital forensic examiner working at a firm and your next job is to conduct a digital forensic analysis on a forensic image created of a disk drive. You will need to use the department report titled Week 3 – Assignment Report.docx download to conduct an examination on the forensic image week3assignment1.e01 located in our class directory CFDI-320 on the S:\ drive.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.