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

  Compute the customer margin for the whiddon family

Compute the customer margin for the Whiddon family. Round off all calculations to the nearest whole cent.

  Exhibiting all the primary keys and foreign keys

Draw the corresponding GRD, exhibiting all the primary keys and foreign keys. For simplicity, no other attributes nor multiplicity constraints are required.

  Create an access database that keeping track of employees

Create an Access database called EMPLOYEES that will aid you in keeping track of your employees. You can decide field names but be sure to include at least eight fields, including one called TOTALPAY.

  Oracle has many features for managing and tracking users we

oracle has many features for managing and tracking users. we have discussed user accounts with username password

  What functionality does their proposed clause provide

In the Zhang & Huang (2007) article, the authors propose introducing a CLUSTER BY clause into SQL. What functionality does their proposed clause provide

  Create documentation describing the principles

Create documentation describing the principles and importance of normalization in relation to this project and the process by which this project was normalized.

  Create ascreenshot of each query and output data

Create 3 rows of data for each table ensuring that the referential integrity is valid and add the 30 rows of data to the appropriate table in your database (using any appropriate method available).

  Describing the purpose of database an its functionality

Describing the purpose of database an its functionality, plus a detailed E-R diagram.

  Explain microsoft encrypting file system

Encrypting a message with a private key (of the sender) in an asymmetric system provides:

  Revise table that is to be used as data source in mail merge

In the following project, you will revise a table that is to be used as a data source in a mail merge. As the business manager for Sports Medicine Clinic, you will send letters of welcome to three newly hired physical therapists

  Summarize your paper by explain the database systems in

write a 600- to 700-word paper in which you do the following explain what database systems are and how they are used.

  Assume that a student table in a university database has an

assume that a student table in a university database has an index on studentid the primary key. and additional indexes

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