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

  Relates part of the grammar to a requirement

question1: Given the following grammars with start symbol , specify the type (0, 1, 2 or 3) of each  one and give a reason that relates part of the grammar to a requirement for the grammar type. Note:  while technically any grammar is Type 0, the..

  Prepare business income statement for the period

With growing importance of computerised accounting systems, which inventory system (perpetual or periodic) has become more popular?  Explain why

  Analyze the key roles the agile coach plays

Evaluate the importance of being an agile coach on the project team. Analyze the key roles the agile coach plays in team communication and facilitation activities

  Determine why that happens by closely examining your code

You may have noticed that for some runs, ga terminates with an error that the nonlinear constraint file is not returning a real value. Determine why that happens by closely examining your code. How would you fix this issue? Subsequently, re-run the g..

  Gui library to convert celsius to fahrenheit

Write a program in Java using Swing GUI library to convert Celsius to Fahrenheit. If the input is in Celsius, the program can output equivalent Fahrenheit. Both the input and output should use Swing GUI program. Both the input and output should use S..

  Case study of microsoft dynamics

For this assignment, you are to view the video case study "Evolution Homecare Manages Patients with Microsoft Dynamics CRM" located below and answer the following questions.

  Is it really true that in-person offices are obsolete

Discuss whether or not you agree with the following statement: 'The virtual organization has arrived, thanks to mobile computing. Nobody needs to go to an office anymore'

  Health level seven internationa

Health Level Seven International (HL7) is a not-for-profit, standards-developing organization dedicated to providing a comprehensive framework and related standards for the exchange, integration, sharing, and retrieval of electronic health informatio..

  Explaining it acquisition issued request for proposal

A federal agency that does not use IT acquisition best practices issued a request for proposal that requires the contractor selected to use such practices, including certification at CMMI Level 3 or above.

  Acme container corporation produces egg

Acme Container Corporation produces egg cartons that are sold to egg dis- tributors. Acme has estimated this production function for its egg carton division

  Identify five common project risk strategies employed

Your task for this part of the assessment item is to answer the following two questions. Each question will carry equal (20 marks) and your answer for each question should be around 1000 words:

  Web 10 technical project sample website project this

technical project sample website project this assignment consists of three 3 sections a narrative a storyboard and a

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