{"id":20219,"date":"2026-01-30T07:35:39","date_gmt":"2026-01-30T07:35:39","guid":{"rendered":"https:\/\/www.booksofall.com\/in\/?post_type=product&#038;p=20219"},"modified":"2026-01-30T07:35:40","modified_gmt":"2026-01-30T07:35:40","slug":"computer-science-ii","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/in\/computer-science-ii\/","title":{"rendered":"Computer Science II"},"content":{"rendered":"<h2>Relational Databases<\/h2>\n<p>3.1 Introduction<\/p>\n<p>Consider the data in Table 3.1 for a course enrollment system.<\/p>\n<p>The data in this table is essentially a flat file. Though we\u2019ve presented it in a nicely formatted table, this data is essentially no different from a <a href=\"https:\/\/www.sage.com\/en-gb\/blog\/glossary\/what-are-comma-separated-values\/\">Comma-Separated Value (CSV)<\/a> file in which each line represents a record and individual column values are delimited with a comma. The same data as a CSV file is presented in Figure 3.1. Flat file representations of data are called such because they take related pieces of data, such as which courses a student is enrolled, and flatten them into a single table representation. Even ancillary data that have a completely different relationship (such as emails) is included in the \u201cflattened\u201d representation.<\/p>\n<p>Flat file representations can lead to a lot of problems, limitations and can lead to data anomalies. To motivate the use of a proper database system, we identify several of these here.<\/p>\n<ul>\n<li>There is no semantic meaning to the data fields. Though the first row contains headers of what each column represents, there is no way to enforce those associations. Since this data format is merely a plaintext file, we could accidentally swap columns, omit columns or provide more tokens than expected. Alternatively, some data representation formats are designed for <a href=\"https:\/\/www.ibm.com\/topics\/edi-electronic-data-interchange\">Electronic Data Interchange (EDI)<\/a>. In order to transfer data between two different systems (that may be on different hardware, use different data models or are written in different languages) data needs to be translated (a process called serialization) into a universal format in which each data field is semantically marked up to indicate what it represents. Two examples can be found in Figure 3.2 which contains samples of the same enrollment data represented as <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Learn\/JavaScript\/Objects\/JSON\">JavaScript Object Notation (JSON)<\/a> and <a href=\"https:\/\/www.w3.org\/XML\/\">Extensible Markup Language (XML)<\/a> respectively.Figure 3.1: CSV Formatted Data<\/li>\n<li>There is a lot of repetition of data. Every record that models a student enrolled in a course repeats all the student\u2019s data including their name, ID, email, etc. Likewise, the course information is also repeated over every enrollment record.<\/li>\n<li>Repeated data can lead to different and conflicting representations and for- matting problems. In some of the student records the name is similar, but represented differently, some are last name first, others are first name first, others have a middle initial or only have an initial for the first name, one doesn\u2019t use capitalization, etc.<\/li>\n<li>There is missing or incomplete data. The first and last record do not have any course data and they represent this missing data inconsistently: with empty string values in the first record, a placeholder value (\u201cNONE\u201d), and a null value. These may be records that once held data but that was changed. However, so as not to lose the (still relevant) email data, they were modified.<\/li>\n<li>There is inconsistent data. The third from last record for example has a different <a href=\"https:\/\/www.unomaha.edu\/information-technology-services\/support\/accounts-and-passwords\/NUID1\/index.php\">NUID<\/a> for<a href=\"http:\/\/www.tomwaits.com\/\"> Tom Waits<\/a> as it does from the other records with a similar name. This NUID is also associated with <a href=\"https:\/\/en.wikipedia.org\/wiki\/Lou_Reed\">Lou Reed<\/a> in the final two records. Without any rules to enforce consistency, there is no data integrity and incorrect data like this is <span style=\"font-size: 1rem;\">allowed to occur.<\/span><\/li>\n<li>There are organizational and efficiency issues with processing a single data file. Any aggregate reports, such as producing a roster for a particular class or a schedule for a single student, would require processing every record in the entire file. Similarly, updating a single record becomes extremely difficult. For example, if one student change their email, we have to find and replace every instance with several contingencies (dealing with multiple email records) and side effects to deal with.<\/li>\n<li>Keeping data in a single file also has concurrency Issues. If we want to design a system to be multi-user or even simply multithreaded or have several programs access and process our data then each process or thread may have to do so by placing a file lock on the data file. This precludes the possibility of concurrent and parallel processing, severely limiting a system\u2019s efficiency and essentially making it a single user system.<\/li>\n<\/ul>\n<p>The solution to (most) of these problems is to use a proper Relational Database Management System (RDMS). A relational database stores data in tables. Tables delineate data in columns and rows. Each column holds a specific type of data (integers, strings, etc.) that define fields of records. Each row in a table corresponds to a single record.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 750px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/computer-science-ii-18k0friepq?p=1\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":20227,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Development of computer science help us collect and analysis our data in different ways! Learn more about the benefits and limitations of them."},"product_brand":[],"product_cat":[273],"product_tag":[],"class_list":{"0":"post-20219","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-computer-science-by-subject","8":"first","9":"instock","10":"shipping-taxable","11":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Computer Science II - BooksOffAll Indian<\/title>\n<meta name=\"description\" content=\"Development of computer science help us collect and analysis our data in different ways! Learn more about the benefits and limitations of them.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.booksofall.com\/in\/computer-science-ii\/\" \/>\n<meta property=\"og:locale\" content=\"hi_IN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Computer Science II - BooksOffAll Indian\" \/>\n<meta property=\"og:description\" content=\"Development of computer science help us collect and analysis our data in different ways! Learn more about the benefits and limitations of them.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/in\/computer-science-ii\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOffAll Indian\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-30T07:35:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/computer-science-II.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/computer-science-II.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"\u0905\u0928\u0941\u092e\u093e\u0928\u093f\u0924 \u092a\u0922\u093c\u0928\u0947 \u0915\u093e \u0938\u092e\u092f\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 \u092e\u093f\u0928\u091f\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/in\/computer-science-ii\/\",\"url\":\"https:\/\/www.booksofall.com\/in\/computer-science-ii\/\",\"name\":\"Computer Science II - BooksOffAll Indian\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/computer-science-ii\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/computer-science-ii\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/computer-science-II.jpg\",\"datePublished\":\"2026-01-30T07:35:39+00:00\",\"dateModified\":\"2026-01-30T07:35:40+00:00\",\"description\":\"Development of computer science help us collect and analysis our data in different ways! Learn more about the benefits and limitations of them.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/computer-science-ii\/#breadcrumb\"},\"inLanguage\":\"hi-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/in\/computer-science-ii\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"hi-IN\",\"@id\":\"https:\/\/www.booksofall.com\/in\/computer-science-ii\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/computer-science-II.jpg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/computer-science-II.jpg\",\"width\":\"595\",\"height\":\"842\",\"caption\":\"Computer Science II\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/in\/computer-science-ii\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/in\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/in\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Computer Science II\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/in\/#website\",\"url\":\"https:\/\/www.booksofall.com\/in\/\",\"name\":\"BooksOffAll Indian\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/in\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"hi-IN\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/in\/#organization\",\"name\":\"BooksOffAll Indian\",\"url\":\"https:\/\/www.booksofall.com\/in\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"hi-IN\",\"@id\":\"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOffAll Indian\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Computer Science II - BooksOffAll Indian","description":"Development of computer science help us collect and analysis our data in different ways! Learn more about the benefits and limitations of them.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.booksofall.com\/in\/computer-science-ii\/","og_locale":"hi_IN","og_type":"article","og_title":"Computer Science II - BooksOffAll Indian","og_description":"Development of computer science help us collect and analysis our data in different ways! Learn more about the benefits and limitations of them.","og_url":"https:\/\/www.booksofall.com\/in\/computer-science-ii\/","og_site_name":"BooksOffAll Indian","article_modified_time":"2026-01-30T07:35:40+00:00","og_image":[{"url":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/computer-science-II.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/computer-science-II.jpg","twitter_misc":{"\u0905\u0928\u0941\u092e\u093e\u0928\u093f\u0924 \u092a\u0922\u093c\u0928\u0947 \u0915\u093e \u0938\u092e\u092f":"4 \u092e\u093f\u0928\u091f"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/in\/computer-science-ii\/","url":"https:\/\/www.booksofall.com\/in\/computer-science-ii\/","name":"Computer Science II - BooksOffAll Indian","isPartOf":{"@id":"https:\/\/www.booksofall.com\/in\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/in\/computer-science-ii\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/in\/computer-science-ii\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/computer-science-II.jpg","datePublished":"2026-01-30T07:35:39+00:00","dateModified":"2026-01-30T07:35:40+00:00","description":"Development of computer science help us collect and analysis our data in different ways! Learn more about the benefits and limitations of them.","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/in\/computer-science-ii\/#breadcrumb"},"inLanguage":"hi-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/in\/computer-science-ii\/"]}]},{"@type":"ImageObject","inLanguage":"hi-IN","@id":"https:\/\/www.booksofall.com\/in\/computer-science-ii\/#primaryimage","url":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/computer-science-II.jpg","contentUrl":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/computer-science-II.jpg","width":"595","height":"842","caption":"Computer Science II"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/in\/computer-science-ii\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/in\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/in\/categories\/"},{"@type":"ListItem","position":3,"name":"Computer Science II"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/in\/#website","url":"https:\/\/www.booksofall.com\/in\/","name":"BooksOffAll Indian","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/in\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/in\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"hi-IN"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/in\/#organization","name":"BooksOffAll Indian","url":"https:\/\/www.booksofall.com\/in\/","logo":{"@type":"ImageObject","inLanguage":"hi-IN","@id":"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOffAll Indian"},"image":{"@id":"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product\/20219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/media\/20227"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/media?parent=20219"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product_brand?post=20219"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product_cat?post=20219"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product_tag?post=20219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}