Preview

Math Probabilities

Good Essays
Open Document
Open Document
602 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Math Probabilities
Homework #4 - SQL

Use the following (denormalized) database schema (and the attached tables) to write the queries.

Publishers (custid, name, city, phone, creditcode)
Bookjobs (jobid, custid, jobdate, descr, jobtype)
POS (jobid, poid, podate, vendorid)
Items (itemid, descr, onhand, price)
Po_Items (jobid, poid, itemid, quantity)

For each question, turn in the Oracle SQL query and the output. You should feel free to do these by hand (paper and pencil), or you may actually run them. I have created the tables and granted everyone in the class access to them. I would urge you to FIRST write them on paper, and THEN run them – just to be sure you understand them. You will not have access to Oracle SQL during the final exam. These take time, so please start early.

I have granted you all access to query the tables in my account. You can access them by typing suebrown., so to access the publishers table, type suebrown.publishers. As a second alternative, you can use the scripts in blackboard to create the tables in your own oracle space. It is your choice how you want to do this – just make sure that if you create the tables in your own directory that you do not change the data.

[6 pts] 1. How many different jobs are listed in the POS table?

[8 pts] 2. How many publishers fall into each of the three credit codes?

[10 pts] 3. List the jobid, podate, custid, and name for any jobs with purchase orders dated (podate) since February 1, 2006.

[10 pts] 4. List all publishers (at least custid and name), and for those with bookjobs, list all corresponding bookjob information.

[12 pts] 5. What is the combined value of the Purchase Orders for all kinds of paper?
Keep it general (without requiring user input) – we may add more types of paper to our inventory!

[12 pts] 6. List the details for all items with a price that is below the overall average price of the other items.

[12 pts] 7. Find all publishers that have not had any

You May Also Find These Documents Helpful

  • Satisfactory Essays

    To get the Total Sales of each item is to multiply the volume and the selling price like for the computer paper: 3,000 x 14 = 420,000. To get the Material cost, have to multiply the volume and the material cost of each item and like for the computer paper: 3,000 x 6 = 180,000. Lastly, to get the total Variable overheads, would have to multiply the Variable Overhead per unit by the volume like for the computer paper: 1.5 x 3,000 = 45,000. For the Grand Total Sales is to add all the Total Sales of each item: $420,000 + $840,000 + $540,000 + $680,000 = $2,480,000. In order to get the Contribution Margin, for an example for the computer paper:…

    • 983 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2. Know how to compute the cost of ending inventory and the cost of merchandise…

    • 444 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Eco 550

    • 734 Words
    • 3 Pages

    Paper (notebook, copier, etc.) is a search good. Paper products can be easily be compared and evaluated prior to purchase.…

    • 734 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Employment and Salary

    • 839 Words
    • 4 Pages

    4. Create a report to display the last name, job ID, and hire date for employees with the last names of Matos and Taylor. Order the query in ascending order by the hire date. Label your columns with descriptive column aliases.…

    • 839 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Supply Chain Task 1

    • 2981 Words
    • 12 Pages

    The Marketplace simulation helped me realize how complicated and difficult decision making can be when trying to build a company. Among the most important simulation results were utilizing the budgets and pro forma statements. Budgets are beneficial as a financial plan by listing all planned expenses and income. The purpose is to be able to forecast revenues and expenses and create a business model that operates effectively to make sure overhead can be paid.…

    • 2981 Words
    • 12 Pages
    Better Essays
  • Satisfactory Essays

    Sql Database Language

    • 1101 Words
    • 5 Pages

    Get the offering, the course number, and the course description of SUMMER 2010 offerings without an assigned instructor.…

    • 1101 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Profiling

    • 1309 Words
    • 6 Pages

    An association of paper historians based in Britain has estimated that there are 20,000 identifiable uses of paper in the world today. One traditional papermaker, P.H. Glatfelter Co. of Pennsylvania, redefined itself 15 years ago by concentrating its efforts on niche markets. Today it makes, by its own reckoning, paper for 1,000 different commercial products, including U.S. postage stamps, Twinings tea bags, Hallmark greeting cards, Bicycle playing cards, Band-Aid bandage components, Carlsberg and Heineken beer labels, and Reese's Peanut Butter Cup wrappers.…

    • 1309 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Bookmaster Case Sudy

    • 978 Words
    • 3 Pages

    Bibliography: Collier, D. A., & Evans, J. R. (2013,2012). Bookmaster Case Study. Mason: Joe Sabatino.…

    • 978 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Probability (or likelihood[1]) is a measure or estimation of how likely it is that something will happen or that a statement is true. Probabilities are given a value between 0 (0% chance or will not happen) and 1 (100% chance or will happen).[2] The higher the degree of probability, the more likely the event is to happen, or, in a longer series of samples, the greater the number of times such event is expected to happen.…

    • 2893 Words
    • 12 Pages
    Powerful Essays
  • Powerful Essays

    Student

    • 1676 Words
    • 7 Pages

    1. ALLTEL has attempted to create a competitive advantage as the major outdoor concert venue in a multi-city region. The firm has distinguished itself from its competitors by providing a unique experience to its customers. The unique value of the product would be: advanced technology, no bad seat in the house, beautiful outdoor setting, wonderful atmosphere, outstanding parking and food concession. Their strategies are to maximize net operating income by reducing the non-artist costs of operating an event. ALLTELL will have to find creative ways to reach a large audience while minimizing all costs unrelated to the talent. The critical success factors for the Pavilion are numerous: the only sheltered outdoor venue in the area, availability of parking, excellent and clean facilities, well maintained grounds, customer’s opportunity for reserving VIP (A) seats, advanced technology, and the following of current trends concerning artist booking. The Key Performance Indicators are based on advertising media. They have researched the most effective advertising in each region of the state in order to maximize ticket sales with the least advertising costs, which eventually will create profitability. Finding ways such as flyer distribution in the parking lot for upcoming events are clever ways to advertise at a very low cost.…

    • 1676 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Today, the Barnes & Noble.com Web site serves as the company’s largest store, enabling customers to order any book any time from anywhere. With more than one million unique titles, the site’s standing inventory is the largest of any bookseller online. Customers also have access through Barnes & Noble.com to millions of used and out-of-print titles from a network of authorized book dealers, as well as a vast selection of music CDs and DVDs.…

    • 351 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    homework

    • 548 Words
    • 16 Pages

    Write a database description for each of the relations shown, using SQL DDL (shorten, abbreviate, or change any data names as needed for your SQL version). Assume the following attribute data types:…

    • 548 Words
    • 16 Pages
    Good Essays
  • Powerful Essays

    Sql Study Matetial

    • 21631 Words
    • 87 Pages

    Jim Melton and Alan R. Simon: Understanding the New SQL: A Complete Guide (2nd Edition,…

    • 21631 Words
    • 87 Pages
    Powerful Essays
  • Satisfactory Essays

    Oracle adheres to three principles: Simplify - speed information delivery with integrated systems and a single database; Standardize - reduce cost and maintenance cycles with open, easily available components; Automate - improve operational efficiency with technology and best practices.…

    • 554 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    1. Miss Roxas bought 20 blouses for P1800 and marked them to sell at P110 each. After selling 16 pieces…

    • 1404 Words
    • 11 Pages
    Powerful Essays

Related Topics