Forum Replies Created

Viewing 15 posts - 661 through 675 (of 1,229 total)

  • RE: Update with except conditon

    drew.allen (1/4/2012)


    ChrisM@home (1/4/2012)


    say there are ten rows with the same VND_ID and only one of them matches the filter?

    You'll need to post sample data illustrating the problem and the desired...

  • RE: Deadlock Issues

    atchristian (1/5/2012)


    That worked! Thanks everyone for the help! Things have been smooth the last 24 hours!

    Compatibility mode? Fantastic 😀

  • RE: Deadlock Issues

    Not sure. Perhaps a column list isn't required with a table source

    USING #TradeVolumes AS Source --(TradeID, AnalysisTypeID, VolumeTypeID, [Hour], [Value])

    other than that, the syntax looks ok.

    I'd recommend writing and testing...

  • RE: Split Function - Comma and/or Space Delimited

    SQLKnowItAll (1/5/2012)


    Cadavre (1/5/2012)


    SQLKnowItAll (1/4/2012)


    Cadavre (1/4/2012)


    Jeff Moden wrote an excellent article on splitters here[/url].

    Thanks for that, but what I am really trying to get at in this post is not an...

  • RE: query help with scheduled dates

    Have a look at the result set from the following query - you should be able to quickly figure out what to do next:

    DECLARE @Today DATE

    SET @Today = DATEADD(dd,1,GETDATE())

    SELECT @Today

    SELECT...

  • RE: Problem during inserting row in a table ( sql server 2005)

    kumar.sachu08 (1/5/2012)


    I know i am fresher....and i am giving interview......i have only 1 years of experience.

    then what should i do....when any interviewer asking like such type of question ?

    Should i...

  • RE: Can we implement Clustered Index on Unique key ?

    kumar.sachu08 (1/5/2012)


    ...How many nonclustered index we can implement on one column like "id" ...

    Why would you want more than one index on the same column?

  • RE: Update with except conditon

    drew.allen (1/4/2012)


    Actually, why are you using a subquery in the first place. Doesn't the following give you what you want?

    UPDATE PLU_1

    SET DSPL_DESCR = replace ([DSPL_DESCR],'"','in')

    WHERE AND DSPL_DESCR LIKE '%"%'

    AND...

  • RE: Update with except conditon

    Probably something in the UPDATE part of your statement. How about posting the whole statement?

  • RE: Split Function - Comma and/or Space Delimited

    Replace comma plus space with comma, then space with comma. Or something similar which works with your data (test it).

    Then use Jeff's splitter.

  • RE: Update with except conditon

    where VND_ID NOT IN (select VND_ID from PLU_1

    Where len(DSPL_DESCR)=40

    AND DSPL_DESCR LIKE '%"%' )

    This is functionally equivalent to Phil's LEFT JOIN.

    You could also use NOT EXISTS as a correlated subquery.

    Your...

  • RE: Performance large table

    Marco V (1/4/2012)


    Hello,

    I got a database with a table (meterdata) which has little of 70 million rows. Often new rows are added to be precise every 15 mins from between...

  • RE: Doing inserts within a select statement?

    erikpoker (1/4/2012)


    Thanks for your replies.

    A merge is not gonna work for me. What i'm looking for is a way to use a function and insert something somewhere within the function.

    And...

  • RE: select Query Issue

    DROP TABLE #Sample

    CREATE TABLE #Sample (ID INT, PID INT, Name VARCHAR(10))

    INSERT INTO #Sample (ID, PID, Name)

    SELECT 1, 0, 'Ad' UNION ALL

    SELECT 2, 0, 'Area' UNION ALL

    SELECT 3, 1, 'List' UNION...

  • RE: Problem during inserting row in a table ( sql server 2005)

    Them's big rows. Can you post the CREATE TABLE script?

Viewing 15 posts - 661 through 675 (of 1,229 total)