Sunday, April 15, 2012

In the World
       You Are Someone
But For Someone
        You Are the World

Tuesday, September 21, 2010

checking the temp tables before deleting in SP

IF OBJECT_ID('tempdb..#TempXml') IS NOT NULL
BEGIN
DROP TABLE #TempXml
END

Thursday, April 8, 2010

நான் ரசித்த கவிதைகள்

பிடித்தவர்களை சிரமப்படுத்துவதும்
பிடித்தவர்களுக்காக சிரமப்படுவதும் கூட ஒரு சுகம்

உன்னை சந்தித்த நாள் நினைவில் இல்லை
உன்னை சந்தித்த நாள் முதல் நினைவே இல்லை

Sunday, June 22, 2008

duplicate rows in table

Hi ..
the query to find the duplciate rows in the table
Format:
select * from tablename a where 1 <
(select count(columnname) from tablename b where a.columnName = b.columnName)
Example:
select * from T_PROJECT_DETAILS a where 1 <
(select count(a_id) from T_PROJECT_DETAILS b where a.a_id = b.a_id)