Forum Replies Created

Viewing 15 posts - 166 through 180 (of 312 total)

  • RE: How to identify the missing id's in a table..

    use "not in" clause for the identity column values...

    in where clause..

    Cheers!

    Sandy.

  • RE: Where Condition ?

    Humm...Ok.

  • RE: Where Condition ?

    Yes,

    But if you try, you can also achieve, but you have to work a little more.

    but As I told Its One line of code and Easy to use and Quicker...

  • RE: stored proc taking too long!

    Gail,

    Please Give the Answer......

    Otherwise it will be reset the row_number value......to "O"

    Lolz......:w00t::P:D:cool::hehe:

    Cheers!

    Sandy.

  • RE: Where Condition ?

    create table #temp

    (

    a int,

    b int,

    c int

    )

    -------------------------

    Insert into #temp

    select 1,1,1

    union all

    select 1,2,2

    union all

    select 1,2,1

    -----------------------

    select * from #temp

    ----------------------

    create table #temp1

    (

    a1 int,

    b1 int,

    c1 int

    )

    -------------------------

    Insert into #temp1

    select 1,1,1

    union all

    select 1,2,2

    union all

    select 1,2,3

    -----------------------

    select * from...

  • RE: Where Condition ?

    Now See here....

    select * from #temp

    where a+b+c in (select a1+b1+c1 from #temp1)

    e.i: replace In with .... [in/not in/ ] ........

    he he he...lolz

    It will work for Int as well as...

  • RE: Where Condition ?

    If it's just three random columns, you're right.

    Piotr,

    If it's just three random columns, If Not Then....My Question Starts here??

    Got it?

    My Solution is very simple...and single line of code..and easy...

  • RE: stored proc taking too long!

    Grant,

    Today is Truth Day n Explanation Day......hehhehe..lolz;)

    Would you like to Explain What you told Now......?:w00t:

    Holy cow! You guys posted all that in the time it took me to read the...

  • RE: Where Condition ?

    Grant,

    Then what you wants to say?

    I mean Do you have any other Idea?

    Please tell me then?

    I have used a quick Idea to perform this...

    Cheers!

    Sandy.

  • RE: stored proc taking too long!

    ROW_Number is a built-in ranking function that's new in SQL 2005.

    the order by clause in it specifies which column or columns define the order for the row number

    The partition...

  • RE: stored proc taking too long!

    Johann Montfort

    --------------------------------------------

    Can you give me an explanation of the code?

    gail, Its your turn Now....:hehe::cool::w00t:;):P:D:)

    hehehehehehe.................lolz

    Cheers!

    Sandy.

  • RE: stored proc taking too long!

    Gail,

    Um.... Getdate is not .net code. No delegates involved, no CLR

    I knew it,

    I just gave one Example for you,

    As for SQL, GETDATE() is a Predefined Function some where the functionally...

  • RE: stored proc taking too long!

    Hi Johann,

    There is a concept called Crosstab query Which will help you a lot for this situation.

    Can you please check this with Crosstab query?

    Cheers!

    Sandy.

  • RE: stored proc taking too long!

    While loops written in T-SQL don't run in the client. They run on the server, along with everything else.

    gail,

    Client does not mean that it will run on the client side,...

  • RE: stored proc taking too long!

    hey Johann,

    Microsoft Is designed While loop in such a way that you can use IF condition with in the loop itself.

    I mean to say that your all condition can be...

Viewing 15 posts - 166 through 180 (of 312 total)