Microsoft
Software
Hardware
Network
Question : sql question
I have this section in my sql script:
ISNULL(lot_loc.unit_cost, item.avg_u_cost) as [Unit Cost]
it works very well but in some cases lot_loc also = 0.0 in which case I'd also like it to pull the value from item.avg_u_cost.
How can I do this?
Answer : sql question
use this instead of the above
case when lot_loc.unit_cost is null or lot_loc.unit_cost =0 then item.avg_u_cost ELSE lot_loc.unit_cost END as as [Unit Cost]
Random Solutions
auto-save outlook email attachment within SSIS
Directory.GetFiles() returns error "illegal charactes in path". Need workaround.
Excel formula needed
OWA Publishing over ISA
Unknown Function Name
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.
Table Connected via ODBC not showing newly added fields
run-time error '-247352567 (80020009)': You can't assign a value to this object
MS ACCESS Color Picker
SQL 2005 Silent Install INI Path