For where you're using the current time and date, like when you're creating or updating a record, it's always better to keep a timestamp instead of separating them.
If the program runs from 11:00 PM on Friday to 1:00 AM on Saturday, you might get a record that has a date of Friday but a time of 1:00 AM. Meaning it looks like it's part of the process.
Alan
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Birgitta Hauser
Sent: Wednesday, July 02, 2014 12:30 AM
To: 'Midrange Systems Technical Discussion'
Subject: AW: SQL table edit code questions
Defining separate date and time fields is possible simply by splitting the timestamp field with Date(YourTimestamp) and Time(YourTimeStamp).
But I'd suggest to keep the timestamp. If you want to split this field into date and time, just add a view with 2 additional columns.
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok) "What is worse than training your staff and losing them? Not training them and keeping them!"
-----Ursprüngliche Nachricht-----
Von: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Jack Tucky
Gesendet: Wednesday, 02.7 2014 02:36
An: 'Midrange Systems Technical Discussion'
Betreff: SQL table edit code questions
Hi All:
I've been using SQL more in my daily work. I'm working with my first table defined using SQL.
Since I have users who like to use Query/400, Is there an equivalent to the EDTCDE DDS keyword that I can use maybe via ALTER TABLE?
I also have a timestamp field in this table, is there a way to define a separate date and time field as well?
I see iDate and and mcpress article for an edit code UDF from Bruce Vining, but will they work with Query?
http://www.mcpressonline.com/programming/apis/the-api-corner-dynamically-edi
ting-a-numeric-value.html
Thanks, Jack
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
--------------------------------------------------------------------------------
Confidentiality Notice: This email may contain confidential information or information covered under the Privacy Act, 5 USC 552(a), and/or the Health Insurance Portability and Accountability Act (PL 104-191) and its various implementing regulations and must be protected in accordance with those provisions. It contains information that is legally privileged, confidential or otherwise protected from use or disclosure. This e-mail message, including any attachments, is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. You, the recipient, are obligated to maintain it in a safe, secure and confidential manner. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you.
--------------------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.