Forum Replies Created

Viewing 15 posts - 4,306 through 4,320 (of 5,590 total)

  • RE: help with query to search for 3rd decimal

    declare @test table (col1 numeric(10,4))

    insert into @test

    SELECT 34.0200 UNION ALL

    SELECT 1232.0560 UNION ALL

    SELECT 234.4400 UNION ALL

    SELECT 451232.123

    select * from @test

    where col1 like '%.__[1-9]%'

    This does do an implicit conversion...

  • RE: Are the posted questions getting worse?

    CirquedeSQLeil (4/22/2010)


    Trey Staker (4/22/2010)


    Jason, Congrats. Brent Ozar is talking about you on his Blog[/url] and welcoming you in as a new blogger on SQLServerpedia.com

    Thanks.

    I like the comment he made...

  • RE: Sum of column instead of row

    A picture's worth a thousand words, but setup code is worth more. If you can provide the tables structure via CREATE TABLE statements, and some sample data via INSERT statements,...

  • RE: GROUP BY Query Help

    AndrewSQLDBA (4/22/2010)


    Hope that you don't mind if I take the code apart and figure out how it works, and what it does

    Actually, I think you will find that most people...

  • RE: A DBA's Daily routine (and other items...)

    Grant Fritchey (4/22/2010)


    jcrawf02 (4/21/2010)


    GregoryF: "don't worry about not knowing how many instances/servers there are, every where I have ever worked, no one know all of them, there are some that...

  • RE: Are the posted questions getting worse?

    Gianluca Sartori (4/22/2010)


    Jack Corbett (4/22/2010)


    Gianluca Sartori (4/21/2010)


    I've seen even worse things in my app (Visual Basic):

    Public const SC AS String = "'" 'Yes, you got it right, it's...

  • RE: Truncate rollback

    Hugo Kornelis (4/22/2010)


    Good question. Not sure why it's worth 2 points; knowing that TRUNCATE can be rolled back should be elementary knowledge.

    Abrar Ahmad_ (4/22/2010)


    [font="Verdana"]Goodish, easy hunt. but for the only...

  • RE: A DBA's Daily routine (and other items...)

    GregoryF (4/21/2010)


    jcrawf02 (4/21/2010)


    GregoryF: "don't worry about not knowing how many instances/servers there are, every where I have ever worked, no one know all of them, there are some that are...

  • RE: Median of Two dates

    Matt Miller (#4) (4/21/2010)


    For 2 exactly - the median is the average of the 2 numbers.

    Well, keywestfl9 did say:

    i have a requirement to find median of two date column in...

  • RE: SQL Syntax

    ColdCoffee (4/21/2010)


    Lynn Pettis (4/21/2010)


    Please note that if you write the query the way Coldcoffee showed you it will not take advantage of any indexes that may exist on your table.

    Guess...

  • RE: Checking if a stored procedure paramter is null

    andy behrendt (4/21/2010)


    Hi All,

    I have a stored procedure that requests one parameter which is a bit field. In the stored procedure I want to check if the parameter is...

  • RE: Median of Two dates

    keywestfl9 (4/21/2010)


    i have a requirement to find median of two date column in a table.

    Can anyone suggest how do i achieve it in sql query?

    Thanks for any help

    How's this?

    DECLARE @Date1...

  • RE: Are the posted questions getting worse?

    CirquedeSQLeil (4/21/2010)


    Trey Staker (4/21/2010)


    Brent Ozar ranted on it in his blog.[/url]

    Yeah - I saw that. I like how he began his blog.

    That was indeed a novel way to start...

  • RE: A DBA's Daily routine (and other items...)

    GregoryF (4/21/2010)


    Me, and many of my friends do spend a few hours surfing the web during the day.

    Then, to kill the time surf the web.

    Might I suggest instead of just...

  • RE: Did the way SQL Server 2008 evaluates a CASE WHEN condition when used in a filter?

    Paul White NZ (4/21/2010)


    Well this took off while I was asleep!

    You actually sleep??? When did this change occur? :w00t:

Viewing 15 posts - 4,306 through 4,320 (of 5,590 total)