[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-622822-105":59,"doc-detail-622822-en":130},{"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","teaching-guide-relational-databases-and-structured-query-language-sql-version-20","Teaching Guide - Relational Databases and Structured Query Language (SQL) - Version 2.0","","Teaching guide for understanding section 3.7.1 Relational databases and 3.7.2 Structured query language (SQL) within the 8525 GCSE Computer Science specification. Explains what a database is, why flat-file approaches cause problems such as inconsistency, redundancy, and difficulties adding related data in the right order. Introduces relational databases as structured relations (tables), showing how related student data should be stored in one place and how duplication must be eliminated and records validated.",{"@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":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/teaching-guide-relational-databases-and-structured-query-language-sql-version-20/622822/",{"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/teaching-guide-relational-databases-and-structured-query-language-sql-version-20/622822.png","ImageObject",300,407,{"name":92,"@type":93},"Mafia Boss","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-26","2026-10-20",true,{"@type":102,"interactionType":103,"userInteractionCount":8},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the purpose of a database in this teaching guide?","Question",{"text":112,"@type":113},"A database stores structured data items such as strings, dates, and numbers, and provides a way to associate related items for each real-world entity (e.g., one student’s name, birth date, and test score).","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What problems can occur with a flat file database (single table/spreadsheet)?",{"text":117,"@type":113},"The guide highlights inconsistency and redundancy caused by repeating related data items, and it notes that some related details can be hard to add before other required data (like a test score).",{"name":119,"@type":110,"acceptedAnswer":120},"How does a relational database address those issues?",{"text":121,"@type":113},"Relational databases keep all related data items for an entity together in one place, typically in separate relations (tables). They also support eliminating duplicate records and validating which entries refer to the same entity.","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},622822,1793005838,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":56,"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":143,"read_time":144},962090760730,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Teaching Guide: Relational databases and structured query language (SQL)  \nThis resource is designed to help you to understand the key concepts surrounding section 3.7.1 Relational databases and 3.7.2 Structured query language (SQL) of the 8525 GCSE Computer Science specification.  \nSome sections (these are boxed like this) go beyond what is required by the specification, but this is a guide for teachers and not limited to just what students need to know.  \nVersion 2.0  \nSeptember 2025  \nContents  \nYou can use the title links to jump directly to the different sections of this teaching guide.  \n\n| Section | Page |\n| --- | --- |\n| 3.7.1 Relational databases | 3 |\n| Databases | 3 |\n| Relational databases | 5 |\n| Keeping track of the scores | 7 |\n| Linking entities or tables | 9 |\n| Glossary of key terms | 11 |\n| 3.7.2 Structured query language (SQL) | 12 |\n| SQL | 12 |\n| Retrieval of data from a database – the SELECT statement or query | 12 |\n| Multiple or cross table queries | 13 |\n| Using the WHERE clause (original method) | 14 |\n| Using a JOIN (modern method) | 14 |\n| Ordering information | 15 |\n| Creating data in a database | 17 |\n| Deleting data from a database | 18 |\n| Updating (changing) data in a database | 19 |\n\n3.7.1 Relational databases  \nDatabases  \nA database is a collection of data items, e.g. strings, dates, numbers, with some sort of structure to it. A database of students might hold, for each student:  \n• the student's last and first names (strings)  \n• the student's date of birth (date)  \n• the student's score in a test (integer) .  \nThere must be some way of associating one data item for one student with all the other data items for that student, or there's no way to get useful information out of the database.  \nIn a programming language this association may be done in a number of ways. For example, the names, date of birth and test score for each student might be held in a list in Python, ina struct in C\\# and in a Structure in VB. NET.  \nWhen shown on paper or screen all the related data items are usually shown in a row (each data item, shown in a column, is known as a field):  \n\n| James | Stuart | 12/06/2007 | 34 |\n| --- | --- | --- | --- |\n\nand since the student's full name could be James Stuart or Stuart James each column is labelled with a descriptive name (the fieldname), and so it looks like a table:  \n\n| LastName | FirstName | DateOfBirth | TestScore |\n| --- | --- | --- | --- |\n| James | Stuart | 12/06/2007 | 34 |\n\nThe details of more students and their scores could be added to the table:  \n\n| LastName | FirstName | DateOfBirth | TestScore |\n| --- | --- | --- | --- |\n| James | Stuart | 12/06/2007 | 34 |\n| Peters | Ivan | 14/09/2008 | 21 |\n| Fields | Meera | 12/01/2008 | 21 |\n| Sohda | Ruki | 14/01/2007 | 64 |\n| Stuart | James | 06/12/2007 | 45 |\n| Sohda | Ruki | 14/02/2007 | 39 |\n| Fields | Meera | 12/01/2008 | 19 |\n| Stuart | James | 12/06/2007 | 15 |\n\nSome possible problems are now obvious: is the Stuart James in the first row the same student as the James Stuart in the last row, and it's just that someone entered the names in the wrong order? Is the James Stuart in the last row the same student as the James Stuart in the fifth row, but that someone entered the date in day/month/year order for one and month/day/year for the other?  \nAlthough the data above is an artificial example, it shows the problems of keeping data like this:  \n• inconsistency: repeating data items that are related (student last and first names, together with their date of birth) can lead to issues of data inconsistency  \n• redundancy: the related data is duplicated  \n• a student's details can't be added before they have a test score.  \nThis leads to an important rule with databases:  \nevery set of related data items (last name, first name and date of birth of a student in the example) must only be stored once in the database 1  \nWhen all the data is kept in one spreadsheet, or one file2, it is not usually possible to satisfy thi","cbCaipHVSZUAJOqF","https://ap.wps.com/l/cbCaipHVSZUAJOqF","pdf",372773,"English","# 3.7.1 Relational databases\n## Databases\n## Relational databases\n## Keeping track of the scores\n## Linking entities or tables\n## Glossary of key terms\n# 3.7.2 Structured query language (SQL)\n## SQL\n## Retrieval of data from a database – the SELECT statement or query\n## Multiple or cross table queries\n## Using the WHERE clause (original method)\n## Using a JOIN (modern method)\n## Ordering information\n## Creating data in a database\n## Deleting data from a database\n## Updating (changing) data in a database","[{\"question\":\"What is the purpose of a database in this teaching guide?\",\"answer\":\"A database stores structured data items such as strings, dates, and numbers, and provides a way to associate related items for each real-world entity (e.g., one student’s name, birth date, and test score).\"},{\"question\":\"What problems can occur with a flat file database (single table/spreadsheet)?\",\"answer\":\"The guide highlights inconsistency and redundancy caused by repeating related data items, and it notes that some related details can be hard to add before other required data (like a test score).\"},{\"question\":\"How does a relational database address those issues?\",\"answer\":\"Relational databases keep all related data items for an entity together in one place, typically in separate relations (tables). They also support eliminating duplicate records and validating which entries refer to the same entity.\"}]","Teaching Guide - Relational Databases and Structured Query Language (SQL) - Version 2.0 | PDF",1792467148,48]