Forum Replies Created

Viewing 15 posts - 1,801 through 1,815 (of 1,920 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: find foreign key colum using the primary key value

    kavali.ongole (4/12/2010)


    Please let me know if you want more information on this.

    Yes!!

    Buddy,please go through this following article and helping us help you?? πŸ™‚

    FORUM POSTING ETIQUETTES - JEFF MODEN[/url]

    When u do...

  • RE: find foreign key colum using the primary key value

    Kavali, will your customer be providing the table name for which they will be giving the column value ???

  • 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: find foreign key colum using the primary key value

    Will you be passing the column name or the value for a column? it will be terribly to find every relationship with just a single interger value...

    please throw more light...

  • 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...

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