Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: Subtracting datetime fields.?
Oldest Post First
Newest Post First
Author
Message
cbaldwin
Groupie
Joined: 09 Apr 2014
Online Status: Offline
Posts: 81
Topic: Subtracting datetime fields.?
Posted: 17 Apr 2017 at 4:24am
When subtracting 2 datetime fields in a Crystal Command table select statement (statement below)
(dd.draw_start_datetime - d.birthdate)/365.25) as age,
i get data in the following format.
+000000041 22:52:55.890410959
Is there a way to manipulate this to display just the "41"? The 41 represents 41 years.
Note that I have to do this within a Crystal Command table using SQL.
IP Logged
hilfy
Admin Group
Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Posted: 17 Apr 2017 at 6:48am
What database are you connecting to? The syntax will be based what the database is.
-Dell
Proviti, Data & Analytics Practice
www.protiviti.com/US-en/data-management-advanced-analytics
IP Logged
cbaldwin
Groupie
Joined: 09 Apr 2014
Online Status: Offline
Posts: 81
Posted: 17 Apr 2017 at 6:52am
Thank you for taking the time to respond. I received a resolution from an offsite user with the same software.
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum
This page was generated in 0.032 seconds.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.