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

  Design process

You have recently started your own software design company. You discover that your local DMV is looking to build a system that will allow receptionists to check customers in quickly. They would like for the system to allow customers to self-check-in ..

  Capacity as a systems analyst

In your capacity as a systems analyst, you may face situations in which you encounter an ethical dilemma. For example, you may be asked to design a system that supports an activity with which you personally disagree

  Maintain multiple databases for the two companies

Maintain multiple databases for the two companies

  Show how an assembly might replace

show how an assembly might replace this pseudo-instruction with the true instructions to achieve the same effect. You solution must observe MIPS register use conventions.

  What are the functions of the cps

what are the functions of the CPS? (control prossesing system)

  Delete from s the 100 largest element

Give an efficient data structure supporting the following operations. Insert(S, x): add x to S. Delete - Max(S): Delete the maximum value from S. Delete - 100 - Max(S): Delete from S the 100 largest element. Delete - 100 - Min(S): Delete from S the 1..

  Explaining communication methods which are beneficial

What additional communication methods not discussed in the reading do you believe are also beneficial? Explain what they are and how you know about them.

  Project to further develop your understanding of forensics

Snapchat is a popular mobile photo messaging app developed by Stanford University students. The app facilitates users to send and receive videos and photos to other users of the app on their friends list.

  Security of the facilities

Write 2 pages of the physical security policy section for Home Depot regarding their security incident. Include the follow: Security of the facilities: -Physical entry controls -Security offices, rooms, and facilities

  To encrypt a workbook with a password

Which of the following will produce the same result as the CONCATENATE function?

  Write a presentation on health information technology

The Department of Health and Human Services (HHS) provides extensive information about the Health Insurance Portability and Accountability Act (HIPAA). In March 2012, the HHS settled a HIPAA case with the Blue Cross Blue Shield of Tennessee (BCBST..

  Software developments is for developers to analyze

The goal of real world software developments is for developers to analyze, design, program, and test complete applications that solve the needs of the customer. The iLab exercises you have been given will give you practice with the specific programmi..

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