Forum Replies Created

Viewing 14 posts - 31 through 44 (of 44 total)

  • RE: Tables Join Problem

    Hi.,

    Can you post the table structure with some sample data and your required output..

    Thanks.,

  • RE: Need Help in CTE

    Hi guys i have got the solution for my problem..

    The Following is the coding

    alter procedure Hierarchy

    (

    @m_id int

    )

    as

    begin

    declare @cnt int

    declare @e_id...

  • RE: Need Help in CTE

    Hi GSquared,

    Hope you are not clear with my Question the criteria is if i give the E_id 2 it produce...

  • RE: Need Help in CTE

    WITH Managers AS

    (

    SELECT top 1 E_id, Name, M_id, '' f_name

    FROM Employee_detail

    WHERE M_id IS NULL

    UNION ALL

    SELECT e.E_id,e.Name, e.M_id,m.f_name

    FROM Employee_detail e INNER JOIN Manager m

    ON...

  • RE: Getting the Last Integer values

    Ken it works well ..

    Good Job.

    Thanks for posting the Query.

  • RE: Getting the Last Integer values

    Hi.,

    Hope im correct jus try this and some may come out with an optimized Query.

    DECLARE @NumStr varchar(1000)

    declare @num int

    SET @NumStr = 'T5e3st003';

    set @num=(select PATINDEX('%[A-Z]%[A-Z]%[A-Z]%',reverse(@NumStr)))

    BEGIN

    WHILE PATINDEX('%[^0-9]%',@NumStr)> 0

    SET @NumStr =...

  • RE: Link Input

    Can you Post your Coding.

  • RE: Getting the Last Integer values

    Hi,

    i have a doubt whether the length of this string('Te6st03') will change or its static.

    Thanks.

  • RE: Change look of resultset ... pivot?

    Can you send me some sample records and your table structure.

    And whats your expected result.

  • RE: Update-records by passing XML values

    Ya you are correct i have modified that now it's working fine

    Thaks for your response

    Thanks

    Chandru

  • RE: Update

    Hi steve,

    Yes you are correct that was the mistake i made .Thanks for your kindly help..

  • RE: Update

    Hi,

    I have made some changes in that coding

    alter procedure upd_screen_optional_data

    (

    @xmldoc ntext,

    @option_id int

    )

    as

    begin

    declare @v_error_no int

    declare @xml_hnd INT

    EXEC sp_xml_preparedocument @xml_hnd OUTPUT,...

  • RE: Insert Script

    Thanks John,

    I got the idea about Excel CONCATENATE function ..

    Thanks for your kindly help..

  • RE: Insert Script

    Thanks John I can understand the insert statement well and im trying to use one time import , i dint get any idea about Excel CONCATENATE function to build...

Viewing 14 posts - 31 through 44 (of 44 total)