Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The CONTACT_DATE column Stores the date of a patient encounter. which of the following could be used to return how many days ago an encounter

The CONTACT_DATE column Stores the date of a patient encounter. which of the following could be used to return how many days ago an encounter was? Assume all encounters are in the past. Trailing information is okay in Oracle. The number of days ago should be displayed by a positive number.

A) In Oracle: ADD_MONTHS(CURRENT_TIMESTAMP, CONTACT_DATE) / 31 In SQL Server: DATEADD(m, CONTACT_DATE, CURRENT_TIMESTAMP) / 31 B) In Oracle: CURRENT_TIMESTAMP - CONTACT_DATE In SQL Server: DATEDIFF(d, CONTACT_DATE, CURRENT_TIMESTAMP) C) In Oracle: ADD_MONTHS(CONTACT_DATE,CURRENT_TIMESTAMP, ) / 31 In SQL Server: DATEADD(m, CURRENT_TIMESTAMP, CONTACT_DATE ) / 31 D) In Oracle: CONTACT_DATE - CURRENT_TIMESTAMP In SQL Server: DATEDIFF(d, CURRENT_TIMESTAMP, CONTACT_DATE)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

What is a board of directors?

Answered: 1 week ago

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago