For a system i'm designing,i have one parent entity,Computer
Computer(computer_id,computer_processor,computer_hddrive,computer_memory);
A computer can be of two types,Desktop and Laptop,each having their own specific attributes.
Laptop(laptop_id(Foreign key of computer_id),laptop_color,laptop_battery);
and similarly a table for Desktop.
Now the entries to these tables is via a end-user form,my main question is, what would the exact INSERT queries be for adding say to the inventory,a laptop if i were to have 3 tables,one superclass and two subclass tables? I understand i would first how to make an entry to the computer table and then laptop,but how will this be carried out automatically?