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

  Statements for the subsequent queries of the database

Write the statements for the subsequent queries of the database - Find Beth' s home state.

  Draw an fdd that shows the personal trainers main functions

Draw an FDD that shows the Personal Trainer's main functions. Also draw a use case dia-gram that represents the interaction between a user and the proposed TIMS system.

  What are the good/bad choices the first two rdb systems made

What is the key benefit provided by the relational model over previous data models?

  Print to screen the ''below average''

Print to screen the 'below average' if minimum unit_cost is 10 for the same product (use sh.costs table)

  Explain how principles of database management are applied

Create a 4- to 6-slide Microsoft® PowerPoint® presentation in which you explain how the principles of database management and your recommendations were applied to the project.

  Examine structures rather than describing them with text

The ____ model was developed to allow designers to use a graphical tool to examine structures rather than describing them with text

  Describe and design physical storage requirements

Describe and design physical storage requirements.

  Draw relationship diagram for arrays

Information Gathering Component is very important to a shopping cart system. You really want to develop a good algorithm for it. As a professional practice, you decided to first make a working plan in pseudocode before putting hands.

  Highest average mark

Write a program to calculate and store the average obtained by 20 pupils in 7 subjects. Output the pupil that made the highest average mark in addition to those pupils making 50 marks and over.

  What are the advantages of dbms

What are the advantages of DBMS? What are the advantages and disadvantages of RDBMS and ODBMS? What issues should be considered when choosing a database and a DBMS?

  Identify the different types of entities and attributes

In a group, identify the different types of entities, attributes, keys, and relationships Martex will want to consider when designing its relational database.

  Describe the data obtained through the observations

Describe the data obtained through the observations. Charts, diagrams, or other visual depictions of your data may be included.

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