• david.chakraborty (4/16/2009)


    I added

    (Select Count(*) from Table)>0 in the where clause and it seemed to have worked

    The EXISTS function is faster.

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]