Database schema for a customer-sale scenario

Assignment Help Database Management System
Reference no: EM13961121

Database Schema for a customer-sale scenario Customer(Cust id : integer, cust_name: string) Item(item_id: integer, item_name: string, price: integer) Sale(bill_no: integer, bill_data: date, cust_id: integer, item_id: integer, qty_sold: integer) For the above schema, perform the following-

a) Create the tables with the appropriate integrity constraints

b) Insert around 10 records in each of the tables

c) List all the bills for the current date with the customer names and item numbers

d) List the total Bill details with the quantity sold, price of the item and the final amount

e) List the details of the customer who have bought a product which has a price>200

f) Give a count of how many products have been bought by each customer

g) Give a list of products bought by a customer having cust_id as 5

h) List the item details which are sold as of today

i) Create a view which lists out the bill_no, bill_date, cust_id, item_id, price, qty_sold, amount

j) Create a view which lists the daily sales date wise for the last one week

Reference no: EM13961121

Questions Cloud

Experiencing which part of the job design model : Michaela works as an electrician and was recently sitting with a friend and explaining her job. "When I enter a job site, there is virtually nothing except the framing and a few walls. Explain which core job dimension from the Hackman and Oldham Mode..
Which of maslow five levels of need are on display in photo : Which of Maslow's five levels of need are on display in this photo? Describe how the needs of the rescuer clearly differ from those of the person who is being rescued
Design and code a dictionary of words : Design and code a dictionary of words, which can store words and should provide the following operation: 1) Words could be retrieved from the dictionary through a find utility.
What are the competencies needed : What are the competencies needed (or should be required) to be an effective  U.S. senator? A famous musician or actor? How are these competencies similar or different? minimum of 200 words please
Database schema for a customer-sale scenario : Database Schema for a customer-sale scenario Customer(Cust id : integer, cust_name: string) Item(item_id: integer, item_name: string, price: integer) Sale(bill_no: integer, bill_data: date, cust_id: integer, item_id: integer, qty_sold: integer) Fo..
Describe the deductive reasoning process : Describe the deductive reasoning process that was applied to analyze the hospitals’ rising cost of uncompensated care and justify the requirement for upfront payment.
Find the current in each resistor as well as the voltage : A person has a 72 V battery along with 6, 9, and 18 ohm resistors. They are first wired in series, then is parallel. First, sketch each circuit. Then, find the current in each resistor as well as the voltage across each resistor for each resistor,..
What is the traffic intensity in the returns system : A large clothing store offers a ‘no quibble’ return policy under which shoppers can return unwanted goods to the store and receive their money back. They have to take their unwanted goods to a returns desk where there is one server. What is the traff..
Solve the relative velocity equations using a vector polygon : Point A of the link BA has a downward velocity of Va = 2 m/s during an interval of it's motion. For the position where Φ = 30 degrees determine the angular velocity W of AB and determine the velocity (Vg) of the midpoint G of the link. Solve the ..

Reviews

Write a Review

Database Management System Questions & Answers

  Imagine that you work for a finance industry-based

imagine that you work for a finance industry-based organization. your organization is looking to submit its database

  Perform a payback analysis for given project

Perform a Payback Analysis for given project - Draw a decision table that shows all possible rules for the above scenario.

  You are to design a database for an insurance company the

you are to design a database for an insurance company. the data will include information about customers name address

  Write queries to find out the unused structures

Write queries to find out the unused structures e.g. there is one Superannuation client but no Partnership clients on the starter database.

  Design a simple dashboard for your data warehouse

Use SSIS perform ETL on the invoice data to populate the data warehouse, in doing so you should demonstrate the use of SSIS filters/expressions and SQL where appropriate - Create an OLAP cube from your data warehouse and perform.

  Data mining tools predict future trends and behaviors

Data mining is the retrieval of information from databases, It is a powerful new technology designed to help companies focus on the most important information in their data warehouses. Data mining tools predict future trends and behaviors.

  Objectives of file management principle

What are the requirements to ensure the objectives of file management principle is realized?

  Discuss the role of the database administration

Discuss the role of the database administration and the issues of cost/benefit for these types of endeavors in organizations.

  What is the purpose of a database driver

what is the purpose of a database driver in terms of what it connects and What are some other examples of Database Drivers out there for the J2EE and .NET Platforms?

  List the sales for each customer

Each query is worth 2 marks. These tables exist in sphinx and are owned by the user dtoohey. You may, if you wish, create your own copies of the tables under your own account. If you do so, you should ensure that you copy the sample data in dtoohe..

  Whose age is equal to their managers age first a nested

Consider two ways to compute the names of employees who earn more than $100,000 and whose age is equal to their manager’s age. First, a nested query:

  Assignment of database design

Create a data dictionary that includes the following: a. A description of the content for each field b. The data type of each field ac. The format the data will be stored as in the field d. The range of value for the field e. A label, as required, i..

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