Forum Replies Created

Viewing 15 posts - 1,801 through 1,815 (of 1,917 total)

  • RE: Select a string when data in the string varies

    bill.brazell (4/12/2010)


    Perhaps there is an easier way to do this altogether. I'm open to any suggestions. Thanks in advance for the help!

    Yes there will be... but before that,...

  • RE: From View to Table

    Try this if it works for you?

    The below will copy the table structure as well as the data from

    DATABASE_A.SCHEMA_NAME.TABLE_NAME to DATABASE_B.SCHEMA_NAME.TABLE_NAME

    SELECT COLUMN_1,COLUMN_2, ETC ETC ETC

    INTO DATABASE_B.SCHEMA_NAME.TABLE_NAME

    FROM DATABASE_A.SCHEMA_NAME.TABLE_NAME

    The below...

  • RE: TSQL Lookup using BETWEEN (Ip Addresses)

    You have given create table statements, alrgiht, but what of the sample data and a more clearer requirement mate?

    how about you going through this following article and helping us help...

  • RE: grouping from resultset?

    1. Use ROW_NUMBER() function to dynamically allocate "ranks" to the result set (ORDER BY your column of course)

    2. Handle the top 20 in your WHERE clause, like, WHERE ROW_NUMBER BETWEEN...

  • RE: how to write query for getting Top3 rows from each userId

    Something like this will help you

    WITH CTE(ROW_NUM , ID) AS

    (

    SELECT ROW_NUMBER() OVER(ORDER BY USERID) ROW_NUM, USERID FROM YOUR_TABLE

    )

    SELECT ROW_NUM, ID FROM CTE WHERE ROW_NUM IN (1,2,3)...

  • RE: A thank you for all who assisted me today and in the past weeks

    Any poster who posts al the necessary scripts that will make the people here ready to find a solution , are awesome too..

    So whenever u post, post the full requirement...

  • RE: Select Query

    Hey vaibhav...

    Tel me if this is the code u wnated

    ;WITH I_AND_U (ID)

    AS

    (

    SELECT

    DISTINCT s.ID

    FROM #Schedule_Audit s

    INNER JOIN

    (

    ...

  • RE: Select Query

    Vaibhav, pls correct me if my understanding is wrong

    1. You need "I" rows that have atleast one "U" and present them.

    2. For any "I' row that dont have a corresponding...

  • RE: How to β€˜shuffle’ column data along to remove empty strings.

    Hi Buddy,how about you going through this following article and helping us help you?? πŸ™‚

    FORUM POSTING ETIQUETTES - JEFF MODEN[/url]

    When u do so, i am sure a lot of us...

  • RE: Select Query

    Vaibhav, can you give us some sample output rows inline with your sample data u have provided.. some visual representation of how your desired result set must be...

  • RE: sort order

    Hey padmaja,

    how about you going through this following article and helping us help you?? πŸ™‚

    FORUM POSTING ETIQUETTES - JEFF MODEN[/url]

    When u do so, i am sure a lot of us...

  • RE: Return the Text between the () from a varchar (50)

    Hey buddy, here is one piece of code.

    I think Lowell and steveb. let out one tiny thing in your request , that is, to add the part of the string...

  • RE: How to calculate ranks or position?

    WayneS (4/9/2010)


    Nuts, do you see how things work better when you supply code that shows the problem? A lot of people that wouldn't bother with your problem suddenly jump in...

  • RE: Is it possible to findout the files in SQl server?

    xp_Dirtree , an extended stored procedure looks like a very good option to check for the files and folder in directory. πŸ™‚

  • RE: How to calculate ranks or position?

    I think nguyennd has got the code you wanted...

    Cheers!!

Viewing 15 posts - 1,801 through 1,815 (of 1,917 total)