Forum Replies Created

Viewing 15 posts - 976 through 990 (of 2,452 total)

  • RE: Happy New Year 2016

    Wayne West (1/4/2016)


    Steve, I'd like to see your code because I can't duplicate it. I ran the following:

    DECLARE @HashThis VARCHAR(20) = 'January 1, 2016';

    SELECT 'MD2' AS HashType, hashbytes('MD2',@HashThis) AS...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Best solution for compounded update?

    robert-819720 (1/1/2016)


    Fascinating and brilliant solution Alan. I really value your effort on this.

    I do believe that there is one significant caveat with the Quirky Update (just love the name it...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: How to update on target table with source table

    Hi

    Thanks for scripts.

    Please see code below, where I have added an IDENTITY column to each table to help determine which rows are which.

    I think I need some more explanation on...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: need to help query

    seems very similar request to one posted earlier today

    http://www.sqlservercentral.com/Forums/Topic1748862-3077-1.aspx

    ??

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Defining unique sets of records in a dataset

    please read the following document and then post back with DDL/sample data and expected results.

    http://spaghettidba.com/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum

    if you provide the setups, then you are far more likely to get a tried and...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: How to update on target table with source table

    tibco29 (12/31/2015)


    Please find attached document,will let to know about Input and output as well

    please read the following document and then post back with DDL/sample data and expected results.

    http://spaghettidba.com/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Help with a query, plz

    just to be clear...what records do you want returned....you have not provided any sample data so...here is a quick mock up

    CREATE TABLE NurserySchool(

    ID ...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: LEAP and LAG behind the scenes

    Jeff Moden (12/23/2015)


    I don't know what goes on behind the scenes but I do know that, whatever they did, it makes for relatively slow running totals. :crazy:

    Jeff...if I recall someone...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Getting analysis sums for each row in a table

    Hi...think some scripts / sample data and expected results will help please.

    see here for good practice

    http://spaghettidba.com/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum/

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: sp_send_dbmail

    [ @recipients = ] 'recipients'

    Is a semicolon-delimited list of e-mail addresses to send the message to

    can you tell us a little more about what you are trying to do

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: how to dispaly subtotals

    dastagiri16 (12/19/2015)


    If I have two columns..I m not able to get the desired result in rollup

    suggest you provide some sample data and expected results

    http://spaghettidba.com/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum/

    seems you asked a very similar question...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: how to dispaly subtotals

    this article may help you

    http://www.databasejournal.com/features/mssql/using-the-rollup-cube-and-grouping-sets-operators.html

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Checking Multiple Fields in a Table

    some sample data will help please

    please see this post

    http://spaghettidba.com/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum/

    can you explain a little more as to why you allow multiple race choice....??

    EDIT...seems that Luis has very kindly done the...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Get previous row's value - with a twist!

    mm7861 (11/18/2015)


    Yes agree that LAG LEAD cannot add rows. I've managed to amend the CTE suggestion to work how I need it, a long with the outer join approach. Basically...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Get previous row's value - with a twist!

    mm7861 (11/17/2015)


    At the moment we are using data from 1st September 2015, and have about 180,000 rows that are made up of 10,000 unique assets.

    ok....so will each unique asset have...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

Viewing 15 posts - 976 through 990 (of 2,452 total)