QUERY 5. You are interested in knowing what the salary difference is between CLARE and her boss. Write a query to output the following:- CLARE’S Name, her bosses name, department name, and the difference between her managers salary and her salary
Answer:-
Clare |
Boss |
DeptName |
Salary Difference |
Clare |
Ned |
Marketing |
$23,000.00 |
As you have not provided the schema of the tables. I am solving your problem by taking dummy schema.
CREATE TABLE "Employee" ( "EmpName" TEXT NOT NULL, "DeptName" TEXT NOT NULL, "EmpID" INTEGER NOT NULL, "Boss" TEXT, "Salary" REAL NOT NULL, PRIMARY KEY("EmpID") ); |
Query -------------- SELECT E1.EmpName as "Clare" , E1.Boss, E1.DeptName, |
Query ScreenShot --------------------------- |
Output -------------------- |
If you have any doubts regarding the submitted solution, please ask in the comments.
If you are satisfied with the answer, Please rate it and comment accordingly.
QUERY 5. You are interested in knowing what the salary difference is between CLARE and her...
Lab 115 1. What is the difference between diastole and systole? 2. What is the difference between heart rate and stroke volume? 3. Define Heart Rate, Cardiac Output, and Stroke Volume. What are the physiological advantages and disadvantages of being in the above average category of the fitness rating? 4. 5. Why do you think a fitness rating is established? 6. What benefit is there for knowing what your own fitness rating is?
2. Hypothesis Testing You are interested in knowing whether the share ofpeople who smoke is the same in California and Florida. You collect a random sample of1,000 California residents and 900 Florida residents. You ask each ofthem whether they smoke or not and create a binary (dummy) variable smoke 1 ifthey say"Yes" and smoke-0if they say "No" a) Write the Stata command you would use to find the mean and standard deviation in sokers for each state Using the command...
Suppose a researcher is interested in answering the following question: Is there a difference between the mean body temperatures for men and women? He collects data on body temperature and gender from a random sample of 130 men and women. The data collected is shown in the table below. Calculate a 95% confidence interval to answer the researcher’s question. Mean Standard Deviation Sample Size Males 98.105 0.699 65 Females 98.394 0.743 65 (A) Are the criteria for the t-distribution met?...
What is the average starting salary for your pilot? By how much do you think the actual salary differ from this average? Write an absolute value inequality expressing the difference between the two salaries. Then solve the absolute value inequality and state what the highest and lowest salary would be. Explain your answer and show all calculations. In your explanation, also include why we would use absolute value to express how these salaries differ. Then share your thoughts about why...
Question 3. SQL (5 points). In addition to the lecture notes, you should also study by yourself the SQL Plus tutorial on Canvas (the Oracle section) and other resources for Oracle syntax and useful functions. The relational schema for the Academics database is as follows: DEPARTMENT(deptnum, descrip, instname, deptname, state, postcode) ACADEMIC(acnum, deptnum, famname, givename, initials, title) PAPER(panum, title) AUTHOR(panum*. acnum) FIELD(fieldnum, id, title) INTEREST(fieldnum* acnum*, descrip) Some notes on the Academics database An academic department belongs to one institution...
In a firm with 500 employees, the CEO is interested in knowing what level of commitment the company’s employees has in the firm. The CEO suspects that approximately 250 full-time employees are more committed (e.g., emotional attachment to the firm) than the nearly 250 contracted personnel. The CEO asked the human resources director to survey all employees using an established measurement scale that taps into organizational commitment. The dataset represents the average scores of each worker on this scale. Test...
Salary Lab In this lab you are going to write a time card processor program. Your program will read in a file called salary.txt. This file will include a department name at the top and then a list of names (string) with a set of hours following them. The file I test with could have a different number of employees and a different number of hours. There can be more than 1 department, and at the end of the file...
A researcher is interested to see if there is an average difference in the age of male v. female CJ381 students. To examine this, she conducts a t-test. The SPSS output is shown below: Group Statistics sex N age in years 224 HL Mean 19.83 256 19.86 female male Std. Deviation 2.063 1.965 Std. Error Mean 138 123 Independent Samples Test Levene's Test for Equality of Variances t-test for Equality of Means sia Mean Difference 95% Confidence interval of the...
Managers at the Turquoise Oasis Spa are interested in knowing whether there is a relationship between the age of their clients and the amount of money they spend in the spa. Upon analyzing the data, they found a correlation coefficient of .672. Thus, the relationship between the two variables is _________. strong moderate weak very weak Calculating the correlation coefficient using the_________ function is useful to determine the type and strength of a relationship between two variables. CAUSATION COVARIANCES CORREL...
Problems and Exercises 1 through 5 are based on the class schedule 3NF relations along with some sample data in Figure 7-16. For Problems and Exercises 1 through 5, draw a Venn or ER diagram and mark it to show the data you expect your query to use to produce the results.Figure 7-16: Class scheduling relations (for Problems and Exercises 1-5Figure 7-17 Adult literacy program (for Problems and Exercises 6-14)1. Write SQL retrieval commands for each of the following queries:a....