Question

You have been asked to design a database capable of logging project (work) hours for a...

You have been asked to design a database capable of logging project (work) hours for a geographically dispersed workforce.

  • Start and end times may be logged in different geographical locations
  • Start times may begin in one location and end in another
  • Calculated work hours must be accurate to the minute

Would the difference between a simple start and end date-time recorded in the database satisfy this requirement?

[ why or why not? ... support your answer. ]

Homework Answers

Answer #1

No, a simple start and end date-time recorded in the database would not satisfy the requirement mentioned above. Since the workforce is geographically distributed the log of time-stamps made will differ with time-zones. This might have been okay if there was only the need to calculate working hours, with the workforce not moving across time-zones.

But that not the case altogether.It is mentioned that Start times may begin in one location and end in another. Therefore errors in calculation of work hours even seems possible.

Solution:

The normal thing one might do is to use the getdate() or the sysdatetime() functions to create timestamps, most probably in the format 'YYYY-MM-DD HH-MM-SS'. However we need time-zone to be involved.

The function getutcdate() creates GMT(Greenwich Mean Time) timestamps with time-zone offset. The data is non-deterministic(change with time) regarding location details retrieved from the host operating system. But this mechanism can ensure that the work hours calculated are accurate provided that the server does not change it's location.

This function however does not return any data regarding the time-zone. Let's assume that the requirement may also demand this. In such a case comparing the outputs of getdate() and getutcdate() helps to calculate the time-zone the client makes the stamp from. To do this divide the difference of the outputs by 60 to get hour offset and the remainder(modulus) operator provides minute offset.

Hope this answers your question. If you have any doubts place them in the comments.If you are satisfied with the answer please leave in a thumbs up.It really matters.

Thank You.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
The project has been performing as planned, and the team members have been exhibiting increasing levels...
The project has been performing as planned, and the team members have been exhibiting increasing levels of trust between each other. The sponsor and the buyer have been satisfied with the delivery of business value, and user acceptance testing results are positive. A technical expert consulting with the team has expressed concerns that the team is not in agreement on the best way to deliver to the next review. If the project manager wants to support the team in reaching...
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the...
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the purchases and fixed assets business areas. Prepare a 12- to 16-slide presentation describing the purchases and fixed assets business areas. Be sure to incorporate speaker notes as well as appropriate visuals, graphics, fonts, etc. Include any associated risk in these areas. Describe specific internal controls that include authorization of transactions, segregation of duties, adequate records and documentation, security of assets, and independent checks and...
QUESTION: Why do governments typically take an unsupportive stance on countertrade arrangements? Article Below: The Bell...
QUESTION: Why do governments typically take an unsupportive stance on countertrade arrangements? Article Below: The Bell Boeing V-22 Program, a strategic alliance between Bell Helicopter, a Textron Company, and the Boeing Company,1,2 announced the V-22 Osprey tiltrotor will be featured at the Dubai International Air Show in the United Arab Emirates (UAE) from November 13 to 17, 2011. The Air Show, held biennially, is organized in cooperation with the government of Dubai, the Department of Civil Aviation, and Dubai International...
The Business Case for Agility “The battle is not always to the strongest, nor the race...
The Business Case for Agility “The battle is not always to the strongest, nor the race to the swiftest, but that’s the way to bet ’em!”  —C. Morgan Cofer In This Chapter This chapter discusses the business case for Agility, presenting six benefits for teams and the enterprise. It also describes a financial model that shows why incremental development works. Takeaways Agility is not just about the team. There are product-management, project-management, and technical issues beyond the team’s control. Lean-Agile provides...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation....
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation. case:    W17400 APIGEE: PEOPLE MANAGEMENT PRACTICES AND THE CHALLENGE OF GROWTH Ranjeet Nambudiri, S. Ramnarayan, and Catherine Xavier wrote this case solely to provide material for class discussion. The authors do not intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names and other identifying information to protect confidentiality. This publication may not be...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT