Viewing 15 posts - 10,606 through 10,620 (of 15,381 total)
mick burden (9/25/2012)
That works well, thank you, but I need it to go across all the fields at once, adding all the data to a single table or recordset
So then...
September 25, 2012 at 7:49 am
saltpepo (9/25/2012)
Declare @asd nvarchar(100)
select @asd=Field1 from Test where create_dt='24/Sep/2012'
Select Data as...
September 25, 2012 at 7:47 am
And of course if the exact rows matter this can get a LOT more challenging because there may be more than 1 pair where the sum is the total you...
September 24, 2012 at 2:29 pm
SQL_beginner1 (9/24/2012)
Yes, that worked!! 🙂
So can I take way the following as a rule?
"Don't fully qualified the column that needs to be updated (in a scenario like...
September 24, 2012 at 12:53 pm
L' Eomot Inversé (9/24/2012)
Sean Lange (9/24/2012)
I don't understand what you are getting at, Sean.
Tom I was typing before I really understood the question completely. Maybe if I had used the...
September 24, 2012 at 11:35 am
I don't understand what you are getting at, Sean.
Tom I was typing before I really understood the question completely. Maybe if I had used the word history instead of audit...
September 24, 2012 at 11:25 am
Oh I think I see your error. You fully qualified the column to update which I think will not work. If Lynn's does not work try this one. Although he...
September 24, 2012 at 11:02 am
Gazareth (9/24/2012)
Sean Lange (9/24/2012)
I think you are just overthinking it.
Ha, almost certainly!
Thanks for your input Sean, just had a nagging thought at the back of my head that I can...
September 24, 2012 at 10:46 am
SQL_beginner1 (9/24/2012)
September 24, 2012 at 10:44 am
SQL_beginner1 (9/24/2012)
Is this a view or a table?
RR_GMC.RCA.dbo.UDBSourceData
Lynn, it's a table.
Both the source and the destination tables have the same columns, and I need to update the column coreprocesstoken18 in...
September 24, 2012 at 10:32 am
Gazareth (9/24/2012)
Sean Lange (9/24/2012)
September 24, 2012 at 10:31 am
I too suspect this is a view. What does this return?
select top 1 *
FROM ContractData AS cd
INNER JOIN
(select accountnumber, sourcesystem, effectivedate, siccode, coreprocesstoken18
from RR_GMC.RCA.dbo.UDBSourceData
where sourcesystem = 'CAN'
and effectivedate = '6/30/2012')...
September 24, 2012 at 10:21 am
I see you are pretty new around here. For this type of thing it really requires that you post ddl (create table statements) and sample data (insert statements) along with...
September 24, 2012 at 10:15 am
Gazareth (9/24/2012)
I seem to recall from my database design classes a while back, being told that a link table with just a datetime field in wasn't really a link table.
I've...
September 24, 2012 at 10:11 am
chinn_chris (9/24/2012)
September 24, 2012 at 10:03 am
Viewing 15 posts - 10,606 through 10,620 (of 15,381 total)