Schema for a customer sale database scenario

Assignment Help Database Management System
Reference no: EM13965831

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: EM13965831

Questions Cloud

Therapeutic and nontherapeutic communication techniques : Differentiate components of verbal and non-verbal expressionin persons with mental illness; Differentiate therapeutic and nontherapeutic communication techniques; and Identify types of treatment modalities to promote mental health/wellness
What is the purpose of critical appraisal : What is the purpose of critical appraisal? Discuss how you would perform critical appraisal of articles selected for your topic.
Makes parts of a machine with a productivity : A manufacturing plant makes parts of a machine with a productivity of 10 parts/hour. A quality inspector then inspects and tests the parts. The quality inspector can inspect 5 parts an hour. Show how you can optimize the schedule. Assume 5 day work w..
Probabilistic activity time estimates : The following probabilistic activity time estimates are for a CPM/PERT network. Time Estimates (days) Time Estimates (days) Activity a m b Activity a m b 1 1 2  6  7 1 1.5 2 2 1 3  5  8 1 3 5 3 3 5 10  9 1 1 5 4 3 6 14 10 2 4 9 5 2 4  9 11 1 2 3 6 2 ..
Schema for a customer sale database scenario : 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)
Distinguish between recourse and nonrecourse financing : Distinguish between recourse and nonrecourse financing. Give an example of each. Should the investor select the origination LTV that maximizes the expected return on equity? Explain why or why not.
What are economies of scale in a manufacturing plant : What are economies of scale in a manufacturing plant? Do they continue forever? What are diseconomies of scale? How might you decide the optimal size of a plant?
There are several tools for appraising performance : There are several tools for appraising performance. Assume you were charged with designing (or redesigning) the performance system at your organization. Which tool(s) would you desire to implement and why? Be sure to include any concerns that you mig..

Reviews

Write a Review

Database Management System Questions & Answers

  Database design and erd creation

Subject: We will discuss the logical design, data definition and relationship between the tables of database.

  Analyze the fundamentals of pki

Analyze the fundamentals of PKI, and determine the primary ways in which its features and functions could benefit your organization and its information security department.

  Draw inheritance hierarchy to represent shoe object

Draw an inheritance hierarchy to represent a shoe object. The base class should have derived classes of Dress Shoes, Tennis Shoes and Boots.

  Define the minimum and maximum cardinality

Don't worry about going through the normalization process at this point. Identify the appropriate relationships among the entities, and define the minimum and maximum cardinality of each relationship. Make some additional assumptions about the bus..

  Select the primary keys for each table in your list.

Using the final table list you created for Learning Event 3, select the Primary Keys for each table in your list. Then, select one of your tables and complete field specifications for each field.

  By using the instructions given by your instructor install

using the instructions provided by your instructor install mysql and connect from netbeans. create a user account that

  Why is real-time data warehousing important

what kinds of applications require real-time data warehousing? Discuss applications that do not require real-time data warehousing. What is the difference between the two and why is real-time data warehousing important only to some applications

  Relational database concepts and applications

Relational Database Concepts and Applications

  How the dbms handles distributed database functions

Use the Internet or computer magazines to investigate one of the following DBMSs: DB2, SQL Server, MySQL, Oracle, or Sybase

  Write a join query that for every order

Write a join query that for every order placed on September 5, 1998, (use '05-SEP-1998') will list the order number and order date along with the customer number, last name, and first name of the customer who placed the order.

  Debugging the speed issue

A controller action is taking 10 seconds to run. Most of the time is being spent in a view which is a large file.(1000 lines). How will you go about debugging the speed issue?

  Online transactions versus a data warehouse optimized

Outline the main differences between the structure of a relational database optimized for online transactions versus a data warehouse optimized for processing and summarizing large amounts of data

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