Viewing 15 posts - 46 through 60 (of 114 total)
Again your sample data doesn't have any duplicates. The output you displayed is exactly what's in the sample data.
March 3, 2011 at 11:26 am
For my solution, I assumed Team ID was not required or that it was just a typo of the data. If my assumptions were both wrong, then yes, we...
March 3, 2011 at 8:25 am
I believe you could just group the information:
select sno, name, case, max(datetime) as MaxDate
from tablename
group by sno, name, case
March 3, 2011 at 7:44 am
oops...i just noticed the last line of your first post.
sorry about that.
March 2, 2011 at 12:47 pm
why would you do this? I would think you would just change the compatibility of the database that needs SQL 2005 to SQL 2005.
March 2, 2011 at 12:45 pm
are you running them on the same database server or is one test and the other production?
March 2, 2011 at 12:44 pm
same answer as your other post. Look at Rank() or row_number().
March 2, 2011 at 12:42 pm
Look at using the Rank() function and select a RanK() <= 3.
March 2, 2011 at 12:41 pm
run profiler using the locks counters. There is a default TSQL_Locks template...try that. You should get your sql in question.
March 2, 2011 at 9:59 am
To answer your question: "is this design OK?"
Yes and No. There are different approaches to storing historial data and different needs on accessing historical data. Not...
March 2, 2011 at 7:42 am
I think you are asking for a SELECT that changes the values of the data during the SELECT process, but does not update the actual table....correct? If that is...
March 1, 2011 at 1:34 pm
ok then...do this... (use the query i sent you as a subquery...then collapse the columns) -- typing as i think
SELECT DataType,
MAX(CASE
WHEN DataType in ('CURRENCY','NUMBER') THEN CAST(MaxNumer as varchar)
WHEN...
March 1, 2011 at 1:26 pm
use the dbcc sqlperf(logspace) command...
if you want to monitor it, create a table and insert the results from the command into the table.
March 1, 2011 at 1:06 pm
First off...yes this is the WRONG way to do things.
You won't be able to do it in a single field, but you can do it with multiple fields...
March 1, 2011 at 1:04 pm
Viewing 15 posts - 46 through 60 (of 114 total)