I heard a lot about subtyping tables when designing a database, and I am fully aware of the theory behind them. However, I have never seen tabular subtyping in action. How can you create subtypes of tables? I am using MS Access and I am looking for a way to do this in SQL as well as through the graphical interface (Access 2003).
Hurrah!
A simple example would be a Person table with a primary key and some columns in that table. Now you can create another table called "Student", which has a foreign key for the face table (its supertype). Now in the student table there are several columns for which the supertype does not have a GPA, Major, etc. But first name, last name, etc. Will be in the parent table. You can always access the student name in the Person table through the foreign key in the Student table.
In any case, just remember the following:
EER. RDBMS ( - ), .
ORM , .
, .
, , Access, .
, , ( ), Nz(), UNION ALL SELECT ( ). .
SQL , /, , , SQL , . , , , - , -, , . , .
, , .
, , , (TABLE_NAME, PK_ID).
:
: CUSTOMER
: PERSON, BUSINESS, GOVT_ENTITY
NULL PRERSON_ID, BUSINESS_ID GOVT_ENTITY_ID CUSTOMER, , null. , .
Source: https://habr.com/ru/post/1706430/More articles:Accessing Views Created in Interface Builder - objective-cHow to send custom event from actioncript 3 class and listen to it in document root directory? - eventsStarting Windows service in console - c #Is the corresponding C ++ mutable in this case? - c ++MSChart and ASP.NET MVC Partial View - asp.netis there a statically typed language with good lambda support for the JVM? - jvm-languages | fooobar.comКаковы хорошие SQL Server 2008 с поставщиками хостинга веб-сайтов ASP.NET? - sql-serverC / C ++ Console Windows WIN32 - c ++shadow display of multitexture - openglWill there be 20 year compatibility issues 20 years in the future? - directoryAll Articles