Viewing 15 posts - 46,486 through 46,500 (of 59,101 total)
Wait a minute! What are you calling a duplicate!? You mean to tell me that no other username can make an entry on that date for that sLevel?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 12:57 pm
The reason it takes so long is because you've not aggregated the data. Please see the following for how to do a proper cross tab...
[font="Arial Black"]http://www.sqlservercentral.com/articles/T-SQL/63681/[/font][/url]
Without some actual test...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 12:48 pm
In the previous post, you wrote ...
The select works to get me the counts. And the idea of the Tally table does make the selects more simplistic. I...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 12:41 pm
Comparing that to the original, it looks like all you were missing was the FROM clause.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 12:27 pm
Kit Brandner (12/22/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 12:24 pm
Can you post what you ended up with, please? Thanks.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 10:38 am
This is what Vladan is talking about...
--===== Move just the data we want to a place where we can work on it
SELECT ISNULL(Sal,0) AS Sal,
...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 5:58 am
GilaMonster (12/22/2008)
Jeff Moden (12/22/2008)
Ohhhhh.... that stuff..... gee... I wonder when they'll come out with an EDI data type? 😛
CREATE TYPE EDIEXTERNAL NAME EDI.[PointlessClrTypes.EDI] ;
:hehe:
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 5:25 am
AnzioBake (12/22/2008)
What happens for for tables that the rows are not in a clustered index with the right order.
Like I said in the article... copy to a temp table and...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 5:14 am
I agree... this one looks like RBAR because it does something for each row... but so do all of the queries built in SQL Server. The difference here...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 5:12 am
AnzioBake (12/22/2008)
You can write an SP that given the Source Table or...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 5:01 am
Hooman Shamsborhan (12/21/2008)
So what I've done so far is not going to help me at all?
I don't believe so... I believe you need to setup a new single partition table,...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 4:50 am
GilaMonster (12/22/2008)
Jeff Moden (12/21/2008)
So, what is it, supposedly?
Spatial, xml, hierarchy, etc. The 'rich' data types that some bright spark in marketing thought meant SQL was evolving beyond a relational database....
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 4:46 am
timothyawiseman (12/21/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 4:42 am
I believe you're looking for ALTER TABLE / SWITCH. There's a few caveats to it, but it's all covered in Books Online.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 21, 2008 at 6:20 pm
Viewing 15 posts - 46,486 through 46,500 (of 59,101 total)