INSERT INTO dbo.i2i_Details (Title, Content, iconColor, iconType) VALUES ( '' , '' , '' , '' ) UPDATE dbo.i2i_Details SET Title= '' , Content= '' , updatedAt= #Now()# , iconColor= '' , iconType= '' WHERE ID= SELECT ID, Title, Content, iconColor, iconType FROM dbo.i2i_Details ORDER BY CASE WHEN ID = '#URL.id#' THEN 1 ELSE 2 END, ID SELECT ID, Title, Content, iconColor, iconType FROM dbo.i2i_Details ORDER BY ID Idea to Image