Preview

CS320 Lab1

Satisfactory Essays
Open Document
Open Document
874 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
CS320 Lab1
CS320 - Database Administration
Lab #1
Download Oracle 11g Express Edition either 64bit or 32bit version that the
Instructor has provided. Load and run the CS320.sql script and you then should be able to answer this lab. Please submit queries as download the results in a CSV file format and submit it to the course canvas. This covers SQL Part A (Chapters 2,8&
9 from the text Oracle 11g Sql by Joan Casteel
1. Create a list containing the publisher’s name, the person usually contacted, and the publisher’s telephone number. Rename the contact column “Contact Person” in the displayed results.
2. Determine which categories are represented in the current book inventory. List each category only once.
3. Create a list of authors that displays the last name followed by the first name for each author. The last names and first names should be separated by a comma and a blank space. 4. List all information for each order item, include an item total, which can be calculated by multiplying the Quantity and Paideach columns. Use a column alias for the calculated value to show the heading “item total” in the output.
5. Create a mailing list from the customers table. The mailing list should display the name, address, city, state, and zip code for each customer. Each customer’s name should be listed in order of last name followed by first name, separated with a comma, and have the column header “Name”. The city and state should be listed as one column of output, with the values separated by a comma and the column header “Location”.
6. To determine the percentage of profit for a particular item, subtract the item’s cost from the retail price to calculate the dollar amount of profit, and then divide the profit by the item’s cost. The solution is then multiplied by 100 to determine the profit percentage for each book. For the column displaying the percentage markup, use “Profit %” as the column heading.
7. Which customers live in New Jersey? List each customer’s last name, first name,

You May Also Find These Documents Helpful

  • Powerful Essays

    In the first approach, Company A first determines its total revenue by multiplying the number of widgets sold by the price of the widget. Next it determines its total cost which comprises of the sum of all costs including fixed and variable costs. Company A’s profit is then calculated by total revenue minus total cost. However, in an effort to maximize their profit, Company A would look to produce it’s widgets at the output level where the margin between total revenue and total cost is the largest resulting in the greatest profit.…

    • 801 Words
    • 4 Pages
    Powerful Essays
  • Good Essays

    Profit = Income - Cost = 180x - 126x - 540000 = 54x - 540000…

    • 687 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Egt1, Task1

    • 432 Words
    • 2 Pages

    1. The first method is the total revenue (TR) to total cost (TC) method. TR-TC This method uses the highest total revenue (TR) less total cost (TC) to determine at what point the quantity produced maximizes total economic profit. In exhibit 1, the point at which profit maximization is achieved is at the production of 8 units.…

    • 432 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Complete PPE QBE exercises 1-13 on page 68, Pratt book. You can use the PPE database file located in the resource section of the online classroom. Provide your responses in a word document.…

    • 672 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Cost Control Problem Set

    • 689 Words
    • 3 Pages

    Menu item |Number sold |Standard/budgeted portion cost | |A |580 |$4.45 | |B |285 |$6.20 | |C |600 |$4.15 | |D |200 |$6.00 | |E |475 |$5.95 | |F |320 |$7.05 | |G |545 |$6.10 | |H |200 |$6.95 | |Totals |3,205 | | | | | | |Solve all problems for 2 decimal places (x.xx) | | | |Food sales |$57,680.30 | | | | | | |1. Food cost $ based on standard cost figures |$17834.75 |(1 pt) | | | | | |2. Food cost % based on standard cost figures |30.92% |(1 pt) | | | | | |3. Contribution margin $ |$39845.55 |(1 pt) | | | | | |Actual inventory figures | | | |Opening inventory |$6,415.60 | | |Purchases |$19,950.30 | | |Ending inventory |$6,852.65 | | | | | | |4. Cost of goods sold $ |$19513.25 |(1 pt) | | | | | | | | | |5. Food cost % based on actual cost figures |33.83% |(1 pt) | | | | | | | | | |6. Difference between standard and actual cost in $ |+1678.5 |(1 pt) + or | | | | | |7. Difference between standard and actual cost % |+2.91% |(1 pt) + or | |…

    • 689 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Yorktown Technology

    • 483 Words
    • 2 Pages

    The purpose of this paper is to gather data for this company that wants to know how to find the price, revenue, and marginal revenue of their shoes through the given equation. After a series of plugging in formulas, and solving equations you will find solutions. In order to find out the revenue you have to know the price. So the first step towards finding out the price is to solve the first given equation. After finding the price for their company’s shoes the next step would be to find the company’s revenue. Then finding the marginal revenue will follow.…

    • 483 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Key Assignment

    • 1158 Words
    • 14 Pages

    Using FIFO, calculate (a) ending inventory, (b) cost of goods sold, (c) sales revenue, and (d) gross profit.…

    • 1158 Words
    • 14 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Contribution Profit & Margin Contribution Profit = $12.00 - $5.00 = $7.00 per unit Contribution Margin = $7.00 / $12.00 = 0.583…

    • 1456 Words
    • 6 Pages
    Satisfactory Essays
  • Better Essays

    APA Reference Guide

    • 883 Words
    • 4 Pages

    Always list author last name and then the date of publication. Use a comma to separate them.…

    • 883 Words
    • 4 Pages
    Better Essays
  • Better Essays

    Lastname, Firstname. “Title of the Article.” Name of the Scholarly Journal Volume.Issue (Date): first page-last page.…

    • 606 Words
    • 3 Pages
    Better Essays
  • Good Essays

    Agency Visit Paper

    • 263 Words
    • 2 Pages

    This assignment will provide you with the opportunity to explore potential Field Placement sites, to arrange for a placement, to apply the concepts related to legal and ethical issues in human services, and to identify ethical dilemmas in human services and apply critical thinking skills to the resolution thereof.…

    • 263 Words
    • 2 Pages
    Good Essays
  • Good Essays

    homg 483

    • 1195 Words
    • 5 Pages

    Actual cost percent- the ratio of actual cost of sales to total sales for a…

    • 1195 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    • You begin with the author’s surname – comma – and initials followed by a full stop.…

    • 1795 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    Behanchod

    • 616 Words
    • 3 Pages

    3. Proof of address (POA) (At least copy of one of the following documents listed below is to be attached/scanned with this form. Consumer is required to produce the original of document for verification by the distributor, when sought for. Kindly tick the POA provided by you below and fill up address details in S.No. 4 below accordingly)…

    • 616 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Doing a Dyson

    • 660 Words
    • 3 Pages

    Authors: Authors are listed in the same order as specified in the source, using surnames and initials. Commas separate all authors. When there are seven or more authors, list the first six and then use “et al.” for remaining authors. If no author is identified, the title of the document begins the reference.…

    • 660 Words
    • 3 Pages
    Good Essays