Forum Replies Created

Viewing 15 posts - 331 through 345 (of 1,156 total)

  • RE: SELECT certain number of rows

    So Jeff, what do you think which solution is the better solution and do you have a better one yourself?

    You are right, the problem with using ROW_NUMBER slows everything down....

  • RE: Combining Columns into one output field?

    One way is to insert the needed data into a temporary table.

    DECLARE @t TABLE(

    customer1 varchar(25),

    customer2 varchar(25),

    customer3 varchar(25)

    )

    insert into @t

    select 'SMITH','JONES','WILSON' union all

    select 'EDWARDS','SMICKS','SMOKES' union all

    select 'SMITH','TODD','HELP'

    DECLARE @Results TABLE(

    Customer...

  • RE: Tic Tac Toe TSQL Style

    The code has on the main page has been corrected. There was a problem with the code submittion tool that is used to publish

    script code. Somehow the code...

  • RE: Join table to it's self over and over and over....

    You have described your problem, but a solution is still hazy, as I need to see what the actual data looks like. Please post a sample table, with test...

  • RE: SELECT certain number of rows

    Grant that solution you posted is almost identical to the one I use :). I use a different formula to calculate page number, but the same principals exist.

    SET @pgNbr...

  • RE: SELECT certain number of rows

    I would go with the Row_number option.

  • RE: Tic Tac Toe TSQL Style

    It seems when I posted using the web tool, the spacing for the code was altered, among other things. :angry:

    Does anyone know why this is?

    Thanks.

    Adam

  • RE: Tic Tac Toe TSQL Style

    Something happened to the code when I posted it on the site.

    This code works:

    /****** Object: StoredProcedure [dbo].[usp_New_Game] Script Date: 02/23/2008 16:35:24 ******/

    IF EXISTS (SELECT *...

  • RE: Tic Tac Toe TSQL Style

    I'm getting syntax errors left and right. Very strange ones... anyone else?

    What syntax errors are you getting?

    I have incorporated some logic that can only be used in 2005,...

  • RE: Select first row of multiple

    Okay. Keep us posted.

  • RE: Rg: Alter command

    thanks. But this query works only to modify one column. I need the query to modify more than one column at a time. Please send me the query to do...

  • RE: Select first row of multiple

    Based on the sample data and the description you provided. You should be able to mold your query like this.

    declare @t table(

    OH_DOC_TYPE varchar(25),

    OH_DOC_NUM INT,

    OH_PO_NUM INT,

    OH_SUPP VARCHAR(25),

    OH_SRC_QJNUM INT,

    OH_ORDER_VALUE SMALLMONEY,

    OH_ORDER_LINES VARCHAR(25)

    )

    INSERT...

  • RE: Select first row of multiple

    Andy,

    Post your table definition, with some sample data, and we can work this out.

    Thanks.

  • RE: SELECT Statement Question

    Hi GSquared,

    Thank you for your input. I am currently working with a tutor on the finer points before I go fo certification.

    She and I were discussing this very same...

  • RE: Concatenate of strings

    You have a few choices here: The two best being an UDF and the other being XML.

    You can get more information from the following thread. Additionally, Jeff has...

Viewing 15 posts - 331 through 345 (of 1,156 total)