Question

In: Computer Science

Screenshots from MySQL (or any other software you use) of all the tables after queries result...

Screenshots from MySQL (or any other software you use) of all the tables after queries result

sorry no spam i will be reported

no copy and paste i want complete answer with Screenshots

no handwriting

thanks for your efforts and time

Using the info below, write a query SQL

Using the info below to Normalize the Tables (in 3NF at least)
. Using the info below toCreate the Normalized Tables and Populate them with at least 5 Rows
. Using the info below toWrite the Wholesale Management System requested Queries & Execute them

Screenshots from MySQL (or any other software you use) of all the tables after queries result

Database system for a Wholesale Management System

Consider a database system for a Wholesale Management System. The data requirements are summarized as follows:

o Maintain the details of stock like their id, name, quantity.

o Maintain the details of buyers from which manager has to buy the stock like buyer id, name, address, stock id to be bought.

o Details of customers i.e. name, address, id.

o Defaulters list of customers who have not paid their pending amount after the due date So List of payment paid or pending.

o The stock that is to buy if quantity goes less than a particular amount.

o Profit calculation for a month.

o Quantity cannot be sold to a customer if the required amount is not present in stock and date of delivery should be maintained up to which stock can be provided.

SQL Queries:

1. List of payment paid or pending customers.

2. Find the Defaulters list of customers who have not paid their pending amount.

3. Find the details of customers name, address, id.

4. Find Query to get information of employee where employee is not assigned to the department.

5. List the stock that is to buy if quantity goes less than a particular amoun

Solutions

Expert Solution

1. In order to find both payment paid and pending customers you can directly use this query

select name from Wholesale;   //* Name columns represents customer name and Wholesale represents Table name *//

2. To get customers with pending amount we have to apply where condition

select name from Wholesale where payment="pending"; //* Payments column represents whether the payments is paid or not *//

3. select name, address, id from Wholesale;  //* As database consists of all the mentioned columns *//

4. In order to find the customer not having any assigned department apply where condition as null

select name from Wholesale where department=Null;

5. As the database directly consists of " stock that is to buy if quantity goes less than a particular amount" we can have direct query like this assuming stock as a column with values satisfying the mentioned condition

select stock from Wholesale;


Related Solutions

You may use R or any other software to calcuate the sample variances. Suppose that the...
You may use R or any other software to calcuate the sample variances. Suppose that the percentage changes in value per day on holdings of the stock of company ABC and DEF are normally distributed with unknown mean µabc, µdef and unknown variance σ2abc, σ2def. The following daily returns are observed over two business weeks (10 trading days): abc_pctchange <- c(2.82, 3.61, 5.66, -2.17, 2.40, -1.48, 3.55, 1.64, -0.16, 2.21) def_pctchange <- c(1.83, 2.56, 3.55, -1.19, 0.40, -1.53, 2.44, 1.89,...
describe what these mysql queries do 1.) select lastname, firstname, region, birthday from Members where birthday...
describe what these mysql queries do 1.) select lastname, firstname, region, birthday from Members where birthday in (select birthday from Members where email is not null) 2.) select Sales.Firstname As EmpFirst, Sales.Lastname as EmpLast, Sup.Firstname as SupFirst, Sup.Lastname as SupLast from Salespeople Sales inner join Salespeople Sup On Sales.Supervisor=Sup.SalesID 3.) select Region, Gender, Count(*) As Num from Members where Email is null group by region, gender 4.) select title from titles where not Genre = 'Jazz';
For parts a and​ b, use the t​ tables, software, or a calculator to estimate. For...
For parts a and​ b, use the t​ tables, software, or a calculator to estimate. For parts c and​ d, use software or a calculator to estimate. ​ a) the critical value of t for a 98% confidence interval with dfequals=30 b) the critical value of t for a 99​% confidence interval with dfequals=51. ​ c) the​ P-value for t≥2.69 with 6 degrees of freedom. ​d) the​ P-value for l t l than>2.32 with 21 degrees of freedom.
Test-case Queries (DML) At least 10 test queries (pertaining to warehouse management) You must use the...
Test-case Queries (DML) At least 10 test queries (pertaining to warehouse management) You must use the following clauses in one or more of your test queries : [ FROM, WHERE, GROUP BY, HAVING, ORDER BY ] You must use the following statement options in one or more of your test queries : [ column aliases, computed columns, SQL’s DISTINCT clause, JOIN ON syntax ] You must use at least one of the special operators in one or more of your...
2.       The next two tables are summaries from a neighborhood survey. Use the information in the tables...
2.       The next two tables are summaries from a neighborhood survey. Use the information in the tables to summarize the results of the survey. Which of the neighborhoods would you consider the lowest income neighborhood? Explain your answer? TABLE 2 CROWN HEIGHTS,   EAST NEW YORK PROSPECT HEIGHTS / FLATBUSH BED-STUY / BUSHWICK INCOME Count % Count % Count % LESS THAN $15,000 45 19.7% 5 7.8% 11 8.3% $15,000 - $24,999 69 30.1% 25 39.1% 38 28.6% $25,000 - $34,999 64...
Kindly use excel and use screenshots to show formulas 1. Suppose you plan to save $8,000...
Kindly use excel and use screenshots to show formulas 1. Suppose you plan to save $8,000 per year for the 35 years you are working. In addition to the amount you are saving each year, you expect to sell your house for $600,000 in year 32 and deposit this money into your account. How much can you withdraw in equal amounts each year for the 30 years you are retired. The interest rate you will earn during the 35 years...
Calculate the coefficient of correlation, and interpret the result. (not from software or excel) X Y...
Calculate the coefficient of correlation, and interpret the result. (not from software or excel) X Y 1870 3.38 1330 1.16 1760 1.58 1520 2.65 1300 1.98 1520 2.39 1640 2.49 1490 2.81 1300 2.95 1360 1.69 1940 3.49 1730 2.8 1790 2.95 1780 3.8 1730 2.64 1380 2.36 1580 3.1 1900 1.96 1640 3.08 1540 2.24 1350 2.59 1380 2.43 1780 1.95 1700 2.07 1610 2.34 1720 3.59 2070 3.59 1210 2.12 1720 2.48 1510 2.37 1790 2.1 2100 2.55...
Please show all details and you can use excel to build some tables. Your goal is...
Please show all details and you can use excel to build some tables. Your goal is to figure out whether starting a microbrewery in Nova Scotia is a good idea or not. You need to perform net present value analysis. In addition, you need to estimate payback period, discounted payback, internal rate of return and profitability index. If you cannot estimate a certain parameter, indicate why. The inputs for your analysis are as follows: you will run the business for...
You may use Microsoft Excel or any other technology to complete the question as long as...
You may use Microsoft Excel or any other technology to complete the question as long as the explanation is clear and a screen shot is included. Please complete the following problems: 1. Eastman Publishing Company is considering publishing an electronic textbook on spreadsheet applications for business. The fixed cost of manuscript preparation, textbook design, and Web site construction is estimated to be $160,000. Variable processing costs are estimated to be $6 per book. The publisher plans to sell access to...
Describe all factors that result in rigor mortis that occurs after the death of an individual....
Describe all factors that result in rigor mortis that occurs after the death of an individual. Please provide short answers to the following questions: How is a skeletal muscle fiber categorized as either fast or slow? Which skeletal muscle fibers have many capillaries and many mitochondria? Why? What color are oxidative fibers? Justify why. Suzane was riding her bicycle on a busy street when a car made a sudden right turn out of the left lane of traffic directly in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT