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

I am coding in MySQL and two of my tables are populating find but the other...
I am coding in MySQL and two of my tables are populating find but the other two "Employee" and "Assignment" won't. I keep getting an error code saying I can't alter a child table and I can't figure out what to fix. Here is my code: CREATE TABLE DEPARTMENT ( DepartmentName Char(35) NOT NULL, BudgetCode Char(30) NOT NULL, OfficeNumber Char(15) Not Null, DepartmentPhone Char(12) NOT NULL, CONSTRAINT DEPARTMENT_PK primary key(DepartmentName) ); CREATE TABLE EMPLOYEE( EmployeeNumber Int NOT NULL AUTO_INCREMENT, FirstName...
Use Workbench/Command Line to create the commands that will run the following queries/problem scenarios. Use MySQL...
Use Workbench/Command Line to create the commands that will run the following queries/problem scenarios. Use MySQL and the Colonial Adventure Tours database to complete the following exercises. 1. List the last name of each guide that does not live in Massachusetts (MA). 2. List the trip name of each trip that has the type Biking. 3. List the trip name of each trip that has the season Summer. 4. List the trip name of each trip that has the type...
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.
In this assignment, you must use the MySQL Command Line Client Window. READ ALL INSTRUCTIONS BEFORE...
In this assignment, you must use the MySQL Command Line Client Window. READ ALL INSTRUCTIONS BEFORE STARTING. Install MySQL Server if you haven't done it yet. Some instructions are posted here: MySQL You'll need to take screen shots throughout the assignment (more details below). You may change the properties of your MySQL Command Line window by right-clicking on the title bar (or the icon on the upper left corner of the window), and selecting the Defaults menu. This will allow...
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...
-Using MySQL Workbench Data Modeler, create three (3) models from the tables below. Show Table 1...
-Using MySQL Workbench Data Modeler, create three (3) models from the tables below. Show Table 1 in 3rd Normal Form. Show Table 2 in 3rd Normal Form. Merge the 3rd Normal Forms of Table 1 and Table 2 into a single 3rd Normal Form model. Note that you only can model table and column names and data types. The data shown is for your reference to determine functional, partial, and transitive dependencies. -Provide a summary of the steps you took...
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT