473,467 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

query to compare two dates

1 New Member
plz let me know the query to compare two dates... that ie i want to get the differance between two dates and plz let me know how to get the system date i.e current date in db2
May 30 '07 #1
2 4830
bartonc
6,596 Recognized Expert Expert
Hello kartikkartik. You have posted in the Articles section of this group and may not get a reply here. Please post in the DB2 Forum or wait until a moderator of this group discovers your error and moves this thread for you.

And please don't use 'plz', it drives some experts nuts.

Thanks for joining.
May 31 '07 #2
Hevan
17 New Member
Hi,

Try this

select current date from sysibm.sysdummy1
Jun 1 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jason | last post by:
I have a table of 650,000 records associated to contracts. Some of the contracts have multiple records but each contract only has one Active Record (there might be several inactive records). ...
2
by: Richard New to Access | last post by:
For the Past few days I have been trying to create Query, and everyone I have asked have been obtuse with the help. I am a new to access and still learning, so it is probably that stops me from...
4
by: Jean | last post by:
Hello all, I have the following data (Note: dates in dd-mm-yyyy format) ID DEPT TARGET70 TARGET90 TARGET100 -- ---- -------- -------- --------- 12 ACCT ...
5
by: Tom | last post by:
It appears that you can't compare two dates in DotNet. You must use ToString and compare the strings. Is that the only reliable way? Try this: Dim dteOne As Date =...
7
by: mr.nimz | last post by:
hello, this is antenio. recently i've come to a problem. i got a way through it, somehow, still it left me in a curious state, so i'm posting it here, if i can get an answer from some techy, ...
3
by: prime80 | last post by:
I have a database report that is based on a query that returns actions taken on certain dates. The data looks like this: (The report based on this query is layed out similarly) Date ...
2
by: joeybarbecho | last post by:
hello... I have a program that saves dates. Problem: Given: sample table: Leave ------------------------------------------ ID | UserID | DateFrom | DateTo|...
3
by: ebasshead | last post by:
Hi everybody, I have an access database that books houses for people to stay in. I'm trying to build a query which will find clashes in booking dates, ie it will compare arrival and departure...
2
by: site | last post by:
Have to compare dates of two rows in one table Input table COL1| COL2| COL3| COL4 1| A| 1-Jan-07| 6-Feb-08 2| A| 7-Feb-08| 31-Mar-08 3| A| 1-Jan-09| NULL SQL code to compare COL 4 date (Row...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.