[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-656126-105":59,"doc-detail-656126-en":130,"doc-similar-656126":152},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","fundamentals-of-database-systems-212-schemasinstancesand-database-state","Fundamentals of Database Systems - 2.1.2 Schemas,Instances,and Database State","","A core section explains how database models separate the database schema from the database itself. It defines schema as the design-time description that includes record types, data items, and constraints, often shown through schema diagrams. It then contrasts this with database states or snapshots, which capture current instances at specific moments. The text also highlights that the DBMS enforces valid states based on schema rules, and discusses schema evolution when application requirements change.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/fundamentals-of-database-systems-212-schemasinstancesand-database-state/656126/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/fundamentals-of-database-systems-212-schemasinstancesand-database-state/656126.png","ImageObject",300,407,{"name":92,"@type":93},"Emma Wilson","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the difference between a database schema and a database state?","Question",{"text":112,"@type":113},"A database schema is the design-time description of the database structure and constraints. A database state (snapshot) is the current set of occurrences/instances at a particular moment in time.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What does a schema diagram typically show, and what does it omit?",{"text":117,"@type":113},"A schema diagram shows selected aspects such as record type names, data item names, and some constraints. It usually omits details like data types, relationships among files, and many constraints that are hard to represent.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the DBMS ensure that the database is always in a valid state?",{"text":121,"@type":113},"The DBMS is responsible for ensuring each state satisfies the structure and constraints specified in the schema. Therefore, designing a correct schema with great care is essential.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},656126,1792966535,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":14,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":24,"preview_page_count":14,"preview_urls":143},3848291630094,"https://eur-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","# 2.1.2 Schemas,Instances,and Database State\n\nIn any data model,it is important to distinguish between the description of the database and the database itself.The description of a database is called the database schema,which is specified during database design andis not expected to change frequently.Most data models have certain conventions for displaying schemasas diagrams.⁶A displayed schema is called a schema diagram.Figure 2.1 shows a schema diagram for thedatabase shown in Figure 1.2;the diagram displays the structure of each record type but not the actualinstances of records.We call each object in the schema—such as STUDENT or COURSE—a schema construct.  \nA schema diagram displays only some aspects of a schema,such as the names of record types and dataitems,and some types of constraints.Other aspects are not specified in the schema diagram.For example,Figure 2.1 shows neither the data type of each data item nor the relationships among the various files.Manytypes of constraints are not represented in schema diagrams.A constraint such as “students majoring incomputer science must take CS1310 before the end of their second year”is quite difficult to represent.  \nThe actual data in a database mav change quite frequently.For example,the database shown in Figure 1.2changes every time we add a student or enter a new grade for a student.The data in the database at aparticular moment in time is called a database state or snapshot.It is also called the current set of occurrencesor instances in the database.In a given database state,each schema construct has its own current set ofinstances.For example,the STUDENT construct will contain the set of individual student entities(records)asIits instances.Many database states can be constructed to correspond to a particular database schema.Everytime we insert or delete a record or change the value of a data item in a record,we change one state of thedatabase into another state.  \nLhe distinction between database schema and database state is very important.When we define a newdatabase,we specify its database schema only to the DBMS.At this point,the corresponding database stateis the empty state with no data.We get the initial state of the database when the database is first populated orloaded with the initial data.From then on,every time an update operation is applied to the database,we get  \n4.A summary of the network and hierarchical data models is included in Appendices Eand E The full chapters from the second editionof this book are accessible from the Web site.  \n5.Schema changes are usually needed as the requirements of the database applicarions change.Newer database systems includeoperations for allowing schema changes,although the schema change proces is more involved than simple database updates.  \n6.I is customary in database parlance to use schemas as the plural for schena,even though schemnata is the proper plural form.The worscheme is sometimes used for a schema.  \n# 24 |Fundamentals of Database Systems\n\nanother database state.At any point in time,the database has a current state.?The DBMS is partly responsiblefor ensuring that every state of the database is a valid state—that is,a state that satisfies the structure andconstraints specified in the schema.Hence,specifying a correct schema to the DBMS is extremely important,and the schema must be designed with the utmost care.The DBMS stores the'descriptions of the schemaconstructs and constraints—also called the meta-data—in the DBMS catalog so that DBMS software can referto the schema whenever it needs to.The schema is sometimes called the intension,and a database state anextension of the schema.心  \nAlthough,as mentioned earlier,the schema is not supposed to change frequently,it is not uncommonthat changes need to be occasionally applied to the schema as the application requirements change.Forexample,we may decide that another data item needs to be stored for each record in a file,such as adding theDateOfBirth to the STUDENT ","cbCaiueMBQxbwkw6","https://ap.wps.com/l/cbCaiueMBQxbwkw6","pdf",772081,"English","# 2.1.2 Schemas,Instances,and Database State\n## Schema diagrams and schema constructs\n## Database state, instances, and transitions\n## DBMS validation and schema evolution","[{\"question\":\"What is the difference between a database schema and a database state?\",\"answer\":\"A database schema is the design-time description of the database structure and constraints. A database state (snapshot) is the current set of occurrences/instances at a particular moment in time.\"},{\"question\":\"What does a schema diagram typically show, and what does it omit?\",\"answer\":\"A schema diagram shows selected aspects such as record type names, data item names, and some constraints. It usually omits details like data types, relationships among files, and many constraints that are hard to represent.\"},{\"question\":\"How does the DBMS ensure that the database is always in a valid state?\",\"answer\":\"The DBMS is responsible for ensuring each state satisfies the structure and constraints specified in the schema. Therefore, designing a correct schema with great care is essential.\"}]","Fundamentals of Database Systems - 2.1.2 Schemas,Instances,and Database State | PDF",[144,148],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/49f600ed483a86812a9516efa0e6aa96.webp",983,1389,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/740da2f79cabf23aafcd75c7743cd323.webp",982,1387,{"list":153,"token":66},[154,160,166,172,179,186,192,198,205,211],{"doc_id":155,"doc_title":156,"file_type":137,"home_preview_img_url":157,"slug":158,"view_count":81,"category_name":40,"create_tm":159},678110,"Derivation of State Diagrams for Database Schema Evolution - A Thesis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229994562806/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=8OrOiypQglGQWG7%2FaHr9%2F%2Fw2R0A%3D","derivation-of-state-diagrams-for-database-schema-evolution-a-thesis",1793784461,{"doc_id":161,"doc_title":162,"file_type":137,"home_preview_img_url":163,"slug":164,"view_count":81,"category_name":40,"create_tm":165},701368,"Database Management System (DBMS) - Introduction to Database Management System","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012296306/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=27aHyP7vB%2BzAcqisrFTJHTKeAIM%3D","database-management-system-dbms-introduction-to-database-management-system",1794528023,{"doc_id":167,"doc_title":168,"file_type":137,"home_preview_img_url":169,"slug":170,"view_count":44,"category_name":40,"create_tm":171},655977,"Database Schema Design - Using - Entity-Relationship Approach (ER Approach or ER Model)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975296116/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=e0Eaz7ZgKok8wLzDpLoXsxHxxZI%3D","database-schema-design-using-entity-relationship-approach-er-approach-or-er-model",1792965274,{"doc_id":173,"doc_title":174,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":177,"category_name":40,"create_tm":178},127102,"Utilizing Machine Learning for Automated Data Normalization in Supermarket Sales Databases","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839409847/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=FV6b4q%2B4%2FgbVWEgXbllQACe5Fko%3D","utilizing-machine-learning-for-automated-data-normalization-in-supermarket-sales-databases",21,1785936856,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":184,"category_name":40,"create_tm":185},273433,"PLSQLBENCH - Benchmarking LLM Systems for Executable Procedural Database Programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899937019/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=Y6JZU2t2TclJhPk%2BH5fut3Rkr1w%3D","plsqlbench-benchmarking-llm-systems-for-executable-procedural-database-programming",24,1789471409,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":19,"category_name":40,"create_tm":191},678109,"A Comparative Analysis of Methodologiesfor Database Schema Integration","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229994562695/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=5%2BZ%2BaSz3um1sNoQjtnnNS4pc%2BSE%3D","a-comparative-analysis-of-methodologiesfor-database-schema-integration",1793784452,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":29,"category_name":40,"create_tm":197},655993,"Appendix D - Network Model - Data-structure diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974781655/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=kfHhFHDPFTyXlmWYjFu0VOTo1Hw%3D","appendix-d-network-model-data-structure-diagrams",1792965396,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":40,"create_tm":204},493897,"Lexical Database Design - The Shakespeare Dictionary Model","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229928789614/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=xBejNHMOtPJiuktaiizFcU0O%2Fq4%3D","lexical-database-design-the-shakespeare-dictionary-model",11,1790886881,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":34,"category_name":40,"create_tm":210},656086,"Chapter 7 - Entity-Relationship Model - Database Design Concepts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975299797/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=0LP3IyKPXAgLXDWhjESO%2BagSSJA%3D","chapter-7-entity-relationship-model-database-design-concepts",1792966214,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":40,"create_tm":217},273537,"TraceSQL - Traceable Answerability Estimation for Reference-Free Text-to-SQL Verification","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899947030/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=%2Be%2FoUpwo1H0RIwkVP6TSezrQujQ%3D","tracesql-traceable-answerability-estimation-for-reference-free-text-to-sql-verification",13,1789471942]