Documente Academic
Documente Profesional
Documente Cultură
PK equipmentID PK rucksackID
PF toolBoxID PF iceboxID
PF libaryID PF fridgeID
type PF cabinetID
itemName PF basketID
toolLevel PF libaryID
itemCount type
bagLv itemName
itemCount
bagLv
--DDL--
toolLevel INT CHECK(Type = 'tool' AND ToolLevel >= 0 AND ToolLevel <= 5),
itemCount INT NOT NULL CHECK(ItemCount >= 0 AND ItemCount <= 99) DEFAULT 0,
);
itemName VARCHAR(50) NOT NULL CHECK(Type = 'food' OR Type = 'resources' OR Type = 'medicine'),
);
--DML--
FROM equipment
SELECT itemName
FROM rucksack
WHERE itemCount = 1;
WHERE itemCount = 0;