Viewing 15 posts - 91 through 105 (of 727 total)
Everything was working fine but got the requirement change.Idea is:
a. base table can have multiple values of ID based on different books but can have only two values for object...
January 10, 2014 at 3:47 am
Cool. Good one to know though I might use for temporary development only. 🙂
January 9, 2014 at 2:56 am
Coll. Congratulations to all the winners for their contribution to the SQL society. 🙂
January 8, 2014 at 6:55 am
george sibbald (1/2/2014)
Thomas Abraham (1/2/2014)
If a clustered index is dropped by using MOVE TO, any...
January 8, 2014 at 1:47 am
Hi Sean/Kurt, Highly appreciate your help on this. It was a good query. However some conditions changed and there was some extra requirements and I lost focus in between so...
January 7, 2014 at 6:03 am
I'm getting the required data from the following query.
WITH cteMaster AS(
SELECT *,
ROW_NUMBER() OVER(PARTITION BY ID, Book, Party ORDER BY [Type]) rn
FROM #Master
WHERE [Type] IN ('ABC', 'DEF')
),
ctenew AS(
SELECT * FROM cteMaster
where...
January 7, 2014 at 5:59 am
Luis Cazares (1/6/2014)
sqlnaive (1/6/2014)
January 6, 2014 at 11:57 am
There seems to be a catch in your query Luiz.
Say in any case the data does not have any Attribute at all (say Attr2 in our example). In this...
January 6, 2014 at 11:18 am
Luiz, One thing to add here. The master table has around 2 billion records and Details have around 3 billion records.
How will be the performance of your query ?
January 6, 2014 at 11:07 am
It's basically for OLAP environment so no worruies about using nolock. Your query seems good. But what do you think about the performance from the bulk (which i mentioned) perspective...
January 6, 2014 at 10:58 am
Thanks for this query Luiz. Ket me check this out.
January 6, 2014 at 10:33 am
Hi Chris, so far i have written this query:
;with cte_1
as(SELECT ID, Book, Party, count(*) as SumCount FROM table_master nolock
GROUP BY ID, Book, Party having count(*) = 1)
insert into table_final
select tm.ID,...
January 6, 2014 at 10:33 am
twin.devil (1/1/2014)
Bill (DBAOnTheGo) (12/31/2013)
There are only 10 types of people in this world.+10 🙂
+10 🙂
Happy 2014...
January 6, 2014 at 12:22 am
I'll try using blank value rather than NULL in txt file.
January 3, 2014 at 7:07 am
Nice question on 2014. Learnt something today about the new version. Thank you Dr. Diana. 🙂
January 3, 2014 at 1:07 am
Viewing 15 posts - 91 through 105 (of 727 total)