Querries related to sql programming

Assignment Help PL-SQL Programming
Reference no: EM13725015

1. Download the ValleProducts.accdb database. Save the file as ValleeProducts_LastNameFirstName.accdb

2. Create a new table named Orders using the table design below. You may create your table in design view or datasheet view. Save the Orders table as Orders Your Name #3.

3. Add the three records listed belowto the Orders table.

4. Define a one-to-many relationship between the Customer table and Orders table. Right click in the window and select Show table. Select the referential integrity option and both cascade options for the relationships. Save the relationship.

5. Create a query based on Customer table that shows CustomerNum, CustomerName, Street, City, and State for all customers in Grand Rapids, South Bend, and Toledo. This will be a List-of-Values query.
Save as #5 Cities YourName. Query results will show 8 records.

6. Create a query based on the Coffee Table that displaysall four fields. Show only those records that do not have the following Coffee Types: African, Blended, and Flavored.
Save as #6Coffee Types YourName. The query results willshow 13 records.

7. Create a query based on the Product Table that shows all Decaf products that have a WeightCode field value of A, or whose Price field value is less than 30. Display all fields from the Product table. Open the Product table and look in design view if you need information about how Decaf is listed there. Remember to indicate Decaf in both rows. Hint: Look in design view of the Product table to see how Decaf is displayed. You must be sure to use the OR operator for A or < 30 which means those two criteria must be on two different rows.
Save the query as #7 Decaf YourName. Your results should show 35 records.

8. Create a new query based on the Product table. Use aggregate functions to find the lowest, average and highest values in the Price field. Name the fields: Lowest Price, Average Price and Highest Price, respectively.
Save the query as #8 Prices YourName. Your results will show one row of results: $7.99 $30.36 $234.00

9. Create a new query based on the Product table. Use aggregate functions to find the lowest, average and highest values in the Price field by WeightCode. Name the fields: Lowest Price, Average Price and Highest Price, respectively.
Save the query as #9 Price by Weight YourName. You will have 7 rows of output in this query.

10. Create a parameter query based on the Customer tablethat prompts for customers in a specific state. Do not just make a select query. A parameter is different. Display the CustomerNum, CustomerName, City, and State fields.
Save the query as #10 StatesYourName. Run the query using a parameter value of OH. You will see only 4 Oh records.

11. Create a query based on the Order table and display all fields. Show the record that has a billing Date equal to 2/15/2012. Save the query as #11 Date Your Name.

12. Create a query based on the Order table and display all fields. Only show records that have not paid. Add a calculated field that will display a late fee of 2.8% based on the Invoice Amount field. Use the Standard format and 2 Decimal places. Rename the new field Late Fee.
Save the query as #12Late Fee YourName. One of the Late Fees will be $55.61. There will be one other late fee.

13. Create a query based on the Coffee table (include all fields) that shows all records where the Coffee Name ends with Blend.Use a Pattern Match query.
Save the query as #13 Blend YourName. Your results will display 6 records.

14. Create a form in Design View using the Coffee and Product tables.

a) Place the all fields from the Coffee table under the Detail section. Move them so that they approximate the picture of the form below.
b) Add an appropriate title to the form and add your name to the end of the title.
c) Place a subformunder the Coffee fields on the detail section based on the Product table. Include all fields from the Product table.
d) Click on the subform label (highlighted in yellow below) and type your name after Product. Do not rename the entire subform,just the label.

e) Switch to Layout View and resize the columns in your subform to best fit.f) Save the form as #14 Form YourName.

 

Reference no: EM13725015

Questions Cloud

Equal sharing of household work : Respond to the following questions: Among twin- income and dual-career families, do you think there will ever be an equal sharing of household work?
Write research paper on contingency theory of leadership : For your second submission toward your Unit VII Research Paper, you will need to submit a draft of your research paper with several components to ensure you are on the right track. Include the following:An outline of your research and the intended..
Analyze and assess how a company could obtain leverage : Analyze and assess how a company could obtain leverage within the channel and the value chain to maximize efficiencies in the market
Create a brand positioning statement : Imagine that you are a direct competitor of Twitter and your company's name is Bitter. Create a brand positioning statement that addresses the benefits of why customers should use your company instead of Twitter. Provide a rationale for your respo..
Querries related to sql programming : Create a parameter query based on the Customer tablethat prompts for customers in a specific state. Do not just make a select query. A parameter is different. Display the CustomerNum, CustomerName, City, and State fields.
Training and orientation phases : Training and Orientation Phases are Key in any Organization Retention and Hiring Programs.
Review the gear sports statement of values : Review the Gear sports statement of values and then identify the two items that you believe contribute the most to a salesperson’s career success.
Expected return and standard deviation of market portfolio : Imagine an economy that is only made of two stocks and a risk-free security, with the following data. Number of Shares Share Price Expected Return Standard Deviation. What are the expected return and standard deviation of the market portfolio?
Explain negative individual and organizational consequences : Discuss the potential negative individual and organizational consequences for Asian Americans being perceived as a model minority.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Who are the opposition leaders

Write SQL SELECT statements to retrieve the following information from the prime_minister database.

  A duplicate eliminating projection

Consider the following SQL query over tables R(A), S(A), and T (A). Note that "Select Distinct" in SQL represents a duplicate-eliminating projection.

  Create report using wizard or based on sql query

Create a report using the wizard or based on an SQL query that that shows Courses that instructors are approved to teach. Show Course Number, First Name, and Last Name of Instructor.

  Trigger named products_update

Create a trigger named Products_UPDATE. This trigger should insert the old data about the product into the ProductsAudit table after the row is updated. Then, test this trigger with an appropriate UPDATE statement.

  Oracle general sql exercise

Oracle General SQL Exercise

  Write an update statement that modifies the row

Write an UPDATE statement that modifies the row you just added to the Categories table. This statement should change the ProductName column to "Woodwinds", and it should use the CategoryID column to identify the row.

  Write select statement to return those rows with due balance

Write SELECT statement which returns those rows with the balance due greater than 1000. Sort result set by InvoiceTotal, with largest invoice first.

  Which of the sollowing is an accurate statement

Which of the subsequent is an accurate statement - When the LOWER function is used in a SELECT clause, it will automatically store the data in lower-case letters in the database table.

  Produce a report showing an organization chart

Produce a report showing an organization chart for Mourgos's department. Print last names, salaries, and department IDs and create a report that shows the hierarchy of the managers for the employee Lorentz. Display his immediate manager first

  Strengths and weaknesses of three dbms software

Research Report around 800 words strengths and weaknesses of three DBMS software packages for utilization as a company-wide customer information database. Please compare Microsoft Access, Microsoft SQL Server, and Oracle.

  Write sql statements for the ten queries

Write SQL statements for the ten queries - find the names of all Tracks that are more than 10 minutes (600,000 ms) long. Result: (name: varchar(255))

  Convert requirement to logic and then to sql

Prepare the SQL query for each of given requirements. Convert requirement to logic, then to SQL. Illustrate the names of all products which have been sold.

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