Forum Replies Created

Viewing 15 posts - 1 through 15 (of 37 total)

  • RE: Unique Constraints

    Missed the "Distinct" πŸ˜›

  • RE: The SIGN

    Nice question and Great comments..

  • RE: More GROUP BY

    Easy.. Thanks

  • RE: In-line variable assignment 2

    Tricky.. πŸ™‚ lost my points

  • RE: Recovery Interval

    SQLRNNR (7/21/2014)


    Very good question - imho.

    +1 πŸ™‚

  • RE: Non Temp Temp Tables

    ChrisM@Work (7/21/2014)


    Sreepathi1987 (7/21/2014)


    Easy One. πŸ™‚

    But i think it is rather unusual, tempdb is completely wiped out whenever the SQL Server service restarts. Yes or No?

    Yes, which makes tempdb useful...

  • RE: Casting and Data Type Conversion

    Thanks.. But still confused:-P.. need to work on it..

  • RE: Try.. Catch..

    Good Question. Thanks for the easy point.

    L' Eomot InversΓ© (10/9/2013)


    Nice question.

    I've never understood why try...catch was banned in functions, but the explanation for this question provides a clue. I'd...

  • RE: What happens to a variable after COMMIT or ROLLBACK

    PRR.DB (10/6/2013)


    Mr. Kapsicum (10/6/2013)


    Nice and Easy Question to start the week.

    πŸ™‚

    +2

    +3 πŸ™‚

  • RE: T-SQL counts

    tom.w.brannon (10/2/2013)


    I believe the problem is a difference in how distinct gets used in different contexts. For the following queries

    select count(distinct id) from #temp_test;

    select distinct id from #temp_test;

    select count(*)...

  • RE: T-SQL counts

    Nice and simple question. Lot to think.. thanks Samith..

  • RE: CTE

    Carlo Romagnano (9/25/2013)


    Dscheypie (9/25/2013)


    Carlos,

    sure, you may be right.

    And the topic of this QotD is CTE and the usage of DML.

    With the example for identifying duplicate records I wouldn't agree...

  • RE: CTE

    How about Recursive CTE? Here is a simple example. Try this too..

    DECLARE @FromDate DATE = '01 APR 13'

    DECLARE @ToDate DATE = '31 MAR 14'

    ; WITH CTE

    AS

    (

    SELECT @FromDate Dates

    UNION ALL...

  • RE: CTE

    create table #temp_test

    (id int);

    insert into #temp_test

    values(1)

    insert into #temp_test

    values(1)

    insert into #temp_test

    values(2)

    insert into #temp_test

    values(2)

    insert into #temp_test

    values(3)

    insert into #temp_test

    values(5)

    ;

    with ABC_CTE as

    (

    select ROW_NUMBER() OVER(PARTITION BY ID...

Viewing 15 posts - 1 through 15 (of 37 total)