Calculate the age based on the age

Assignment Help Database Management System
Reference no: EM131474881

I have date of birth column in my table and I want to calculate the age based on the age that will reach 65 within 6 months from the date of the report generated  and that would be treated as  Medicare else no eligible for Medicare

I started to code in T-sql as

getdate() as today case when datediff(yy,m.date_of_birth ,getdate()) as age

case  WHEN DATEADD(MONTH, DATEDIFF(YEAR,m.date_of_birth ,getdate())  ,m.date_of_birth)(I do not know wether it works )

-------

-------

-------

------

Make use of CASE when if possible

I need to display the age with the months too.

The logic should be in a such a way that you display the age in such a way (the condition is when the age reaches 64 yrs 6 months, it should treated as Medicare else no Medicare)?.

Reference no: EM131474881

Questions Cloud

Find the real zeros of the polynomial function : Find the real zeros of the polynomial: Use the Intermediate Value Theorem to determine if the function. Find the domain of the function.
Discuss the strategy of your organization : BUS302 - The Internet a typhoon force, a ten times force, or is it a bit of wind? Or is it a force that fundamentally alters our business
Imperfect distribution of income : In reference to labour markets in professional sports, discuss how players are paid.
Canadian treatment of foreign corporate incomes : Which of the conditions fits the Canadian treatment of foreign corporate incomes best? equal?
Calculate the age based on the age : I have date of birth column in my table and I want calculate the age based on the age that will reach 65 within 6 months from the date of the report generated
Entering foreign markets and corporate social responsibility : savvy entrepreneur, entering foreign markets and corporate social responsibility.
Determine the code words for the ten decimal digits : Determine the code words for each of the ten decimal digits in the weighted code (63 -11). The code should be self-complementing.
Linear compensated demand curve : Another friend, who happens to be a history major, sees the formula for excess burden under a linear compensated demand curve and remarks:
Discuss about the behavioral heuristics : What other statistically relevant factors did you/they fail to incorporate? How could you have altered the framing of the situation to make a better decision?

Reviews

Write a Review

Database Management System Questions & Answers

  Normalization procedures suggested by shome and cornell

These are normalization procedures suggested by Shome and Cornell. EQ Tools program permits any of these normalization (or scaling) approaches.

  Produce a distributed data design for enterprise

Produce a distributed data design for this enterprise. Show data fragmentation/partitioning and replication for each regional database location. Indicate what attributes are in each fragment

  Calculate confidence and support of rule

Assume that 30% of science students are majoring in biology. Would you consider to be novel with respect to rule? Describe. Calculate confidence and support of rule.

  Maintain data on the various federal agencies

The U.S. government wants to keep track of information about states, governors, cities, and mayors. In addition, it wants to maintain data on the various federal agencies and the annual grants each agency gives to the individual states.

  Questionethical and legal considerations in marketing

questionethical and legal considerations in marketing intellectual property and product safetyprepare a paper in which

  What is your justification selecting your strategy

MN692 Capstone Project Purpose of the assessment How did you do constrain the problem - What alternate strategies did you consider? What is your justification selecting your strategy?

  Explain why log records could be written between the begin

Explain why log records could be written between the begin checkpoint and end checkpoint records.

  Create a new database

Create a new database. Add tables based on the design of your entity-relationship diagram from Question 1. Make sure that you:· have the correct primary keys for each table,· add foreign keys,· choose appropriate data types for each field.Paste a scr..

  Display the data in the view

Create a view named OrdTot. It consists of the order number and order total for each order currently on file.

  Discuss optimization techniques specific to data warehousing

Discuss optimization techniques specific to data warehousing and data mining. Explain the benefits and current trends of data warehousing and data mining.

  Discuss the concept of the intersection table

Discuss the concept of the intersection table. Why is it needed in many to many relationships? Referential integrity "rules" trigger some cleanup of your data when insertion, update, or deletion events would typically cause data anomalies.

  Construct an entity-relationship model for the database

Construct an entity-relationship (ER) model for the database. Make sure you include in your model details of entities, relationships, attributes, keys and limits in participation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd