访问不显示空值

时间:2017-07-20 11:17:37

标签: database ms-access isnull

我有表格类型,供应商,人物,makeModel,make,item,glCode和联系人的SQL查询。当我运行此查询时,它只显示具有supplierID的值,但对于其他项目,则没有SupplierID。对于大多数项目,该字段为空白。运行此查询不会为我提供具有Null值的项目。如何修改此查询以显示该查询?

SELECT
    item.ID,
    type.type,
    make.make,
    makeModel.model,
    item.serialNumber,
    item.note,
    item.purchaseDate,
    item.purchaseCost,
    item.disposalDate,
    Supplier.supplier,
    person.person
FROM Supplier
INNER JOIN (person INNER JOIN ((make INNER JOIN (type INNER JOIN makeModel ON type.[ID] = makeModel.[typeID]) ON make.[ID] = makeModel.[makeID]) INNER JOIN item ON makeModel.[ID] = item.[makeModelID]) ON person.[ID] = item.[personID]) ON  item.[supplierID]=Supplier.[ID];

提前感谢你。

0 个答案:

没有答案