Viewing 15 posts - 376 through 390 (of 557 total)
Grant Fritchey (6/16/2014)
If filtering on tableA is what you needed, just do that. The INNER JOIN will take care of the rest.
Thanks for you response, offcourse this was a 'simplyfied'...
June 17, 2014 at 10:03 am
Hello all,
Thanks for your contributions and sorry for not responding.
This weekend I had a fall and have a head injuri. In a few days time everything should be back...
April 28, 2014 at 7:31 am
gbritton1 (4/25/2014)
Assuming A and B have the same schema:
select * from A
except
select * from B
Thank you this is exactly what I was looking for.
Ben
LutzM (4/25/2014)
April 25, 2014 at 6:36 am
mister.magoo (4/21/2014)
April 22, 2014 at 9:50 am
J Livingston SQL (4/19/2014)
maybe food for thought....the random data is a bit simplistic...but relatively large.
not sure if this meets your requirements.
First thanks for your contribution.
In your solution, the Target table...
April 21, 2014 at 3:23 am
J Livingston SQL (4/19/2014)
[p](Code is used for more than 60 or 70 tables in three different databases).[/p]
out of curiosity....whats the reasoning behind this proc?
Code is used for several reasons.
Mostly to...
April 19, 2014 at 8:46 am
mister.magoo (4/19/2014)
April 19, 2014 at 8:21 am
mister.magoo (4/19/2014)
You definitely used an outer apply, and...
April 19, 2014 at 7:04 am
mister.magoo (4/19/2014)
April 19, 2014 at 6:24 am
spaghettidba (4/19/2014)
Oh, I see what you mean.Try this:
Tried the solution.
And I am trying to understand the solution.
First the solution does not work if the target table is larger than the...
April 19, 2014 at 4:53 am
spaghettidba (4/18/2014)
Well, it worked on the sample data you provided.If you gave us more significant sample data, maybe someone could come up with something better.
Both tables where of the same...
April 18, 2014 at 5:42 pm
print '-- Start of use_value.full_name_txt : '+convert(varchar(30),getdate(),126)
--
-- Get the max from the use_value table.
--
declare @Max_number int
select @max_number = count(*) from use_value
print 'number use_value, full_name_txt :'+convert(varchar(10), @max_number)
;
WITH
T...
April 18, 2014 at 1:25 pm
ben.brugman (4/18/2014)
spaghettidba (4/18/2014)
WITH T1 AS (
SELECT *, randowCol = NEWID()
FROM Target
),
T2 AS (
SELECT *, RN = ROW_NUMBER() OVER (ORDER BY randowCol)
FROM T1
)
UPDATE T2
SET full_name_txt = (SELECT column1 FROM Use_value V...
April 18, 2014 at 1:08 pm
spaghettidba (4/18/2014)
WITH T1 AS (
SELECT *, randowCol = NEWID()
FROM Target
),
T2 AS (
SELECT *, RN = ROW_NUMBER() OVER (ORDER BY randowCol)
FROM T1
)
UPDATE T2
SET full_name_txt = (SELECT column1 FROM Use_value V WHERE...
April 18, 2014 at 10:23 am
ScottPletcher (4/18/2014)
You don't want to modify the target table structure, as that will have lots of overhead.
Actually adding a RND column to the table, using it and removing it hardly...
April 18, 2014 at 9:43 am
Viewing 15 posts - 376 through 390 (of 557 total)