Forum Replies Created

Viewing 15 posts - 31 through 45 (of 50 total)

  • RE: Problem in finding duplicate records using CTE

    Thanks dave... its working but in my real time scenario where i have a millon of records to compare count(*) over (paritition...

    is taking very long time to return the...

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Clustered Indexes

    Thanks Hugo. Nice explanation.

    I have used the below DBCC to see how page allocation happening and how it logically arranged using NextpageID and PrevpageID.

    DBCC IND(Demo, Demo, -1);

    GO

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Fun with Transactions - Part I

    My guess is right. 🙂

    Nice Question.

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Disabling Indexes

    Yes nakul...

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Disabling Indexes

    Thanks for the nice question.

    It would have been tough if you didn't have "-- Drop the associated constraints" in the statements.

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Predict the outcome of the SQL statements

    Yes Happycat...Good Explanation.

    Select ceiling(Convert(decimal(2,1),1.09)) will give you the result 2.

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Using condition in the select clause based on a sub query

    ..

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Using condition in the select clause based on a sub query

    Try This..

    Create Table TableA (ID int identity(1,1),FakeName1 Varchar(20),FakeName2 varchar(20),Amount int)

    Create Table TableB (ID int identity(1,1),Actualname Varchar(20),FakeName varchar(20))

    Insert into TableA Values('Mike','Johnny',10000),('Ruke','Dirk',10000),('Andy','Micheal',10000)

    Insert into Tableb Values('Peter','Johnny'),('Andrews','Andy'),('Stephen','Dirk'),('Murray','Micheal')

    Select * from TableA

    Select * from TableB

    ;with P1CTE...

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Split string using Tally Table

    Nice question..

    Complex select statements ..so I ignored it and guessed the answer with the where condition.

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: What will be the output of the following?

    Must be typing mistake from the author of this question... but how can we have "-0" in the result. 😉

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: "SELECT @local_variable"

    Good Question.

    SELECT @t = @t + @comma + a.a

    ,@comma = ','

    FROM #a a

    ORDER BY 1

    Result : C

    SELECT @t = @t + @comma + a.a

    ,@comma...

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Quoted Identifier

    Good.

    but when tried with SET QUOTED_IDENTIFIER OFF; also it is working fine. (in SQL Server 2008).

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Decryting a column value inside an SP

    Hi Namrata,

    All I found was in the first SP in line number 28 you are passing "password". In that place you should pass the variable "@Password".

    Is this cause the problem?

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Question of the Day for 18 Jan 2006

    Thanks Site Owner..

    Exactly I have the same requirement in my offfice as we are going to change few of our indexes as unique based on the natural keys. This helps...

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Partitioning column value range based on master table field?

    Hi bijs,

    You can create 12 partitions based on the month key(Mkey) value. But it will store the data irrespective of the year.

    2009 January data and 2010 January data will...

    [font="Verdana"]Regards,
    Rals
    [/font].

Viewing 15 posts - 31 through 45 (of 50 total)