Viewing 15 posts - 31 through 45 (of 61 total)
Of course,
CREATE TABLE [W] (
[GT] [char] (10) COLLATE Danish_Norwegian_CI_AS NULL ,
[PKNumber] [int] IDENTITY (1, 1) NOT NULL ,
CONSTRAINT [PK_W] PRIMARY KEY CLUSTERED ([PKNumber])
July 4, 2005 at 3:20 pm
Ok, I give up. I have been trying to rewrite your code but I can't figure it out.
How should this part look like...
July 4, 2005 at 3:06 pm
Once again thanks Remi
The 12 different examples of values with zero/zero's in the beginning is only a small part of the possible combinations 5724 all in...
July 4, 2005 at 2:24 pm
Thanks Remi!
I have been working with your reply for some time now.
But I need a littel bit elaboration on it.
First I have a tabel (A) with some 9000 rec. One...
July 4, 2005 at 2:02 pm
Thanks Noel
This is driving me crasy. You got it right, I just have to find out what goes wrong at my server.
Thanks alot
April 21, 2005 at 2:25 pm
Hi Noeld,
It's a mistery, when I run your code on the test data it gives me 184 records, when I run it on the tables with the whole dataset it...
April 21, 2005 at 7:26 am
Hi Noeld,
Are you getting 1654 records with AreaCode2 values, or are you getting Nulls also?
Is it an inner join or a left join?
Regards Joejoe
April 21, 2005 at 1:59 am
Hi noeld,
This only gives me 184 records, I need the 1645 records from TableA with AreaCode2.
I don't know about using >= and =< when the value consist of both...
April 20, 2005 at 6:49 am
It's not possible to post zip-files or is it?
I admit that it was a bit overkill (I paniced).
I even made an error. There shouldn't be any StreetCode 1 in TableB (please delete the...
April 19, 2005 at 2:49 pm
Hi Frank,
Here is some testdata. It all fits, I have choosen all the data for 8 different streets, in this way both tables is complete. There different types of relations,...
April 19, 2005 at 8:13 am
I was missing a parenthese. This is how is should look like,
UPDATE TableX
SET ColumnB = SUBSTRING('EU', (Cast(Left(ColumnA, 3) as Int) % 2)+1,1)
Thanks alot for the help (All of you)
April 19, 2005 at 1:26 am
Thanks noeld!
Vladan you are right, the 3 first characters are allways numbers.
But when I run the code noeld posted it comes up with this,
Server: Msg 174, Level 15, State 1, Line...
April 19, 2005 at 1:08 am
Thanks for the explanation Vladan!
When I run David's code it says;
Server: Msg 245, Level 16, State 1, Line 1
Syntax error converting the varchar value '160A' to a column of data...
April 18, 2005 at 1:50 pm
Viewing 15 posts - 31 through 45 (of 61 total)