Forum Replies Created

Viewing 15 posts - 391 through 405 (of 1,229 total)

  • RE: Suggestion to avoid Cursor

    -- if this returns a few thousands of rows or more;

    SELECT RTRIM(referencia) referencia FROM arttamcor GROUP BY referencia

    -- then consider setting it up as a temp table:

    SELECT RTRIM(referencia) referencia

    INTO...

  • RE: Get last row based on duplicate column

    This has already been answered but it's interesting that the logical requirement exactly matches an existing function which isn't used in any of the solutions offered. What you're looking for...

  • RE: Split without delimiter based on position

    yuvipoy (10/22/2012)


    Ok, thanks. Can you give an example of how the data from this output table would be used please?

    ChrisM as i have said i am having some business logic's...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (10/22/2012)


    ChrisM@home (10/22/2012)


    L' Eomot Inversé (10/22/2012)


    Stefan Krzywicki (10/22/2012)


    Brandie Tarvin (10/22/2012)


    [font="Comic Sans MS"]The PI! It needs more slices![/font]

    You know what I hate about pie charts?

    You can never tell what...

  • RE: Split without delimiter based on position

    yuvipoy (10/22/2012)


    Ok, after you have done 2) insert into a table, what uses the table? A report, perhaps?

    NO This is not a report one i need to join some tables...

  • RE: How to convert the integer value to datetime

    sanjay.dakolia (10/22/2012)


    this value was suppose to be datetime but by mistake the column datatype was given integer so now i want to convert it back to datetime

    What date does 1157068800...

  • RE: Are the posted questions getting worse?

    L' Eomot Inversé (10/22/2012)


    Stefan Krzywicki (10/22/2012)


    Brandie Tarvin (10/22/2012)


    [font="Comic Sans MS"]The PI! It needs more slices![/font]

    You know what I hate about pie charts?

    You can never tell what filling they're using....

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (10/22/2012)


    Brandie Tarvin (10/22/2012)


    [font="Comic Sans MS"]The PI! It needs more slices![/font]

    You know what I hate about pie charts?

    You can never tell what filling they're using. And it's awfully...

  • RE: Split without delimiter based on position

    yuvipoy (10/22/2012)


    The string splitting would ideally be in the stored procedure, so you would have parameters @str and @pos for the stored procedure.

    Where do @str and @pos come from?

    What will...

  • RE: here i just want update the indexnumber of a question table after deleting some question from that table ?

    -- sample data setup

    DECLARE @question table

    (

    questionid int identity(1,1),

    questionbank uniqueidentifier,

    indexnumber int,

    question varchar(20),

    crdate datetime

    )

    insert into @question

    select 'B7152F93-45CE-4485-9672-7E0E5F62F775',1,'q1',GETDATE() union all

    select 'B7152F93-45CE-4485-9672-7E0E5F62F775',2,'q2',GETDATE() union all

    select 'B7152F93-45CE-4485-9672-7E0E5F62F775',3,'q3',GETDATE() union...

  • RE: Split without delimiter based on position

    yuvipoy (10/22/2012)


    create procedure @str varchar(1000),@param int

    as

    begin

    .

    .

    i am having values in splitter table so there is no need of @pos here we can directly take the value from...

  • RE: Split without delimiter based on position

    yuvipoy (10/22/2012)


    We know all of this already. What can you tell us about

    1. The process which generates these two strings - where do they come from?

    2. How the data is...

  • RE: Split without delimiter based on position

    yuvipoy (10/22/2012)


    Starting from my first post i will cont.. here...

    We know all of this already. What can you tell us about

    1. The process which generates these two strings - where...

  • RE: Split without delimiter based on position

    yuvipoy (10/22/2012)


    @pos may increase or decrease if it increase i need to create my testtable accordingly ,here it is 6 splits so i am having 6 columns later i may...

  • RE: Split without delimiter based on position

    yuvipoy (10/18/2012)


    hey it has worked thanks

    now the thing is i need to insert this data into a table

    my table is

    create testtable (Rid int identity(1,1),col1 int,col2 int,col3 int,col4 int,col5 int,col6 int)

    i...

Viewing 15 posts - 391 through 405 (of 1,229 total)