Welcome to AssignmentCache!

Search results for 'oracle'

Items 11 to 20 of 61 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Ascending Direction
  1. Oracle 11g SQL Joan Casteel Chapter 11 Hands-On Assignments

    Oracle 11g SQL Joan Casteel Chapter 11 Hands-On Assignments

    Regular Price: $10.00

    Special Price $8.00

    Oracle 11g SQL Joan Casteel Chapter 11 Hands-On Assignments

    To perform these assignments, refer to the tables in the JustLee Books database.
    1. Determine how many books are in the Cooking category.
    2. Display the number of books with a retail price of more than $30.00.
    3. Display the most recent publication date of all books sold by JustLee Books.
    4. Determine the total profit generated by sales to customer 1017. Note: Quantity should be reflected in the total profit calculation.
    5. List the retail price of the least expensive book in the Computer category.
    6. Determine the average profit generated by orders in the ORDERS table. Note: The total profit by order must be calculated before finding the average profit.
    7. Determine how many orders have been placed by each customer. Do not include in the results any customer who hasn't recently placed an order with JustLee Books.
    8. Determine the average retail price of books by publisher name and category. Include only the categories Children and Computer and the groups with an average retail price greater than $50.
    9. List the customers living in Georgia or Florida who have recently placed an order totaling more than $80.
    10. What's the retail price of the most expensive book written by Lisa White?

    Learn More
  2. Oracle 11g SQL Joan Casteel Chapter 10 Hands-On Assignments

    Oracle 11g SQL Joan Casteel Chapter 10 Hands-On Assignments

    Regular Price: $8.00

    Special Price $5.00

    Oracle 11g SQL Joan Casteel Chapter 10 Hands-On Assignments

    To perform the following assignments, refer to the tables in the JustLee Books database.
    1. Produce a list of all customer names in which the first letter of the first and last names is in uppercase and the rest are in lowercase.

    2. Create a list of all customer numbers along with text indicating whether the customer has been referred by another customer. Display the text "NOT REFERRED" if the customer wasn't
    referred to JustLee Books by another customer or "REFERRED" if the customer was referred.

    3. Determine the amount of total profit generated by the book purchased on order 1002. Display the book title and profit. The profit should be formatted to display a dollar sign and two decimal places. Take into account that the customer might not pay the full retail price, and each item ordered can involve multiple copies.

    4. Display a list of all book titles and the percentage of markup for each book. The percentage of markup should be displayed as a whole number (that is, multiplied by 100) with no decimal position, followed by a percent sign (for example, .2793 = 28%). (The percentage of markup should reflect the difference between the retail and cost amounts as a percent of the cost.)

    5. Display the current day of the week, hour, minutes, and seconds of the current date setting on the computer you're using.

    6. Create a list of all book titles and costs. Precede each book's cost with asterisks so that the width of the displayed Cost field is 12.

    7. Determine the length of data stored in the ISBN field of the BOOKS table. Make sure each different length value is displayed only once (not once for each book).

    8. Using today's date, determine the age (in months) of each book that JustLee sells. Make sure only whole months are displayed; ignore any portions of months. Display the book title,
    publication date, current date, and age.

    9. Determine the calendar date of the next occurrence of Wednesday, based on today's date.

    10. Produce a list of each customer number and the third and fourth digits of his or her zip code. The query should also display the position of the first occurrence of a 3 in the customer number, if it exists.

    Learn More
  3. CMIS420 Advanced Relational Database Final Programming Project

    CMIS420 Advanced Relational Database Final Programming Project

    Regular Price: $20.00

    Special Price $15.00

    CMIS420 Advanced Relational Database Final Programming Project

    In this project, you will design a secure database with several tables using good relational database design techniques.

    Project Objectives:
    After completing this Project, you should be able to:
    Explain the purposes of advanced database objects including indexes, clusters, sequences, and views
    Develop and implement functions, triggers, and stored procedures/packages

    Project Requirements:
    1. Using the Oracle database engine, design and develop a relational database to store user information to support a large online shipping company. Information that needs to be stored includes user name, detailed mailing address, and shipping information including number of packages, weight, cost, destination, origin, and tracking information allowing users to determine where a package is, and when and who signed for the package once it arrives. Other business data should be present showing how much the shipment costs and invoicing capability to send bills to customers. Your design should be normalized and well-designed for scalability for additional customers and shipment locations.

    2. Your design should allow for inserting, updating, selecting and deleting information

    3. A trigger should be used to generate invoices once a customer reaches $200 in shipping costs.

    4. An instead-of trigger should be employed to update and/or populate multi-table views.

    5. You should include packages, indexes, views and other helpful database components that will assist you in your design.

    6. Your scripts should work perfectly allowing the creation of all of the tables, triggers, views and other database components and provide test scripts that demonstrate the use of the system.

    7. You do not need a GUI component but your scripts should demonstrate all of the functionality of the system.

    Deliverables:
    All sql scripts and run scripts and instructions for successfully building your database and testing your database.
    An ERD diagram of your database design showing primary keys, foreign keys and other constraints.
    3. Well-written word document describing:
    a. The database design
    b. How to set up and test your database
    c. The test data and results you used for your database,
    d. Your approach, lessons learned, design strengths, limitations and suggestions for future improvement and alternative approaches, the most challenging aspects of developing this application.

    Learn More
  4. CMIS 420 Homework 5 Spool File

    CMIS 420 Homework 5 Online Vehicle Sales Data Warehouse

    $15.00

    CMIS 420 Homework 5 Online Vehicle Sales Data Warehouse

    This is a database design for the data warehouse you will create, populate, and query for Project #2 and the Authentic Assessment final project.
    This week you will ensure that the FINANCING_PLANS, DEALERSHIPS, VEHICLES, and TIME tables are created and populated.
    1) Your FINANCING_PLANS table should already be created and populated. Your Plan_ID primary key is the Plan_Code column. Don't worry about changing this or any other column names you already have.

    2) Your DEALERSHIPS table should already be created and populated. Don't worry about changing any column names you already have.

    3) Create the VEHICLES table via SQL. If you already have a table with this name, use the SQL RENAME command to change it to something else. For the Vehicle_Code primary key column use an Oracle sequence to populate the values. For the Description column use all concatenated combinations of Make and Model of vehicles you have. Use a PL/SQL block to populate the Description column by SELECTing the combinations from your current vehicles table and then INSERTing the combinations into your new VEHICLES table, which would best be performed via a cursor in a loop. After populating your VEHICLES table execute a "SELECT * FROM vehicles ORDER BY vehicle_code" SQL statement to display the entire contents. Show all your SQL and PL/SQL and the results.

    4) Create the TIME table via SQL. The Sale_Day primary key column values should be all dates from your first sale date through and including your last sale date from your SALES table. The Day_Type values should be 'Weekday', 'Weekend', or 'Holiday' (this trumps Weekday and Weekend). Use a PL/SQL block to populate the TIME table. After populating your TIME table execute the SQL statement "SELECT day_type,COUNT(*),MIN(sale_day),MAX(sale_day) FROM time GROUP BY day_type ORDER BY day_type" to show the summarized contents of your table. Show all your SQL and PL/SQL and the results.

    All SQL and PL/SQL should be executed via one or more SQL script files. The best approach is to have separate SQL script files for Steps #3 and #4 and then an SQL script file that calls both of them. Submit SQL*Plus SPOOL files produced by your SQL and PL/SQL showing all your SQL and PL/SQL code and the results, or if using iSQL*Plus or other GUI (e.g. SQL Developer), a single Word or PDF file of screen snapshots showing both your SQL and PL/SQL and the results. Do NOT submit your SQL script file.

    Learn More
  5. CMIS 420 Homework 2 Spool File

    CMIS 420 Homework 2 Online Vehicle Sales Database

    $15.00

    CMIS 420 Homework 2 Online Vehicle Sales Database

    1) Complete the creation and population of your Homework #1 tables and include all necessary integrity constraints including primary keys, foreign keys, CHECK constraints, UNIQUE constraints, and NOT NULL constraints. All tables must have a primary key and you must have a foreign key on the many side of each one-to-many relationship in the instructor-supplied ERD. Note that you must use Oracle for your database and and you must use actual SQL statements vs. a graphical approach. You may use Nova or any other Oracle instance you wish. You may use SQL*Plus, iSQL*Plus, or other command line tool (e.g. SQL Developer).
    2) Add 20 more rows to both your VEHICLES and CUSTOMERS tables to have 25 rows total in each table and display the row counts of these tables.
    3) Add 40 more rows to your SALES table to have 50 rows total and display the row count.
    4) Create the SALE_FINANCINGS table if necessary, populate it as necessary, and show the row count.
    5) Execute a multi-table join SELECT statement to display the number of sales by make of car, sorted by make.
    6) Execute a multi-table join SELECT statement to display the number of sales by customer zip code, sorted by zip code.
    7) Execute a multi-table join SELECT statement to display the number of sales by make of car and customer zip code, sorted by make and then by zip code.
    8) Using a set operator execute a single SELECT statement to display together all the customer last names and all the salesperson last names, with no duplicates.
    9) Using a set operator, subquery, and/or join query execute a SELECT statement to display the customers by customer ID, last name, and zip code who have not been involved in a sale, sorted by customer ID.
    10) Using a correlated subquery execute a SELECT statement to display the sale ID and plan ID of all sales in the last 30 days, sorted by sale ID.

    The SQL for Steps #5 through #10 above must all be a single SELECT statement.
    You must show ALL your SQL statements and ALL your results, together, for ALL SQL statements in Steps #1 through #10 above.
    If using SQL*Plus then submit a single SPOOL file with everything. If using iSQL*Plus or another interface tool then include a single Word or PDF file of screen snapshots for everything.
    In your single file label your SQL statements (#1 through #10) and results and put them in order.
    You must use an SQL script file vs. typing ad hoc SQL, but do NOT submit your SQL script file.

    Learn More
  6. CMIS 420 homework 1 spool file

    CMIS 420 Homework 1 Online Vehicle Sales Database

    $15.00

    CMIS 420 Homework 1 Online Vehicle Sales Database

    You are part of a development team with Ace Software, Inc. who has recently been contracted to develop various database capabilities for Online Vehicle Sales, Inc. (OVS). OVS is a startup "dotcom" with about 10 dealership locations in Maryland, Virginia and Washington, D.C. They sell new and used cars (compacts, midsizes and full-sizes), sport utility vehicles (SUVs) and light trucks. Currently their business is just based on customers visiting one of the 10 dealership locations in person, but soon they plan to move the bulk of their business the Internet. Initially they have expressed a desire to have a custom OLTP database, and a custom DSS database, designed and built by your company. Each dealership has a staff of salespersons who assist customers in the purchase of different types of vehicles for which various financing plans are available. New and used vehicles are provided to each dealership based on sales and inventory needs.
    An ERD for a 3NF normalized online transaction processing (OLTP) relational database for this application is provided.
    Using an SQL script file create Oracle tables for the entities shown in the ERD. Use the plural form of the entity name for your table names.
    You can create your database on Nova or any other Oracle system you wish.
    Populate the VEHICLES and CUSTOMERS tables in your OLTP database with at least five rows each. Your DEALERSHIPS, SALESPERSONS and FINANCING_PLANS tables should have at least three rows each. Your SALES table should have at least 10 rows, using a variety of different customers, vehicles, salespersons, dealerships and financing plans. All other tables should have at least one row each. Run SELECT * statements on all your tables after they are populated to show all contents.
    Submit the following in either an SQL*Plus SPOOL file or screen snapshots of the output if using iSQL*Plus:
    1) The names of all your tables from the output of the SQL statement “SELECT table_name FROM user_tables”.
    2) A DESC (i.e. DESCRIBE) of all tables to show the column names.
    3) The contents of all tables from SELECT * statements
    4) Do NOT submit your SQL script files. Only submit the output specified in Steps #1 though #3 above.

    Learn More
  7. Oracle Database to Track Students Grade ERD

    Oracle Database to Track Students Grade

    $15.00

    Oracle Database to Track Students Grade

    Build an Oracle database to track students grade in a class:
    The database tracks
    *Student Information
    *Instructor Information
    *Class information
    *Grading Breakdown
    *Students' Grades

    Different queries will show
    *List of students with semester grades
    *List of students who received an A
    *Average grades
    *Above average grades

    Learn More
  8. MIS 562 Week 5 Homework Query Optimization

    MIS 562 Week 5 Homework Query Optimization

    $20.00

    MIS 562 Week 5 Homework Query Optimization

    Using the student schema from week 2, provide answers to the following questions.

    Question
    SQL statement or Answer
    1. Generate statistics for the student, enrollment, grade, and zipcode tables (15 pts)

    2. Write a query that performs a join, a subquery, a correlated subquery using the student, enrollment, grade, and zipcode tables. Execute each query to show that it produces the same results. (15 pts)

    3. Produce an autotrace output and explain plan for each query. (10 pts)

    4. Analyze the results and state which performs best and why. Write an analysis of what operations are being performed for each query. Determine which query is the most efficient and explain why (10 pts)

    Learn More
  9. CMIS 320 Lab 4 Homework 4 Choose Oracle datatypes

    CMIS 320 Lab 4 Homework 4 Choose Oracle datatypes

    $8.00

    CMIS 320 Lab 4 Homework 4 Choose Oracle datatypes

    Instructions
    Choose Oracle datatypes for the following attributes from a normalized relation including:
    Vendor(VendorID, Address, ContactName)
    Item (ItemID, Description)
    PriceQuote(VendorID, ItemID, Price)
    Describe why you selected the datatypes for each attribute.

    Learn More
  10. CMIS 320 Lab 3 Homework 3 Data Modeling and SQL script

    CMIS 320 Lab 3 Homework 3 Data Modeling and SQL script

    $15.00

    CMIS 320 Lab 3 Homework 3 Data Modeling and SQL script

    Homework Submission Requirements:
    Homework should be submitted as an attached file in your assignment folder. Text for coding and result of execution and MS Word format for documenting are preferred. Data modeling diagram could be copied and pasted into a Word doc.
    You must name your file to include your first initial of your first name and last name.
    Part I is 4 points and Part II is 1 points. Total is 5. Quiz is not required for grading.

    Part I Data Modeling
    You are working for country club with thousands of members. You have been tasked with designing a database to keep track of the members and their guests.
    The club keeps track of mail and telephone contact information, name and membership number. When a member joins the club they can become a social member with pool, racket ball and weight room privileges or golf member which includes all of the social member privileges plus access to the golf course.
    Develop, document and design an EER for this situation.
    Submit your word document no later than the due date.

    Part II Lab 3
    In lab 2, you will learn how to edit and run a SQL script in your schema in NOVA Oracle database. You also continue to learn simple SQL commands, such as select and insert ...

    Build and execute SQL script
    In this lab, we learn how to write a SQL script that can be run on NOVA Oracle database to execute the SQL commands included in the file. You are provided with SQL Statements and sqlplus commands to add into the script. What you are requested to do is to reorganize the commands in proper order to avoid runtime errors.
    How to write a script: The script file is a text file which contains executable commands. For SQL script, it contains SQL statements which can be executed against a proper database. For our SQL script that runs against Oracle database. Therefore, we include some of Oracle specific SQLPlus commands that help us make output clear and understandable and allow us to save the output file.
    Get the txt file below that contains SQL and SQLPlus commands. Spool commands are for getting the execution results. Set echo on or off are for getting executed commands printed on the screen before the execution result. Others are all SQLcommands. These commands should work as they are without modification.
    Download lab3.txt
    There are a few simple suggested rules that can make your script robust.
    Use remark, rem, to add comment or reminder in the script anything followed rem is not executed.
    Spool on command should be the first command and followed
    Set echo on should be before any execution commands begin.
    Set echo off and spool off at the end of the file.
    For SQL DDL commands. Drop the table before create it. this gives you clean database to begin with. The table created last should be dropped first.
    For SQL DML, delete the records first before insert them into the table. This allow you begin with empty table. delete the records from child table first if primary key and foreign key constraints exist between the two tables. However, insert into parent table first then insert into child table. Don't forget the child record needs a refernce key value from the parent table. Always end with commit command to save the data.
    you can use vi text editor to edit the script on NOVA or use a text editor at local to create and edit the script and upload to Nova using sFTP. The script MUST be saved with .sql extension in order for it to be run in SQLPLus
    After you successfully create and executed your script. Transfer your output file back and Submit it through assignment for grading.

    Learn More

Items 11 to 20 of 61 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Ascending Direction
[profiler]
Memory usage: real: 14680064, emalloc: 14508256
Code ProfilerTimeCntEmallocRealMem