Forum Replies Created

Viewing 15 posts - 46 through 60 (of 61 total)

  • RE: Update query

    I'm working on it.

    Could one of you guys perhaps elaborate the explanation to David's code a littel bit?

    Regards Joejoe

  • RE: Update query

    Hi there,

     

    Thanks for helping me.

    I just througt that I had solved the problem with this one,

    UPDATE TableX 

       SET ColumnB = CASE WHEN NOT EXISTS

    (SELECT Cast(ColumnA as int) FROM TableX WHERE...

  • RE: String concatentation in bcp

    hi rudy,

    thanks

    I'm an amature, don't really know enough about t-sql.

    But I have learned the following.

    1. run the create proc first

    2. run the...

  • RE: String concatentation in bcp

    Thanks David

    Now the contatention and the naming of the txt files is correct.

    But I get a new error.

    "Cannot add rows...

  • RE: Adress interval into multiple records

    Hi friends

    I'm back from Chrismas and have been doing alot of other suff.

    Ok, I took Charles script  tweeked it a bit (open...

  • RE: Export multiple txt files

    Sounds like a good idea. The problem is that I don't have any experince in programming, but I am very interested in learning it.  

    Never heard about bcp utility before, but I have...

  • RE: Adress interval into multiple records

    Thanks alot Charles.

    I'm going on chrismas vacation today, but I will take a look at it when I'm back in next week.

    Merry chrismas 

  • RE: Adress interval into multiple records

    Ok here is a small sample (there is 2600 records in the original table)

     

    "ID";"House_number_start";"House_number_end";"interval_len"

    16294;601;625;24

    16295;601;625;24

    16296;601;625;24

    16297;601;625;24

    16298;601;625;24

    16299;601;625;24

    16300;601;625;24

    16301;601;625;24

    16303;601;625;24

    16305;601;625;24

    16306;601;625;24

    16307;601;625;24

    16308;601;625;24

    32799;3;27;24

    22394;3;27;24

    22474;3;27;24

    6345;109;134;25

    31244;19;45;26

    3837;1;27;26

    3838;1;27;26

    3839;1;27;26

    31415;25;51;26

    27577;1;27;26

    28184;1;28;27

    22369;40;68;28

    31341;1;29;28

    22367;32;60;28

    3277;46;74;28

    3278;46;74;28

    3279;46;74;28

    17705;25;53;28

    22376;1;30;29

    20180;31;61;30

    31578;1;31;30

    31246;1;31;30

    22162;65;95;30

    24521;2;32;30

    22014;3;33;30

    16918;114;144;30

    16909;114;144;30

    16910;114;144;30

    16911;114;144;30

    16912;114;144;30

    16913;114;144;30

    16914;114;144;30

    16915;114;144;30

    16916;114;144;30

    16917;114;144;30

    16919;114;144;30

    16903;114;144;30

    16904;114;144;30

    16905;114;144;30

    16906;114;144;30

    16907;114;144;30

    16908;114;144;30

    22326;9;39;30

    22370;1;31;30

    19515;170;200;30

    25170;7;39;32

    31343;2;34;32

    33199;2;36;34

    29699;1;36;35

    31738;1;37;36

    21790;198;234;36

    19654;236;272;36

    21877;2;40;38

    21976;1;39;38

    20239;2;42;40

    25959;2;42;40

    22377;5;45;40

    24176;21;63;42

    32364;58;100;42

    32365;58;100;42

    32490;58;100;42

    31825;28;74;46

    25681;17;63;46

    31219;10;58;48

    25684;1;49;48

    19509;5;53;48

    23876;2;52;50

    32973;12;62;50

    35009;1;51;50

    30221;6;56;50

    31914;1;53;52

    32774;22;76;54

    32775;22;76;54

    32758;22;76;54

    20041;2;62;60

    34255;1;71;70

    24810;7;77;70

    31800;101;175;74

    34476;1;76;75

    34477;1;76;75

    22939;8;84;76

    25167;148;224;76

    21875;58;134;76

    11594;262;346;84

    11595;90;174;84

    11596;2;86;84

    11597;348;432;84

    11598;176;260;84

    11599;434;520;86

    3158;7;93;86

    3159;7;93;86

    3161;7;93;86

  • RE: Adress interval into multiple records

    The values are within the database. Here is a screendump of the twelve largest intervals

     

    Regards Joejoe

     

  • RE: Adress interval into multiple records

    Thanks for your reply Charles

    But this will only give the house_number_start and house_number_end, and if there is more than two housenumbers in the...

  • RE: Update through join

    Hi there

    The query I posted before,

    Update Table_A

    Set Table_A.Names = Table_B.Names_Correct

    From Table_A Inner Join

    Table_B On Table_A.Column_1 = Table_B.Column_1 And Table_A.Column_2 = Table_B.Column_2

    It works! - when you have the same design of...

  • RE: Update through join

    Hi Yogi

    Thanks for replying at this hour.

    Well, I'm working with a database which have been build with focus on storing data, not querying.

    So I don't have an ID...

  • RE: Update through wildcard string search

    1000 thanks Razvan

    It works perfect!!

     

     

  • RE: Nested Selection with group

    Thanks alot john!

    It worked perfect.

    (I had to make a new view and make a left outer join with that where key IS NULL.)

  • RE: Update through wildcard string search

    Hi Razvan

    Thanks for your reply

    I tried the query. It runs with out any syntax errors. But it doesn't return any records.

    Then I...

Viewing 15 posts - 46 through 60 (of 61 total)