I am a beginner to MS SQL.
I have the entities Product, Accessory and FoodItem. FoodItem and Accessory are subtypes of Product.
Product attributes : name, stockLevel, price, type.
Product primary key : code.
Accessory attributes : classification.
Accessory foreign/primary key: code.
FoodItem attributes : expiryDate.
FoodItem foreign/primary key: code.
Now I have some knowledge of Java. If FoodItem for example, inherits name, stockLevel,price, type, how do I type it in sql code? In java I would type EXTENDS but how do you do it in MS SQL for inheritance?