Forum Replies Created

Viewing 15 posts - 136 through 150 (of 626 total)

  • RE: Converting Stored Procedure to Function

    Check out the section under Limitation and Restrictions. https://msdn.microsoft.com/en-us/library/ms191320.aspx 
    I have to ask what are you trying to get out of a UDF that you are not getting...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Get unique data

    With this single column the only thing you could specify is alphabetical order (or reverse). Does the table have any other columns? Identity? Timestamp?

    EDIT: Here is an example of...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Database Size After Deleting 200-million rows

    Eirikur Eiriksson (12/7/2016)


    Eric M Russell (12/7/2016)


    Think of a database table as a library shelf containing books. When you pull a book from the shelf, the self doesn't get smaller. It...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Today's Random Word!

    Manic Star (11/30/2016)


    Grumpy DBA (11/30/2016)


    crookj (11/30/2016)


    Ed Wagner (11/30/2016)


    The End

    The Doors

    Knobs

    Knees

    Weak


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: A scenario where SQL Server doesn't seem to help

    Is this against a production database? Sounds like you need a Data Warehouse solution (OLAP).


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Looking for a smarter script to do this query

    halifaxdal (11/25/2016)


    Thank you very much.

    Your script use MAX instead of SUM, is it a typo or is there any consideration?

    New testing result:

    1. The new script (MAX or SUM) returns incorrect...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Looking for a smarter script to do this query

    halifaxdal (11/25/2016)


    Thank you very much for the revised script which is amazing, the result returns lots of NULL for WeekNo fields, how can the script be modified to get that?

    I...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Looking for a smarter script to do this query

    Unless you were using the WeekTable to filter weeks then you technically don't need it. Either way since the values didn't line up I didn't end up using it.

    Here...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Looking for a smarter script to do this query

    Thank you, that is much better. Notice though your second script has a syntax error.

    It should 'VALUES' NOT 'VALUE'

    Unfortunately, because of the delay I won't be able to look...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Looking for a smarter script to do this query

    While I do appreciate the effort that is not what I mean. You should post code that will allow me to query the data directly.

    If you need an example...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Looking for a smarter script to do this query

    You can do this using Dynamic SQL with a Crosstab. If you'd be willing to provide consumable data I could give you an example on how to do that.


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Retrieving looked up values when writing data from ms access to sql server

    The following code has two purposes.

    1. It demonstrates an example on how to post code so that we can help you. (Please read previously provided link for more info)

    2....


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Are the posted questions getting worse?

    Eirikur Eiriksson (11/24/2016)


    Y.B. (11/24/2016)


    Damn....we have a water dispenser. LOL :w00t:

    No cooler? No sparkling water?? No bubbly wine??? No waiter???? No sommelier?????

    😎

    Yeah, they had to let go of the sommelier a...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Are the posted questions getting worse?

    Damn....we have a water dispenser. LOL :w00t:


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Are the posted questions getting worse?

    Luis Cazares (11/18/2016)


    Dear Santa,

    I know you won't be able to bring me a new laptop this year, but could you just bring more RAM (and a new HDD) for my...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

Viewing 15 posts - 136 through 150 (of 626 total)