Posted on July 22, 2008 by Lisa Zhou
Here is a great articles that I came across that explains in detail on how to select a minimum value from a column based on a particular filtering option.
The example listed here was how to select the cheapest price for the different categories of fruits.
http://www.xaprb.com/blog/2006/12/07/how-to-select-the-firstleastmax-row-per-group-in-sql/
Filed under: SQL Server | Leave a Comment »
Posted on July 18, 2008 by Lisa Zhou
A little useful script for searching in stored procedures.
SELECT OBJECT_NAME(id)
FROM syscomments
WHERE [text] LIKE ‘%searchtext%’
AND OBJECTPROPERTY(id, ‘IsProcedure’) = 1
GROUP BY OBJECT_NAME(id)
Filed under: SQL Server, Uncategorized | Leave a Comment »
Posted on July 16, 2008 by Lisa Zhou
This is something that I just found out existed today, probabily due to my lacking of actually going through the tool bar.
In SQL Server 2005, in the design view of table, usually you can perform a number of changes here like adding a new column, changing the column size etc, if you were performing these [...]
Filed under: SQL Server | Tagged: Generate Script, SQL Server | Leave a Comment »