Question

In: Computer Science

Many Projects are running in the company. The CEO of company wants to know about the...

Many Projects are running in the company. The CEO of company wants to know about the details of his current projects. Write a SQL query that retrieves each project record.

Solutions

Expert Solution

First, we created a table to store the Project name, and if the project is done or not by YES/NO.

SQL query-

CREATE TABLE projects ( project_No int,finished_project varchar(10), project_Name varchar(255), PRIMARY KEY (project_No) );

Query to retrieve each data store in the table:

select * from projects;

Query to show only those projects which are currently going on:

select * from projects where finished_project="NO";

OR

select project_No,project_Name from projects where finished_project="NO";

Query to retrieve only those projects which are completed-

select * from projects where finished_project="YES";

OR

select project_No,project_Name from projects where finished_project="YES";


Related Solutions

Mr. Brown the CEO of a corporate company wants to know if a new method of...
Mr. Brown the CEO of a corporate company wants to know if a new method of rewarding employees influences morale. He gives 12 employees an anonymous survey measuring morale, implements the new method, and then measures morale again after four weeks. Employee 1 2 3 4 5 6 7 8 9 10 11 12 Before 4 7 1 6 6 3 5 6 6 2 8 7 After 6 6 5 7 8 6 9 7 8 4 9 9...
1. Catherine’s the new CEO of an exercise equipment company and she wants to know if...
1. Catherine’s the new CEO of an exercise equipment company and she wants to know if her time as CEO has affected the return rates of treadmills. Before she became CEO, 8% of treadmills were returned. What’s the null and alternative hypotheses of any tests she runs? 2. Imagine you were testing if a new battery lasts longer than the industry standard. You perform the appropriate hypothesis test with an unbiased sample and found statistical signifance at 99.9% confidence. It...
Bramble Company manufactures a line of lightweight running shoes. CEO Mark Bramble estimated that the company...
Bramble Company manufactures a line of lightweight running shoes. CEO Mark Bramble estimated that the company would incur $3,412,240 in manufacturing overhead during the coming year. Additionally, he estimated the company would operate at a level requiring 221,000 direct labor hours and 598,639 machine hours. 1) Assume that Bramble Company uses direct labor hours as its manufacturing overhead application base. Calculate the company’s predetermined overhead rate. (Round answer to 2 decimal places, e.g. 52.75.) 2) Assume that job 4375 required...
The CEO of a company wants to estimate the percent of employees that use company computers...
The CEO of a company wants to estimate the percent of employees that use company computers to go on Facebook during work hours. He selects a random sample of 200 of the employees and finds that 76 of them logged onto Facebook that day. Construct a 95% confidence interval for the population proportion. Answer the following questions in the Answer box. a. i) Sample proportion = ?    a. ii) critical value Z = ? a. iii) Standard error =...
The CEO of a company wants to estimate the percent of employees that use company computers...
The CEO of a company wants to estimate the percent of employees that use company computers to go on Facebook during work hours. He selects a random sample of 200 of the employees and finds that 76 of them logged onto Facebook that day. Construct a 95% confidence interval for the population proportion. Answer the following questions a. i) Sample proportion = ?    a. ii) critical value Z = ? a. iii) Standard error = ?    a. iv)...
You work for an international food and beverage company, and the CEO of the company wants...
You work for an international food and beverage company, and the CEO of the company wants to introduce a new product in the US market for 2021. Your team is charged with the following tasks: Develop a new food/beverage product concept that can be brought to market by 2021.  The product should have broad appeal for the US market (i.e., nothing illegal or distasteful). Present a five-year marketing plan to upper management that includes a description of the product, a plan...
A baseball player wants to know his average time running from home to first base. He...
A baseball player wants to know his average time running from home to first base. He records the following five times in seconds: 5.1 4.9 5.1 5.2 5.0 Construct a 95% confidence interval for the mean number of seconds it takes for this baseball player to run from home to first. Interpret this interval within the context of the problem.
A chef is opening a new restaurant in Portland. Oregon. and wants to know how many...
A chef is opening a new restaurant in Portland. Oregon. and wants to know how many vegan meals he should prepare. 300 people will attend opening night. He knows that about 4% of people in Portland are vegan, and the approximate population of Portland is 600,000. You do NOT need to check CLT here. A. What is the probability that less than 4.5% of the people attending opening night will be vegans? B. What is the probability that more than...
A researcher wants to know how many security cameras are on average in stores located in...
A researcher wants to know how many security cameras are on average in stores located in a large shopping mall. He randomly selects a sample of 9 stores and finds that on average there are 2.7 security cameras per store with a standard deviation equal to 1.27. a. Calculate and interpret the 95% confidence interval for the average number of security cameras per store b. Test the hypothesis that the mean number of cameras per store is 4 at p...
The CEO of Tom and Sue’s wants the company to earn a net income of $2.800...
The CEO of Tom and Sue’s wants the company to earn a net income of $2.800 million in 2022. Cost of goods sold is expected to be 60 percent of net sales, depreciation and other operating expenses are not expected to change, interest expense is expected to increase to $1.266 million, and the firm’s tax rate will be 21 percent. Calculate the net sales needed to produce net income of $2.800 million.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT