Database schema for a customer sale

Assignment Help Basic Computer Science
Reference no: EM13968400

Database schema for a customer sale database scenario:

customer(cust_id,cust_name) primary key(cust_id).

Item(item_id,item_name,price) primary key(item_id)

Sale(bill_no,bill_date,cust_id,item_id,qty_sold) primary key(bill_no),foreign key(cust_id),foreign key(item_id).

1) Create the tables with appropriate integrity constraints.Insert around 10 records in each of the tables.

2) List all the bills for the current date with the customer name and item_no.

3) List the total bill detail with the quantity sold,price of the item and final amount.

4) List the details of the customer who have brought a product which has a price>200.

5) Give a count of how many product have been brought by each customer.

6) Give a list of product brought by a customer having cust_id as 5.

7) List the item details which are sold as of today.

Reference no: EM13968400

Questions Cloud

Eligible number of voters in the united states : Why is the eligible number of voters in the United States who participate in elections lower than it is in Netherlands, Belgium or Italy? Will this trend continue? (250 words)
Provide a synopsis of the article : Title: Sports Nutrition Article, For this Forum 4 post you will need to go to following website:http://www.gssiweb.org. Choose one article. Read the article. Provide a synopsis of the article
Add a strong acid to a solution of phosphate buffer : If you add a strong acid to a solution of phosphate buffer, which form(s) of phosphate in the equilibrium above would increase in abundance first? Which would decrease first? If you kept adding strong acid until the solution was no longer able to buf..
Post a paragraph that explaining to your constituents : Post a paragraph, explaining to your constituents what you think about this proposed amendment, and why you would support or oppose it.
Database schema for a customer sale : Database schema for a customer sale database scenario: customer(cust_id,cust_name) primary key(cust_id). Item(item_id,item_name,price) primary key(item_id)
What type of research design was used : Read the Gilmour et al. article. What type of research design was used? What questions/hypotheses were being evaluated? What methods were used? How were the results summarized and organized
What characteristics of data would lead you to select : What characteristics of data would lead you to select one type of statistical analysis over another? Be specific, give examples, and support your answer
What would be your preference as a researcher and why : How does the selection of a one-tail or two-tail test affect the risk of each type of error? How does it affect power? What would be your preference as a researcher and why
What are advantages of moving to experimental designs : What are advantages of moving to experimental designs to evaluate a treatment? What might be some difficulties in following rules for proper/valid experimental designs when evaluating a type of clinical treatment? Be specific in your answers and g..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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