CSE 781 Data Base Management Systems, Summer 09 ORACLE PROJECT

Similar documents
DEPARTMENT OF HOUSING AND URBAN DEVELOPMENT. [Docket No. FR-6090-N-01]

Telecommunications and Internet Access By Schools & School Districts

2018 NSP Student Leader Contact Form

Ocean Express Procedure: Quote and Bind Renewal Cargo

CostQuest Associates, Inc.

Panelists. Patrick Michael. Darryl M. Bloodworth. Michael J. Zylstra. James C. Green

Figure 1 Map of US Coast Guard Districts... 2 Figure 2 CGD Zip File Size... 3 Figure 3 NOAA Zip File Size By State...

A New Method of Using Polytomous Independent Variables with Many Levels for the Binary Outcome of Big Data Analysis

The Lincoln National Life Insurance Company Universal Life Portfolio

B.2 Measures of Central Tendency and Dispersion

Distracted Driving- A Review of Relevant Research and Latest Findings

IT Modernization in State Government Drivers, Challenges and Successes. Bo Reese State Chief Information Officer, Oklahoma NASCIO President

Accommodating Broadband Infrastructure on Highway Rights-of-Way. Broadband Technology Opportunities Program (BTOP)

State IT in Tough Times: Strategies and Trends for Cost Control and Efficiency

MAKING MONEY FROM YOUR UN-USED CALLS. Connecting People Already on the Phone with Political Polls and Research Surveys. Scott Richards CEO

Charter EZPort User Guide

Fall 2007, Final Exam, Data Structures and Algorithms

Silicosis Prevalence Among Medicare Beneficiaries,

NSA s Centers of Academic Excellence in Cyber Security

Name: Business Name: Business Address: Street Address. Business Address: City ST Zip Code. Home Address: Street Address

Department of Business and Information Technology College of Applied Science and Technology The University of Akron

2018 Supply Cheat Sheet MA/PDP/MAPD

Team Members. When viewing this job aid electronically, click within the Contents to advance to desired page. Introduction... 2

Presented on July 24, 2018

MERGING DATAFRAMES WITH PANDAS. Appending & concatenating Series

Global Forum 2007 Venice

Configuring Oracle GoldenGate OGG 11gR2 local integrated capture and using OGG for mapping and transformations

Post Graduation Survey Results 2015 College of Engineering Information Networking Institute INFORMATION NETWORKING Master of Science

Tina Ladabouche. GenCyber Program Manager

Prizm. manufactured by. White s Electronics, Inc Pleasant Valley Road Sweet Home, OR USA. Visit our site on the World Wide Web

Moonv6 Update NANOG 34

AASHTO s National Transportation Product Evaluation Program

Contact Center Compliance Webinar Bringing you the ANSWERS you need about compliance in your call center.

THE LINEAR PROBABILITY MODEL: USING LEAST SQUARES TO ESTIMATE A REGRESSION EQUATION WITH A DICHOTOMOUS DEPENDENT VARIABLE

ACCESS PROCESS FOR CENTRAL OFFICE ACCESS

PulseNet Updates: Transitioning to WGS for Reference Testing and Surveillance

2015 DISTRACTED DRIVING ENFORCEMENT APRIL 10-15, 2015

Best Practices in Rapid Deployment of PI Infrastructure and Integration with OEM Supplied SCADA Systems

Presentation Outline. Effective Survey Sampling of Rare Subgroups Probability-Based Sampling Using Split-Frames with Listed Households

The Outlook for U.S. Manufacturing

Expanding Transmission Capacity: Options and Implications. What role does renewable energy play in driving transmission expansion?

Sideseadmed (IRT0040) loeng 4/2012. Avo

Amy Schick NHTSA, Occupant Protection Division April 7, 2011

Steve Stark Sales Executive Newcastle

DSC 201: Data Analysis & Visualization

State HIE Strategic and Operational Plan Emerging Models. February 16, 2011

A Capabilities Presentation

Jurisdictional Guidelines for Accepting a UCC Record Presented for Filing 2010 Amendments & the 2011 IACA Forms

Touch Input. CSE 510 Christian Holz Microsoft Research February 11, 2016

On All Forms. Financing Statement (Form UCC1) Statutory, MARS or Other Regulatory Authority to Deviate

Presentation to NANC. January 22, 2003

Strengthening connections today, while building for tomorrow. Wireless broadband, small cells and 5G

DTFH61-13-C Addressing Challenges for Automation in Highway Construction

Homework Assignment #5

What Did You Learn? Key Terms. Key Concepts. 68 Chapter P Prerequisites

2013 Product Catalog. Quality, affordable tax preparation solutions for professionals Preparer s 1040 Bundle... $579

Using a Probabilistic Model to Assist Merging of Large-scale Administrative Records

MIS2502: Review for Exam 2. Jing Gong

CIS 467/602-01: Data Visualization

CMPE 180A Data Structures and Algorithms in C++ Spring 2018

How to Make an Impressive Map of the United States with SAS/Graph for Beginners Sharon Avrunin-Becker, Westat, Rockville, MD

Geographic Accuracy of Cell Phone RDD Sample Selected by Area Code versus Wire Center

Medium voltage Marketing contacts

Selling Compellent Hardware: Controllers, Drives, Switches and HBAs Chad Thibodeau

STATE DATA BREACH NOTIFICATION LAWS OVERVIEW OF REQUIREMENTS FOR RESPONDING TO A DATA BREACH UPDATED JUNE 2017

OPERATOR CERTIFICATION

ASR Contact and Escalation Lists

Panasonic Certification Training January 21-25, 2019

WHAT S NEW IN CHECKPOINT

Address Validation (TXTYP - A) PRE-ORDER RESPONSE

Real World Algorithms: A Beginners Guide Errata to the First Printing

Verizon Pre-Order and Trouble. Verizon Trouble Administration Error Messages

National Continuity Programs

Welcome to the Comcast Business SmartOffice Video Monitoring Solution

DESCRIPTION OF GLOBAL PLANS

Development and Maintenance of the Electronic Reference Library

ARE WE HEADED INTO A RECESSION?

Today s Lecture. Factors & Sampling. Quick Review of Last Week s Computational Concepts. Numbers we Understand. 1. A little bit about Factors

Recovery Auditor for CMS

Azure App Service. Jorge D. Wong Technical Account Manager Microsoft Azure. Ingram Micro Inc.

Paralleling Topologies and Uptime Institute Tier Ratings

Elevation Data Acquisition Update

1.0 Presenting a Mailing

Free or Reduced Air from Select Gateways for 1st & 2nd guest on reservation

Pro look sports football guide

MOVR. Mobile Overview Report January March The first step in a great mobile experience

The Altice Business. Carrier Advantage

2013 Certification Program Accomplishments

Data Visualization (CIS/DSC 468)

Be sure to fax AGA a copy of every application you submitted direct along with the fax confirmation page to ensure you receive your commission!

2012 Tax Year Media Guide

Distracted Driving U.S. Federal Initiatives. Amy Schick, MS, CHES Office of Impaired Driving and Occupant Protection

1/29/2009. Disparity arises at every decision point in the system. Pamela Oliver Department of Sociology University of Wisconsin - Madison

VitalSigns Company List

Cigna-HealthSpring Rx (PDP) Monthly Plan Premium for People who get Extra Help from Medicare to Help Pay for their Prescription Drug Costs

Increase uptime with a faster, more reliable, connection

Landline and Cell Phone Response Measures in Behavioral Risk Factor Surveillance System

Unit 7 Day 5 Graph Theory. Section 5.1 and 5.2

Awards Made for Solicitation

Configuration Principles with Object Dependencies

Transcription:

1. Create a new tablespace named CSE781. [not mandatory] 2. Create a new user with your name. Assign DBA privilege to this user. [not mandatory] 3. SQL & PLSQL Star Courier Pvt. Ltd. a part of the evergreen Courier Service Industry, is an organization which was established a few years ago to provide speedy mail services in the Eastern United States region. They deliver from simple envelopes to all varieties of parcels to a customer s mentioned location, and are becoming popular for their economical, efficient and faster deliveries. The database application to be build for Star Couriers Pvt. Ltd. will model the following functionalities: Every day, orders are accepted from the customers. The orders are assigned to the delivery persons for dispatching. The courier is allocated to a delivery person if he/she belongs to the region where the courier order has to be dispatched. Once assigned, the delivery person would dispatch the courier, and this status needs to be updated in the application. The delivery boy keeps dispatching the courier till the recipient accepts the courier or has been rejected due to reasons like the recipient not accepting the courier, the recipient permanently not available at the mentioned address. a. Create the following tables, abstract data type and sequences using the SQL editor and attach the screenshots of their successful creation. b. Enter any 5 entries in each table and submit screenshots of the select * query on each table. Rajika Tandon Page 1

Employee empid Unique id for INT Y >5000 Seq each order Ref Table empname Employee first, NameADT Y last, middle initial, suffix empdob Date of Birth DATE Y empofficelocid Office Location INTEGER Y FK OfficeLocation empdesig Designation CHAR Y M, C, D M manager, C clerk, D Delivery Person c. Submit screenshot when you tried to insert a record with empdesig = Z in the Employee table Customer customerid Unique id for each INT Y >1000 Seq Customer customername Customer first, NameADT Y last, middle initial, suffix customeraddr Customer house VARCHAR2(50) Y number and street name customerzip Customer zip code CHAR(10) Y Ref Table Rajika Tandon Page 2

OrderInfo Ref Table orderid Unique id for each INT Y >7000 Seq order orderdate Date the order was Date Y placed ordercustomerid Customer Id that INT Y FK Customer placed the order orderempid Employee INT FK Employee assigned the order orderrecipientname Customer first, NameADT Y last, middle initial,suffix orderrecipientaddr Customer house number and street name VARCHAR 2(50) Y orderweight Total cost for the order line total DECIMAL (4,2) Where, A for accepted order from customer (but not yet dispatched), P for pending (order dispatched but in transit), D for delivered (order successfully delivered), and R for rejected (order not accepted by the recipient or recipient not present) Note: Enter records such that if orderstatus is A or P, then orderdeliverydate should be null. orderempid can be null only if orderstatus is A. These checks can be taken care of programmatically but you are required to do this manually to maintain the consistency of the organization s database. If you can handle this situation programmatically, then it will be counted towards BONUS points. Mention in your report if you do so. (The other checks like a delivery person should be assigned an order and not manager, etc. are not required.) Rajika Tandon Page 3 Y >0 & <=25 lbs ordercost cost for the order DECIMAL Y per lb (7,2) ordertax Total tax DECIMAL (5,2) Y Cannot be >100 orderstatus Status of Order Delivery CHAR Y A, P, R, D orderdeliverydate Date of order Delivery DATE

d. Out of 5 records to be inserted in this table, enter valid orderempid for atleast 3 records. e. Insert 2 records in OrderInfo table such that there is an order with orderdate as 16-MAY- 2009, and another order with orderdate as 8-MAY-2009. f. Submit screenshots when you tried to insert different records with: i. ordertax = 700.9 ii. orderstatus = L iii. orderweight = 120.90908 OfficeLocation officelocid Unique id for each INTEGER Y >9000 Seq office location Ref Table officelocstreet Office street name VARCHAR2(50) Y officeloccity City where the VARCHAR2(15) Y office is located officelocstate State where the office is located CHAR(2) Y US states officeloczip Office zip code CHAR(10) Y officelocconta ctno Office phone no. VARCHAR2(10) Y Where, officelocstate is in: 'AL', 'AK', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FL', 'GA', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', 'PA', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY' g. Submit screenshot when inserting a record in the OfficeLocation table with officelocstate = QQ. Name Abstract Data Type (NameADT): firstname lastname MI Suffix VARCHAR2(20) VARCHAR(30) CHAR VARCHAR(5) Rajika Tandon Page 4

4. Create a function, CalcTotalCourierCostFN, which accepts the weight, cost (per lb) and tax for an order and returns back the total cost to be charged from the customer. Where, basiccost = weight * cost (per lb), totalcost = basiccost + basiccost*tax% Test this function by displaying the order id, customer id, customer name and the total cost of the courier for all the orders placed. [This function will help in generating bills/receipts and keeps a record of the total earnings of the organization.] 5. Create a function, CalculateShipDateFN, which takes the date of an order placed as an input parameter, and displays the order ship date by adding 1 shipping day to the order date. As per the organization s functionality, the order can be shipped only on Monday through Friday but can be received from the customer on all days of the week. Test this function by displaying the order id, customer id, customer name, employee id of emolpoyee assigned and the office location (city) to which he belongs to, order date and the order ship date for all the orders placed. [This function will help in tracking the delivery of an order and delivery information of an order.] Submit a hard copy of your report with all the screenshots labeled with the question number and any SQL scripts/comments if applicable. Give a brief explanation of the methodology of how you implemented the functions. Refer to Lecture 2 (PL/SQL) for help. Rajika Tandon Page 5