Create a single trigger for recording the requested

Assignment Help Database Management System
Reference no: EM133592797

Question 1. Calculating Days Between Ordering and Shipping An analyst in the quality assurance office reviews the time elapsed between receiving an order and shipping the order. Any orders that haven't been shipped within a day of the order being placed are investigated. Create a function named ORD_SHIP_SF that calculates the number of days between the basket's creation date and the shipping date. The function should return a character string that states OK if the order was shipped within a day or CHECK if it wasn't. If the order hasn't shipped, return the string Not shipped. The IDSTAGE column of the BB_BASKETSTATUS table indicates a shipped item with the value 5, and the DTSTAGE column is the shipping date. The DTORDERED column of the BB_BASKET table is the order date. Review data in the BB_BASKETSTATUS table, and create an anonymous block to test all three outcomes the function should handle.

Question 2. Tracking Pledge Payment Activity The DoGood Donor organization wants to track all pledge payment activity. Each time a pledge payment is added, changed, or removed, the following information should be captured in a separate table: username (logon), current date, action taken (INSERT, UPDATE, orDELETE), and the idpay value for the payment record. Create a table named DD_PAYTRACK to hold this information. Include a primary key column to be populated by a sequence, and create a new sequence named DD_PTRACK_SEQ for the primary key column. Create a single trigger for recording the requested information to track pledge payment activity, and test the trigger.

Question 3. Use Mongo shell 4.2 database commands to answer following questions in restarurants.json from MongoDB Lab Exercise (Week 12):
a. List id and address of borough: Manhattan, cuisine: American and name westside restaurant.
b. List address and Grades for street Broadway borough Manhattan cousine American and Name Toast.

Reference no: EM133592797

Questions Cloud

What types of conditions might lead to hypercapnia : What types of conditions might lead to hypercapnia? How does this condition signal the body to alter the respiration pattern? You will want to describe
What are some effective strategies : What might happen to student learning if you fail to identify students' strengths or recruit interest? What are some effective strategies
What does km mean and what is the meaning of kcat : What does KM mean? What is the meaning of kcat? What is the meaning of kcat/KM? What is the upper limit of kcat/KM? What is an activity unit?
Crime-related concepts psychopathy-antisocial personality : Crime-related concepts like psychopathy, antisocial personality, and criminal lifestyle can be thought of as existing on a spectrum. explain
Create a single trigger for recording the requested : SHORT STORY - Create a single trigger for recording the requested information to track pledge payment activity, and test the trigger
Write a reflective homework discuss and evaluate development : In this homework, you will write a reflective homework discussing and evaluating your development as a writer over the course of this class.
Which learning disorder autism spectrum disorder : Children who struggle with word reading skills but have decent language comprehension skills likely have which learning disorder autism spectrum disorder
Result of the person learning history : On the other hand, Conditioned Motivating Operations (CMOs) are value- and behavior-altering events that are a result of the person's learning history.
Identify one ethical challenge that affects your client : Identify 1 ethical challenge that affects your client. Examine the role you will have as an advocate. Discuss how advocacy can be used for this situation.

Reviews

Write a Review

Database Management System Questions & Answers

  Create a crude stock portfolio database system

Lists and Dictionaries. Create a crude stock portfolio database system: There should be at least four data columns: stock ticker symbol, number of shares.

  Write a description of the selected dataset and project

Write a description of the selected dataset and project, and its importance for the global leaders. Information must be appropriately referenced.

  ITEC325 Applied Data Mining and Big Data Assignment

ITEC325 Applied Data Mining and Big Data Assignment Help and Solution, Australian Catholic University - Assessment Writing Service

  Perform a general analysis of this dataset

INFO411/911 Data Mining Assignment. Purpose of this task: Perform a general analysis of this dataset. Learn to work with large datasets. Obtain general information of the behaviour of some taxi drivers. Analyse and interpret results. This task also..

  Create naming conventions for each entity and attributes

Create naming conventions for each entity and attributes. Conclude your data model design with an Entity Relationship Model (ERM) that will visually represent the relationships between the tables.

  Display the compliance of associated servers

Display the compliance of associated servers, routers, access-control components, data storage, internal and external data communication, data backup,

  Write names and e-mail addresses from database

Suppose a database has tables given below. Write the names and e-mail addresses for all customers who have had stove repair which cost more than $50.

  Write a program that upon a mouse click moves the turtle

Write a program that upon a mouse click moves the turtle to a randomly chosen position with coordinates between -300 and +300 and stamps the current shape.

  Analyse a set of data and write a memo

To analyse a set of data, and write a memo, identifying and explaining your insights into the operation of Todd Restaurants.

  Conclude your data model design with an erm

Conclude your data model design with an Entity Relationship Model (ERM) that will visually represent the relationships between the tables.

  1 create a new database named membership2 write the create

1 . create a new database named membership.2. write the create table statements needed to implement the following

  Create a primary key for the returnstable

Create a primary key for the RETURNStable and create a foreign key on RETURNStable that references the ORDERS tables.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd