sql - Added new field to table and to stored procedure, now procedure returns no results -
i added deleted
column table , wanted add additional clause i'm not getting results anymore (it returned results before added deleted
column)
select tblequipment.*, tblusers.* tblequipment inner join tblusers on tblequipment.userid = tblusers.id (upper(tblusers.dept) = 'aspire' or upper(tblusers.dept) = 'development') , (assettype = 'workstation' or assettype = 'laptop') , (tblequipment.deleted != 1) order username
thanks help
if deleted
null
every record, condition should be:
and (tblequipment.deleted != 1 or tblequipment.deleted null)
Comments
Post a Comment