Viewing 14 posts - 46 through 59 (of 59 total)
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...
June 26, 2008 at 7:59 am
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...
June 26, 2008 at 7:49 am
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,...
June 26, 2008 at 7:11 am
I hate when I don't read the question correctly. I got my logic flipped when I didn't read "not" allowed.
June 26, 2008 at 7:01 am
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...
June 25, 2008 at 8:33 am
How many shops don't have a development or testing server to clone it to?
June 25, 2008 at 7:18 am
Maybe something like this?
SELECT t1.ItemNumber
FROM testtable t1
INNER JOIN testtable t3
...
June 24, 2008 at 2:52 pm
Here's another approach...
SELECT Pl.PlayerFirst AS Player,
COUNT(ALL Sc.Finished) AS Events,
SUM(CASE
...
June 24, 2008 at 12:50 pm
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 ...
June 23, 2008 at 7:19 am
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...
June 18, 2008 at 7:30 am
...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?
June 18, 2008 at 6:55 am
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...
April 9, 2008 at 8:08 am
I originally thought the 1 and 0 were switched but actually, the two comparisons should be >=
March 6, 2008 at 7:32 am
Viewing 14 posts - 46 through 59 (of 59 total)