What would be the syntax (if it's possible), for example, to create a table called Car_Model
that has a foreign key to a table Car_Make
, and give Car_Make
a column which is the number of Car_Models
that exist of that Car_Make
.
(If this seems trivial or homework-like it's because I am just playing with some python at home trying to recreate a problem I was having at work. We use MS-SQL at work.)