Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91643346

Have any Question?


Related Questions in Computer Engineering

Here is a hypothesis when deprived of food invertebrates

Here is a hypothesis: when deprived of food, invertebrates will lose weight more quickly when humidity is 60%. Please indicate which is your dependent variable (Y) & which is your independent variable (X) by labeling the ...

You need to have accumulated savings of 2 million by the

You need to have accumulated savings of $2 million by the time that you retire in 20 years. You currently have savings of $200,000. How much do you need to save each year to meet your goal if your savings earn a return o ...

Question suppose that someone tells you that an attribute

Question : Suppose that someone tells you that an attribute that is part of a composite primary key is also a candidate key. How would you respond to that statement? Explain.

Assignment week 2 documenting the project

Assignment: Week 2 Documenting the Project Lifecycle Well-written project documentation clarifies intent, documents decisions and results, and allows project managers to assess project progress (and report it, as necessa ...

How do you calculate the annual interest rate of 12

How do you calculate the annual interest rate of 12% compounded monthly. I know how to do for annually but not monthly. You are offered the opportunity to put some money away for retirement. You will receive 10 annual pa ...

Question suppose that during the playing of the

Question : Suppose that during the playing of the coins-in-a-line game that Alice's opponent, Bob, makes a choice that is suboptimal for him. Does this require that Alice recompute her table of remaining Mi,j values to p ...

Scenario 1 19500 ascii characters are transmitted over a 3

Scenario 1: 19,500 ASCII characters are transmitted over a 3 Mbps circuit. The protocol uses 8-bits to encode each ASCII character, and adds an additional parity bit to help detect errors. Calculate the transmission effi ...

Question need a discussion post of 500-700 words in apa

Question: Need a discussion post of 500-700 words in APA format with 4 references & citations. Only For Dr. Silvercoast Which of these principles can you apply at your workplace? Select one or two and provide examples. O ...

Is smartart graphic and table slide important for

Is Smartart graphic and Table slide important for PowerPoint Presentation? How would it benefit?

Question wireless transmission please respond to the

Question: Wireless Transmission" Please respond to the following: • Organizations need to be careful about their wireless transmissions and controlling the reception of the wireless signal. Discuss ways that organization ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As