Learning Documentation Community Open Exchange Global Masters Certification Partner Directory Ideas Portal
Developer Community
  • Posts
    • InterSystems Official
    • Articles
    • Questions
    • Announcements
    • Discussions
    • Tags
  • Events
    • Tech Article Contest
    • Programming Contest
    • InterSystems Ideas Contest
    • Event Calendar
  • Products
    • InterSystems IRIS
    • InterSystems IRIS for Health
    • HealthShare
    • TrakCare
    • Caché
    • Ensemble
    • InterSystems Analytics (DeepSee)
    • InterSystems Text Analytics (iKnow)
  • Jobs
    • Job Opportunity
    • Job Wanted
  • Members
  • About
    • About Us
    • FAQ
    • Feedback
    • Report an Issue
    • Share an Idea
    • Code of Conduct
    • Contact Us

EN

Search by posts, members, tags
Language
EN|
ESPTJPCNFREN
New post
  • Profile page
  • Posts (3)
  • Replies (4)
  • Mentions (0)
  • Official certification & Credly badges (0)
  • Global Masters badges (0)
  • Following (0)
  • Followers (0)
AllAccepted answers
    go to post
Roger Beeman · Jan 16, 2018

Hi Everyone -

Apologies for the late response on this but for our needs we have decided to go with Jill's recommendation (see below). It is the most efficient and logical option for us with how my entire 50 line query is structured.

AND (DATEPART('YY',CURRENT_DATE) - DATEPART('YY',Patient.BirthDate)) >= 13

Thanks,

Blake

0 0 https://community.intersystems.com/post/sql-or-cache-function#comment-100711
    go to post
Roger Beeman · Dec 14, 2017

Hi Jill -

I plan on trying all the answers out today. Performance will be important for this report/extract so I will be sure to update the post on which approach I take. Thank you for your answer!

Blake

0 0 https://community.intersystems.com/post/sql-or-cache-function#comment-40671
    go to post
Roger Beeman · Dec 14, 2017

Hi Vitaliy -

Thank you very much for pointing this out as I didn't think about that!

Blake

0 0 https://community.intersystems.com/post/sql-or-cache-function#comment-40666
    go to post
Roger Beeman · Dec 13, 2017

The answer to this post has been figured out. Below is a query to get the 12 year olds who will turn 13 by the end of the current year (12/31).

select DATEDIFF('YY',birthdate,current_date) AS CalculatedAge, Age
from hsaa.patient
where DATEDIFF('YY',birthdate,current_date) = 13

0 0 https://community.intersystems.com/post/sql-or-cache-function#comment-100076
Roger Beeman
@Roger.Beeman
Follow

User statistics

Posts
3
Replies
4
Likes
0
Applications
0
Badges
0
Followers
0
People reached
4.9K
Accepted answers
0
  • Privacy & Terms
  • Guarantee
  • Section 508
  • Contest Terms
  • Cookies Settings
© 2025 InterSystems Corporation, Cambridge, MA. All rights reserved.

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up