APlusGrades

Not Rated (0)

$15/per page/Negotiable

About APlusGrades

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing,Foreign Languages,Geography,Geology,Health & Medical,HR Management,Law,Management,Physics,Programming,Science,Statistics Hide all
Teaching Since: Jul 2017
Last Sign in: 364 Weeks Ago, 4 Days Ago
Questions Answered: 1850
Tutorials Posted: 1850

Education

  • Graduate in Biology and Nutrition, MBA Finance
    Florida State University
    Aug-2000 - Jul-2007

Experience

  • Ass. Relationship Manager
    Penn-Florida
    Mar-2009 - Feb-2016

Category > Computer Science Posted 19 Jul 2017 My Price 6.00

Last Name Moreland Seamans Tomic Sheperdigian Poe Spoon Walton Berg Meyyappan Bacon Bueno Barber Martin Kharatishvili Norred Ajenstat Wilson Chai

SQL Question - Adding this spreadsheet to the AdventureWorks data base Answer this question:

1A. Jo Berry's manager marked down that Jo was taking paid time off this month. However, he wants to double check that the system reflects the same information. To complete this task, import the "Hours" spreadsheet into the AdventureWorks database. Add Jo Berry's hours together for the month and title the field "Monthly Hours." Use the knowledge you have learned about NULL values to provide the solution to the manager.   Here is my query but instructor implied I may want to use IS NULL

SELECT SUM((isnull([Week 1],0)) + (isnull([Week 2],0)) + (isnull([Week 3],0)) + (Isnull([Week 4],0))) as [Monthly Total] FROM dbo.Hours

Where [Last Name]

1B.

The Human Resources Manager wants to classify employees who were absent during the entire month as "Inactive." Using a CASE statement write a query that classifies employees as "Active or Inactive" in a column titled "Status" with "Full Name" (First + Last) also listed. Compile this task as per the assignment requirements.  Here is my query and again instructor implied I may want to use  IS NULL instead of the way I did it.

SELECT [Full Name]=[First Name]+' '+[Last Name], [Status] When SUM((isnull([Week 1],0)) + (isnull([Week 2],0)) + (isnull([Week 3],0)) + (Isnull([Week 4],0))) = 0

Then 'Inactive'

ELse 'Active'

end

FROM dbo.Hours

Group by [Last Name], [First Name]

Attachments:

Answers

Not Rated (0)
Status NEW Posted 19 Jul 2017 12:07 PM My Price 6.00

Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â-----------  -----------Tha-----------nk -----------you----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m Â----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I

Not Rated(0)