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

  Provide a comprehensive record of using sql

Learning Objectives: The purpose of Project 3 is to enable the students to gain extensive experience with using SQL to design and query databases.

  Question for database schema

The patient information along with the ID of any prescribing doctor for each patient and the prescription information along with patient name, DOB, medication brand name, and prescribing doctor name sorted by most recent date.

  Use the prime minister database

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

  Provide four queries to answer questions asked by end users

Explain how you will go about developing this database. Provide at least four queries that answer some of the questions asked by the end users.

  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.

  Pretend that you are on the boards

Pretend that you are on the boards of the American National Standards Institute (ANSI) and the International Organization for Standards (ISO), two of the organizations who standardized SQL

  Create and populate the database system using sql server

Global Car Club (GCC) is a small individually owned club which loans cars to its members. GCC first formed in 2009; has over more than 100 good mixes of members and counting.

  Describe and explain oracle date and time format in details

Describe and explain Oracle Date and Time Format in details. Provide some Functions used for Date and Time and give some syntax example of their usage. Expand your examples to include some Arithmetic used with Oracle Date.

  Trigger named products_insert

Create a trigger named Products_INSERT that inserts the current date for the DateAdded column of the Products table if the value for that column is null. Test this trigger with an appropriate INSERT statement.

  In this problem we will consider a movie database with

in this problem we will consider a movie database with three tablesmoviedirectortitle director yearmoviecasttitle actor

  Write a iterative function that returns the summation

Write and test functions that return summation of all the numbers (items) in the list. Write a recursive function that returns the summation of all the numbers in the list.

  Let the user type his first and last name

The program should let the user type his first and last name.

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