Viewing 15 posts - 616 through 630 (of 1,248 total)
I don't know what your data looks like but that will only work for an eight character postcode. If you take the rightmost eight characters of your string you will...
September 9, 2015 at 3:00 am
SELECT
ltrim(right(postalcode,charindex(' ',reverse(postalcode),PATINDEX('% %',reverse(postalcode))+1)))
FROM yourdata
I've tested this over 14500 county+[space]+postcode combinations and the only ones it didn't work on were cases where there was no space in the...
September 8, 2015 at 8:03 am
A correctly formed postcode can be 7 or 8 characters - eg SW1A 4WW so change RIGHT(PostalCode, 7) to RIGHT(PostalCode, 8) and LTRIM the result
Postcodes can be 6,7 or 8...
September 8, 2015 at 7:30 am
Pack_Star (9/8/2015)
Most of the records in this column are correct i.e. NN4 0NB (two strings separated with a space), Then occasionally I return corrupt records i.e. Derbyshire S42 5BX (three...
September 8, 2015 at 7:02 am
Eirikur Eiriksson (8/27/2015)
Thank you for this interesting question Hugo.😎
Slightly taken aback seeing the overall results though
Correct answers:6%Incorrect answers:94%
I suspect that's got something to do with how people have researched this....
August 27, 2015 at 2:35 am
Alvin Ramard (8/3/2015)
Ed Wagner (8/3/2015)
Sean Lange (8/3/2015)
August 3, 2015 at 8:08 am
Sean Lange (8/3/2015)
August 3, 2015 at 8:06 am
TomThomson (8/3/2015)
August 3, 2015 at 6:46 am
Not only do none of the answers appear to be correct but the the explanation does not match the options.
The correct answer is Query 2, with the MODIFY FILE option...
August 3, 2015 at 1:16 am
SQLRNNR (7/27/2015)
Toreador (7/27/2015)
SQLRNNR (7/25/2015)
Well, if the view does not exist or is in a different schema, then the third option is correct even though it truncated part of the error....
July 28, 2015 at 12:50 am
Phil Parkin (7/27/2015)
Brandie Tarvin (7/27/2015)
TomThomson (7/26/2015)
Grant Fritchey (7/26/2015)
Managed to get a fully-loaded station wagon (four people plus bags) all the way up to 120MPH (195KPH) on the Autobahn.
Don't get caught...
July 27, 2015 at 5:44 am
It's home made quesadillas here. There may well be room for tequila 🙂
July 24, 2015 at 10:49 am
Viewing 15 posts - 616 through 630 (of 1,248 total)