- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2023 12:19 PM
When a table is extended, it inherits all the columns from the table it is extending. When we store data in extended table, records are created in base table as well. My question is on the data stored for columns that are in the base table. The data is only stored in the base table, or it is stored both in base table and extended table?
If data is stored in both tables base and extended, then what is the reason of keeping the data in both tables?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2023 02:26 PM
And if you are interested in how Servicenow Database Schema design works on popular parent tables (task and cmdb) see:
SQL Joins are used to link parent-child table records. And for tables where there are "lots" of records and child tables, database performance suffers the more Joins are used to access the records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Thank you, very helpful!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Click the Helpful button on posts you find helpful. Nice to do for others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
When you work with extended tables, the system doesn’t actually duplicate the same data in both places.
Instead:
Base table columns → Their values are stored only in the base table.
Extended table columns → Their values are stored only in the extended table.
The two tables are linked by the same primary key (often a one-to-one relationship).
So when you query the extended table, the system performs a join behind the scenes: it pulls the base table’s data for inherited columns and the extended table’s data for new columns, presenting them as if they were a single record.
From a developer’s perspective, the extended table appears to have all the base columns.
But physically, those columns are not duplicated — they’re just referenced from the base table.
EXAMPLE :
