|
|
|
|
Browse by Tags
All Tags » SQL Server 2008 » sqL Server 2000 » Tip (RSS)
-
You need to return NULL only if the value of your data is a certain value. How do you do this? There are three different ways.
NULLIFDECLARE @1 char(1)SELECT @1 ='D' SELECT NULLIF(@1,'D')REPLACEThis should not really be used, I just added it here to demonstrate that you can in fact use it.DECLARE @1 char(1)SELECT @1 ='D' SELECT ...
-
Drag And Drop Column Names In Query Analyzer you can save a lot of time by using this trick instead of typing all the column names of a table Hit F8, this will open Object Browser Navigate to DatabaseName/TableName/Columns Click on the column folder and drag the column folder into the Code Window Upon release you will see that all the column names ...
|
|
|
|
|