Forum Replies Created

Viewing 15 posts - 91 through 105 (of 727 total)

  • RE: Complex Query. Please help

    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...

  • RE: DBCC CHECKIDENT

    Cool. Good one to know though I might use for temporary development only. 🙂

  • RE: Who won the Tribal Awards?

    Coll. Congratulations to all the winners for their contribution to the SQL society. 🙂

  • RE: Dropping indexes

    george sibbald (1/2/2014)


    Thomas Abraham (1/2/2014)


    Got it wrong as I was using http://technet.microsoft.com/en-us/library/ms176118.aspx as a reference and it says, in part:

    If a clustered index is dropped by using MOVE TO, any...

  • RE: Query Help Needed

    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...

  • RE: Complex Query. Please help

    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...

  • RE: Complex Query. Please help

    Luis Cazares (1/6/2014)


    sqlnaive (1/6/2014)


    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...

  • RE: Complex Query. Please help

    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...

  • RE: Complex Query. Please help

    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 ?

  • RE: Complex Query. Please help

    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...

  • RE: Complex Query. Please help

    Thanks for this query Luiz. Ket me check this out.

  • RE: Complex Query. Please help

    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,...

  • RE: Binary

    twin.devil (1/1/2014)


    Bill (DBAOnTheGo) (12/31/2013)


    There are only 10 types of people in this world.

    +10 🙂

    +10 🙂

    Happy 2014...

  • RE: NULL value in column using bcp

    I'll try using blank value rather than NULL in txt file.

  • RE: Memory-optimized table indexes in SQL 2014

    Nice question on 2014. Learnt something today about the new version. Thank you Dr. Diana. 🙂

Viewing 15 posts - 91 through 105 (of 727 total)