[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-763506-105":59,"doc-detail-763506-en":129,"doc-similar-763506":169},{"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":122,"head_meta":124,"extra_data":126,"updated_unix":128},105,"en","104-sql","10.4 SQL","","SQL question paper focused on relational databases and performance/normalisation concepts. Problems cover improving slow client-server database queries, designing and interpreting entity-relationship diagrams, correcting SQL CREATE TABLE syntax for an Athlete table, and explaining normalisation benefits. Additional tasks require writing SQL to list athletes for a specific fixture in alphabetical surname order, using given schema relations. A further database scenario involves jobs, cars, and parts, including primary-key reasoning and redesigning storage for owner details.",{"@graph":69,"@context":121},[70,84,104],{"@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":20,"@type":76,"position":81},"https://docshare.wps.com/document/exam/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/104-sql/763506/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":98,"encodingFormat":97,"isAccessibleForFree":99,"interactionStatistic":100},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/104-sql/763506.png","ImageObject",300,407,{"name":92,"@type":93},"Taylor Morgan","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30",true,{"@type":101,"interactionType":102,"userInteractionCount":8},"InteractionCounter",{"@type":103},"ViewAction",{"@type":105,"mainEntity":106},"FAQPage",[107,113,117],{"name":108,"@type":109,"acceptedAnswer":110},"How can the performance of the bank database system be improved?","Question",{"text":111,"@type":112},"Consider the server hardware, the computer network design, and the database and software running on the server, since delays can come from any of these areas.","Answer",{"name":114,"@type":109,"acceptedAnswer":115},"What two errors might exist in the Athlete CREATE TABLE statement?",{"text":116,"@type":112},"Identify syntax or constraint issues in the CREATE TABLE definition, such as incorrect PRIMARY KEY placement or incorrect data type/attribute definitions, as indicated by the prompt.",{"name":118,"@type":109,"acceptedAnswer":119},"How do you produce the list of athletes for the fixture on 17/09/18 in SQL?",{"text":120,"@type":112},"Write a query that joins the relevant relations to filter athletes by the fixture date and returns only Surname, Forename, and DateOfBirth, ordered alphabetically by Surname.","https://schema.org",{"og:url":83,"og:type":123,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":125,"canonical":83},"index,follow",{"doc_id":127,"site_id":62},763506,1796034070,{"code":4,"msg":5,"data":130},{"doc_id":127,"user_id":131,"nickname":92,"user_avatar":132,"doc_module":4,"category_id":19,"category_name":20,"doc_title":65,"doc_description":67,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":138,"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":128,"read_time":143,"preview_page_count":29,"preview_urls":144},1099523885336,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Name:    \n10.4 SQL  \nClass:    \nDate:    \n\n| Time: | 489 minutes |\n| --- | --- |\n| Marks: | 342 marks |\n| Comments: |  |\n\nQ1 .  \nEmployees at a bank use client computers to access data that is stored on a database server.  \nThe database server uses software to query and modify data stored in a database on hard disk drives. It returns the results of these queries to the clients over the bank’ s computer network.  \nThe performance of the system is unsatisfactory: the time-delay between a client sending a query to the server and the client receiving the results is unacceptably long.  \nExplain how the performance of the system might be improved. You should consider the following factors that might be affecting the performance:  \n• the hardware of the server  \n• the design of the computer network  \n• the database and software running on the server.  \nIn your answer you will be assessed on your ability to follow a line of reasoning to produce a coherent, relevant and structured response.  \n(Total 12 marks)  \nQ2 .  \nAthletes, who are members of teams, compete in running events, which are held at  \nfixtures throughout the year.  \nFor example, athlete 15 might compete in the Girls ’ 1500m Under 18 race in the fixture at Marsten on 12 September 2018.  \nA relational database is used to store the details of which athletes enter each event at  \neach fixture. The relations used in the database are shown in Figure 1.  \nFigure 1  \nAthlete(AthleteID , Surname, Forename, DateOfBirth, Gender, TeamName)  \nEventType(EventTypeID  \n  , Gender, Distance, AgeGroup)  \nFixture( FixtureID  , FixtureDate, LocationName)  \nEventAtFixture( FixtureID, EventTypeID )  \nEventEntry( FixtureID, EventTypeID, AthleteID )  \n• Each Athlete, EventType and Fixture is identified by a unique identity number, for example AthleteID for athletes.  \n• An EventType is a type of event, such as Boys’ 100m Under 15 race.  \n• If an athlete wants to take part in an event at a particular fixture, then an entry is created in the EventEntry relation to represent this.  \n(a) Figure 2 shows an incomplete entity-relationship diagram for part of the database.  \nDraw lines on Figure 2 to show the degree of any three relationships that exist between the four entities shown.  \n(2)  \n(b) Figure 3 shows an SQL statement that is intended to make a table to represent the Athlete relation. The statement contains some errors.  \nFigure 3  \nCREATE TABLE Athlete (  \nPRIMARY KEY AthleteID,  \nVARCHAR(50) Surname,  \nVARCHAR(30) Forename,  \nDATE DateOfBirth,  \nVARCHAR(6) Gender,  \nVARCHAR(30) TeamName  \n)  \nYou may assume that all of the data types used in Figure 3 are valid and the field lengths are appropriate.  \nState two errors that have been made.  \nError 1:    \n___________________________________________________________________  \nError 2:    \n___________________________________________________________________  \n(2)  \n(c) State two reasons why database designs, such as this one, are usually normalised.  \nReason 1:    \n___________________________________________________________________  \nReason 2:    \n(2)  \nFigure 1 is repeated below.  \nFigure 1 (repeated)  \nAthlete(AthleteID , Surname, Forename, DateOfBirth, Gender, TeamName)  \nEventType( EventTypeID , Gender, Distance, AgeGroup)  \nFixture( FixtureID  , FixtureDate, LocationName)  \nEventAtFixture( FixtureID, EventTypeID )  \nEventEntry( FixtureID, EventTypeID, AthleteID )  \nA list is to be produced of the names of all athletes who are competing in the fixture that is taking place on 17/09/18 . The list must include the Surname, Forename and DateOfBirth of these athletes and no other details. The list should be presented in alphabetical order by Surname.  \n(d) Write an SQL query to produce the list.  \n(5)  \n(Total 11 marks)  \nQ3 .  \nA garage services and repairs cars. It uses a relational database to keep track of the jobs that customers have booked for it to carry out. The database includes jobs that have been completed and jobs that are waiting to b","cbCairLqKJq8xr2C","https://ap.wps.com/l/cbCairLqKJq8xr2C","pdf",2994099,51,"English","# Q1 System performance\n## Q2 Entity-relationship and SQL table design\n## Q2 SQL query for athlete list\n# Q3 Garage database scenario\n## Q3 Primary key reasoning\n## Q3 Owner-details redesign","[{\"question\":\"How can the performance of the bank database system be improved?\",\"answer\":\"Consider the server hardware, the computer network design, and the database and software running on the server, since delays can come from any of these areas.\"},{\"question\":\"What two errors might exist in the Athlete CREATE TABLE statement?\",\"answer\":\"Identify syntax or constraint issues in the CREATE TABLE definition, such as incorrect PRIMARY KEY placement or incorrect data type/attribute definitions, as indicated by the prompt.\"},{\"question\":\"How do you produce the list of athletes for the fixture on 17/09/18 in SQL?\",\"answer\":\"Write a query that joins the relevant relations to filter athletes by the fixture date and returns only Surname, Forename, and DateOfBirth, ordered alphabetically by Surname.\"}]","10.4 SQL | PDF",129,[145,149,153,157,161,165],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/4e95e75a705d39785e9ff8b57a1f77d6.webp",983,1390,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/4f1c30df80531fbfc6ea49389161bc09.webp",982,1389,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/dccd88ef612cee54e49760f443b7764d.webp",981,1387,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/2a537140deb6d5d75e6de45e92e2dcde.webp",980,1386,{"page_no":24,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/4a48d8dec3bf521388e6c7045947898d.webp",979,1385,{"page_no":29,"url":166,"width":167,"height":168},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/6ad9b74f63083e9489cc88d615b0225b.webp",978,1383,{"list":170,"token":66},[171,178,184,191,197,203,210,217,223,229],{"doc_id":172,"doc_title":173,"file_type":136,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":20,"create_tm":177},391746,"SQL TOP50 - Important Interview Questions & Answers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917704632/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796201339&Signature=aHQQjKfE1ZpqrxHOy6dY0pRl5zU%3D","sql-top50-important-interview-questions-answers",15,1790358325,{"doc_id":179,"doc_title":180,"file_type":136,"home_preview_img_url":181,"slug":182,"view_count":8,"category_name":20,"create_tm":183},763504,"sample SQL questions with answers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230047479583/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796201339&Signature=xELM4cGAbCWKvOEFOmRtpEoLeDg%3D","sample-sql-questions-with-answers",1796034068,{"doc_id":185,"doc_title":186,"file_type":136,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":20,"create_tm":190},678108,"DATABASE MANAGEMENT SYSTEM - LECTURE NOTES - UNIT 1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM AND ENTITY RELATIONSHIP MODEL","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229994799943/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796201339&Signature=yVPQ6QjiiTCSO7zOtHZCnCxsbVU%3D","database-management-system-lecture-notes-unit-1-introduction-to-database-management-system-and-entity-relationship-model",12,1793784450,{"doc_id":192,"doc_title":193,"file_type":136,"home_preview_img_url":194,"slug":195,"view_count":29,"category_name":20,"create_tm":196},646217,"MySQL® for Beginners - SQL-4401 Rev 2.1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229971804199/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796201339&Signature=mfWtezodqDeB%2FAuJ2ybHFsGBwJA%3D","mysql-for-beginners-sql-4401-rev-21",1792753729,{"doc_id":198,"doc_title":199,"file_type":136,"home_preview_img_url":200,"slug":201,"view_count":44,"category_name":20,"create_tm":202},497965,"Test of Basic Knowledge of SQL - SQL practice test questions and answer key","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229930310506/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796201339&Signature=eQAWBsZ9e6IA1DFmu1jcU2Aqmak%3D","test-of-basic-knowledge-of-sql-sql-practice-test-questions-and-answer-key",1790972537,{"doc_id":204,"doc_title":205,"file_type":136,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":20,"create_tm":209},656144,"Databases Exam - 22 March 2019 - Exam Instructions and Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975301640/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796201339&Signature=P4Z4zF4cKQ9FD9op78KMPwFjihY%3D","databases-exam-22-march-2019-exam-instructions-and-questions",17,1792966704,{"doc_id":211,"doc_title":212,"file_type":136,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":20,"create_tm":216},391748,"SQL Interview - Questions and Answers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917405671/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796201339&Signature=h3MFfuEof%2BzV2XQtzRK3rdd9xY4%3D","sql-interview-questions-and-answers",16,1790358420,{"doc_id":218,"doc_title":219,"file_type":136,"home_preview_img_url":220,"slug":221,"view_count":215,"category_name":20,"create_tm":222},151076,"Computer science Higher level Paper 2 - Databases and application questions - Exam instructions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229869770740/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796201339&Signature=dcPJ%2BOjuwnz%2FSPjGJ0v3rxO%2B3Uw%3D","computer-science-higher-level-paper-2-databases-and-application-questions-exam-instructions",1787832388,{"doc_id":224,"doc_title":225,"file_type":136,"home_preview_img_url":226,"slug":227,"view_count":81,"category_name":20,"create_tm":228},730041,"98-364 Database Administration Fundamentals","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230030237321/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796201339&Signature=uqbm5oLz4L5BUGkVBSHk%2FICHT3c%3D","98-364-database-administration-fundamentals",1795303206,{"doc_id":230,"doc_title":231,"file_type":136,"home_preview_img_url":232,"slug":233,"view_count":234,"category_name":20,"create_tm":235},207537,"OCR GCSE (9–1) Computer Science J276/02 - Computational thinking, algorithms and programming - Paper 2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229883585836/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796201339&Signature=KZszJAvyyZOjgKmcY4eyUS4koS4%3D","ocr-gcse-91-computer-science-j27602-computational-thinking-algorithms-and-programming-paper-2",22,1788599935]