Viewing 12 posts - 1 through 12 (of 12 total)
Just quickly looking at your problem. Why don't you include the job_id in your user-table, and then left outer join on both the job_id and the run_date and run_time fields....
October 19, 2011 at 12:17 pm
Try CONVERT(TIMESTAMP, --Your date column--)
and see if that works? I am not too familiar with DB2. So if it doesn't work, my apologies.
September 29, 2011 at 2:04 pm
Congratulations!
And indeed, thank you for all of your insights over the years.
September 14, 2011 at 9:01 am
Lawrence.
It always goes back to the same question, what do we need to accomplish? In some cases CHECKSUM might be a valid option, (I am having a hard time...
May 23, 2011 at 6:59 pm
Lawrence,
Thanks for taking the time to write this.
I however do not totally agree. While in theory you are correct,
best practise is off course to have a update datetime...
May 23, 2011 at 10:38 am
As always my weekend is stacked with fun family outings..
But i will see if i have some time between Kids / basketball and finishing up some work. I will...
September 4, 2008 at 9:06 pm
sorry for the quick and dirty scripting..
but i quickly recreated something similar, so that i could give you the query.
CREATE TABLE [dbo].[tbl_job](
[jobid] [int] IDENTITY(1,1) NOT NULL,
[person_name] [nvarchar](50) NOT NULL,
[address] [nvarchar](50)...
August 28, 2008 at 12:55 pm
Blom,
This should do what you need:
Update s
Set s.load_end_dts = dateadd(ss,-1,(GetDate()))
From dbo.s_gebruikers2 as s
Where s.Load_DTS = (SELECT MIN(x.Load_dts) from dbo.s_gebruikers2 x
...
August 27, 2008 at 8:57 am
Blom, can you give an example, i am not sure i am following you.
When you say key, what is the key? The subquery as i wrote it down gets the...
August 23, 2008 at 5:36 am
Richard, my reply was not directed to you. It was directed towards arjun. Testing would be necessary to determine which method is faster and indeed it all depends.
my previous post...
August 21, 2008 at 11:01 am
I dont think that i agree,
More readable? maybe, but more performant? I dont think so.
If you can show where the performance gains are then i wil be more then...
August 21, 2008 at 5:25 am
If i understand it correctly,
you want to update to the load_end_dts date
where load_dts is the lowest value and where users have more then entry in the table?
i think...
August 20, 2008 at 9:47 am
Viewing 12 posts - 1 through 12 (of 12 total)