Forum Replies Created

Viewing 15 posts - 6,571 through 6,585 (of 15,381 total)

  • RE: Date range query problem

    Aside from the obvious MySql you have the word WHERE twice. You can't have two where clauses in a single query. You can have multiple condition. Remove the second WHERE...

  • RE: Strange behavior with nolock hint

    Keith Tate (10/8/2013)


    If everything is working fine without the NOLOCK hint why do you still want to use it? NOLOCK has the potential to get you "dirty" matches.

    NOLOCK has far...

  • RE: trying to create a table - unpivot

    astrid 69000 (10/8/2013)


    Thanks for your help.

    I did a few changes on the query, but i am still encountering a few problems.

    it is not summing the clickcount, i do get a...

  • RE: I dindn't understand how this query works?

    Please respond to the forum not a private message. That way others who may have the same issue can understand as well.

    Think about ordering book titles by name.

    Alphabet

    Axe Murdering...

  • RE: I dindn't understand how this query works?

    amolsingh9372 (10/8/2013)


    select * from empolyee where name > 'ax'

    IDNAME SALARY DEPT PREVIOUS_SAL

    1 amol singh 2000...

  • RE: trying to create a table - unpivot

    astrid 69000 (10/8/2013)


    i am trying to get

    on the columns the dates

    on the rows the hours (from those dates)

    and the sum of the clicks as a measure.

    the same i gave has...

  • RE: trying to create a table - unpivot

    For anybody else coming along here is the sample data in a format that is consumable.

    CREATE TABLE clicks (RecordDay datetime, ClickCount INT)

    GO

    INSERT INTO clicks (RecordDay, ClickCount)

    select '2013-10-05 13:23:44', 2 union...

  • RE: trying to create a table - unpivot

    Excellent. Now what I don't understand is what do you want from this sample data?

  • RE: LOCK/Wait on Begin Tran and Commit

    prb (10/8/2013)


    Hi,

    We have a script with insert statements in between BEGIN TRANSACTION and COMMIT.The data from those insert statements should populate few tables. When two of us run the script...

  • RE: trying to create a table - unpivot

    Your post is lacking any level of detail required for anybody to understand the problem, let alone the question. In order to help we will need a few things:

    1. Sample...

  • RE: sp_generate_inserts

    I am not really sure what you are trying to do or what the question is.

  • RE: Update Based on Select with Multiple Returns

    cmcfarland 51322 (10/8/2013)


    Good Morning!

    I'm trying to update a column based on a WHERE statement that uses a SELECT statement as the qualifier.

    My goal is to find duplicate records in my...

  • RE: error when add and update in sp

    SrcName (10/7/2013)


    you can make this on this way

    alter procedure w AS

    exec('ALTER TABLE t ADD x char(1)')

    exec('UPDATE t set x = 1')

    But you can run only once. next time will be...

  • RE: How to rename a column in all tables and views

    babak3334000 (10/7/2013)


    :w00t: Thank You So Much Master :w00t:

    Always be healthy " Sean Lange "

    Glad you were able to figure it out. 😛

  • RE: Order with unpivot

    Nevyn (10/7/2013)


    It appears that unpivot sets the sort order according to the order given in the IN clause, which is what you want anyway.

    If you don't trust that, or something...

Viewing 15 posts - 6,571 through 6,585 (of 15,381 total)