Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Ziggadebo
Starting Member
20 Posts |
Posted - 2011-04-18 : 06:02:39
|
| I hope this is me being stupid, but on the following table, it won't let me select the row where the Tariff_Id is NULLTariff_Id T_Type T_TRANSNULL Charge NULLFile transfer file charge Charge NULLGateway annual charge Charge NULLWhy is the following SQL code not returning resultsSelect * from TARIFFLOOKUPwhere Tariff_id = NULLIt should be returing the data in the first row, but instead it returns nothing. I would replace the NULL with a value but cant even select the row given there are no unique variables in that row?The column is setup as NVARCHAR(255) NULLPlease help?edited - sorry me being stupidI used Select * from TARIFFLOOKUPwhere Tariff_id is NULLand works fine, must keep reading the text books! |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2011-04-18 : 06:04:27
|
[code]Select * from TARIFFLOOKUPwhere Tariff_id IS NULL[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
|
|
|