Viewing 15 posts - 6,421 through 6,435 (of 10,144 total)
No worries Martin.
Here's a wee hint - before you write a query, find out as much useful information as you can from the tables which will be referenced by it....
December 5, 2011 at 8:42 am
How many rows are in the update target table [MOHG_Processing_TestData].[dbo].[Stage2test]?
December 5, 2011 at 8:34 am
The alphanumeric bit sounds interesting. Here's my take on generating a list of insecure PINs:
SELECT
x.PIN, y.InValidCode
FROM (((VALUES (0),(100),(200),(300),(400),(500),(600),(700),(800),(900)) t3 (n3)
CROSS JOIN (VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9))...
December 5, 2011 at 6:48 am
martin.kerr 34088 (12/5/2011)
yes i have and there are 75k that have not been updated
If you run the original SELECT...
select *
FROM MOHG_Processing_TestData.dbo.Stage2test
INNER JOIN MOHG_Processing_TestData.dbo.Country_Transform
ON MOHG_Processing_TestData.dbo.Stage2test.Address1_City = MOHG_Processing_TestData.dbo.Country_Transform.DQCorrection COLLATE...
December 5, 2011 at 5:42 am
Have you checked the target table after the update to see if any values remain unchanged?
December 5, 2011 at 5:33 am
okbangas (12/5/2011)
December 5, 2011 at 5:31 am
martin.kerr 34088 (12/5/2011)
December 5, 2011 at 5:21 am
martin.kerr 34088 (12/5/2011)
so are you saying my update statement will never update what i want to (i.e. the select statement)
It will update just fine, but it's important for you to...
December 5, 2011 at 4:33 am
It doesn't matter if the staging table (the update target) has multiple rows which match the search predicate of the update.
December 5, 2011 at 4:21 am
-- This query will show you which of the cities (which have a match in the staging table)
-- are duped in the source table Country_Transform
-- Query uses WHERE EXISTS to...
December 5, 2011 at 4:12 am
martin.kerr 34088 (12/5/2011)
thanks for this, but both of the statement run fine but i am gaining different results when i am expecting the same number of records
Did you run the...
December 5, 2011 at 3:54 am
Looks like you have multiple matching rows in the country_transform table. Test with this:
SELECT *
FROM MOHG_Processing_TestData.dbo.Stage2test t
INNER JOIN (SELECT DISTINCT DQCorrection FROM MOHG_Processing_TestData.dbo.Country_Transform) s
ON t.Address1_City = s.DQCorrection...
December 5, 2011 at 3:49 am
kyle.doouss (12/2/2011)
Is there a...
December 2, 2011 at 4:51 am
kyle.doouss (12/2/2011)
Execution plan attached. If you walk me through this one then it will...
December 2, 2011 at 3:32 am
DECLARE @Suffix VARCHAR(12)
SET @Suffix = ')'') AS DB2'
SELECT @Suffix
December 1, 2011 at 8:39 am
Viewing 15 posts - 6,421 through 6,435 (of 10,144 total)