Forum Replies Created

Viewing 14 posts - 46 through 59 (of 59 total)

  • RE: Order by Query

    Hari.Sharma (6/26/2008)

    select * from source

    order by Cast(Left(timecol,2) as int)

    If you add the full timecol to this then it would sort the "6 hours" and "6 hours 30 minutes" properly.

    SELECT...

  • RE: Join Question

    As long as the values in tab2.col2 are unique, this will return the closest match to tab1.col1. Also, this doesn't return anything for values in tab1.col1 that don't match anything...

  • RE: A question about selects.

    I think the JOIN makes it easier for others to understand the code and how the tables are joined. If you have a number of tables joined using a WHERE,...

  • RE: Database SnapShot

    I hate when I don't read the question correctly. I got my logic flipped when I didn't read "not" allowed.

  • RE: Calculate the time based on States in a single table

    I take it that the process is in a certain state from the first record with that state until the first record with a different state or the end of...

  • RE: Cloning

    How many shops don't have a development or testing server to clone it to?

  • RE: Multiple Selects

    Maybe something like this?

    SELECT t1.ItemNumber

    FROM testtable t1

    INNER JOIN testtable t3

    ...

  • RE: Some Questions

    And what are your questions?

  • RE: Query Question

    Here's another approach...

    SELECT Pl.PlayerFirst AS Player,

    COUNT(ALL Sc.Finished) AS Events,

    SUM(CASE

    ...

  • RE: Sort Order - Include Null al last

    When the question of the day is incorrect, everyone keeps posting the same thing over and over. Maybe we should have a standard reply form:

    -------------------------------------------------------------------------------

    I selected A ...

  • RE: Double Check

    It's important for a company to not have someone who is indispensable. It isn't that they have too leverage over a company, it's that they might just quit or, as...

  • RE: Cursors

    ...the sp_describe_cursor_columns requires you to count the number of rows returned...

    Wouldn't that get you the number of columns in the cursor, not the number of rows?

  • RE: Storage Size

    I appreciate the difficulty in creating questions that can withstand the pounding on these forums. I do find it ironic when posters slam the question for being wrong and then...

  • RE: Best Way to Calculate Age

    I originally thought the 1 and 0 were switched but actually, the two comparisons should be >=

Viewing 14 posts - 46 through 59 (of 59 total)