<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":5026,"date":"2022-10-26T07:26:01","date_gmt":"2022-10-26T07:26:01","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=5026"},"modified":"2022-10-26T07:27:35","modified_gmt":"2022-10-26T07:27:35","slug":"what-is-relational-algebra-in-dbms","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/","title":{"rendered":"What is Relational Algebra in DBMS ?"},"content":{"rendered":"<ul>\n<li style=\"text-align: justify;\">A procedural query language which is used widely is known as Relational Algebra.<\/li>\n<li style=\"text-align: justify;\">Instances of relation are given as input data and we get output as occurrences of relations<\/li>\n<li style=\"text-align: justify;\">Relational algebra uses various operations to perform this input and output action.<\/li>\n<li style=\"text-align: justify;\">In a relation sql relational query operations are performed recursively.<\/li>\n<li style=\"text-align: justify;\">Output for the above operations is a new relation, which is formed from one or more input relations.<\/li>\n<\/ul>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-5027 aligncenter\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms.jpg\" alt=\"\" width=\"680\" height=\"447\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms.jpg 680w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms-300x197.jpg 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms-390x256.jpg 390w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/p>\n<h2 id=\"types-of-relational-operation\" style=\"text-align: justify;\"><strong>Types of Relational Operation<\/strong><\/h2>\n<h3 id=\"select-operation\" style=\"text-align: justify;\">Select Operation<\/h3>\n<ul style=\"text-align: justify;\">\n<li>Tuples that satisfy a given predicate is selected by select operation.<\/li>\n<li>It is denoted by sigma(\u03c3).<\/li>\n<li><strong>Notation:\u00a0<\/strong>\u00a0\u03c3\u00a0p(r)\n<ul style=\"text-align: justify;\">\n<li>Where (\u03c3) is used for selection prediction.<\/li>\n<li>R is used for relation,<\/li>\n<li><strong>p <\/strong>is used as a propositional logic formula which may use connectors like: AND OR and NOT.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3 id=\"project-operation\" style=\"text-align: justify;\">Project Operation<\/h3>\n<ul style=\"text-align: justify;\">\n<li>List of attributes that wish to appear in the result is shown in project operation.<\/li>\n<li>Remaining attributes are eleminated from the table.<\/li>\n<li>It is denoted by \u220f.<\/li>\n<\/ul>\n<h3 id=\"union-operation\" style=\"text-align: justify;\">Union Operation<\/h3>\n<ul style=\"text-align: justify;\">\n<li>In union there are two tuples, R and S.<\/li>\n<li>The union operation that contains all the tuples are either in R or S or both in R &amp; S.<\/li>\n<li>It eliminates the duplicate tuples. It is denoted by \u222a.<\/li>\n<\/ul>\n<h3 id=\"notation-r-%e2%88%aa-s\" style=\"text-align: justify;\">Notation:\u00a0R\u00a0\u222a\u00a0S<\/h3>\n<ul style=\"text-align: justify;\">\n<li>Following condition should be held by Union operation.<\/li>\n<li>R and S must have the attribute of the same number.<\/li>\n<li>Duplicate tuples are eliminated automatically.<\/li>\n<\/ul>\n<h3 id=\"set-intersection\" style=\"text-align: justify;\">Set Intersection<\/h3>\n<ul style=\"text-align: justify;\">\n<li>Let us consider there are two tuples R and S. The set intersection operation contains all tuples that are in both R &amp; S.<\/li>\n<li>It is denoted by intersection \u2229.<\/li>\n<li><strong>Notation:<\/strong>\u00a0R\u00a0\u2229\u00a0S<\/li>\n<\/ul>\n<h3 id=\"cartesian-product\" style=\"text-align: justify;\">Cartesian product<\/h3>\n<ul style=\"text-align: justify;\">\n<li>The Cartesian product is used to combine each row in one table with each row in the other table. It is also known as a Cross product.<\/li>\n<li>It is denoted by X.<\/li>\n<li><strong>Notation:\u00a0<\/strong>E\u00a0X\u00a0D<\/li>\n<\/ul>\n<h3 id=\"rename-operation\" style=\"text-align: justify;\">Rename Operation<\/h3>\n<ul style=\"text-align: justify;\">\n<li>The rename operation is used to rename the output relation. It is denoted by\u00a0<strong>rho<\/strong>(\u03c1).<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>A procedural query language which is used widely is known as Relational Algebra. Instances of relation are given as input data and we get output as occurrences of relations Relational algebra uses various operations to perform this input and output action. In a relation sql relational query operations are performed recursively. Output for the above [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[7157],"tags":[18977,18970,18974,18969,18973,18971,18972,18975,18976],"class_list":["post-5026","post","type-post","status-publish","format-standard","hentry","category-dbms","tag-advantages-of-relational-algebra-in-dbms","tag-dbma-relational-algebra","tag-dbms-relational-algebra","tag-introduction-of-relational-algebra-in-dbms","tag-introduction-to-relational-algebra","tag-relational-algebra","tag-relational-algebra-in-dbms","tag-relational-algebra-in-dbms-with-examples","tag-types-of-relational-algebra-in-dbms"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is Relational Algebra in DBMS ? - DBMS Relational Algebra<\/title>\n<meta name=\"description\" content=\"What is Relational Algebra in DBMS ? - DBMS Relational Algebra - A procedural query language which is used widely is known as Relational Algebra.\" \/>\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.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Relational Algebra in DBMS ? - DBMS Relational Algebra\" \/>\n<meta property=\"og:description\" content=\"What is Relational Algebra in DBMS ? - DBMS Relational Algebra - A procedural query language which is used widely is known as Relational Algebra.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-26T07:26:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-26T07:27:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms.jpg\" \/>\n<meta name=\"author\" content=\"webmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webmaster\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/\",\"name\":\"What is Relational Algebra in DBMS ? - DBMS Relational Algebra\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms.jpg\",\"datePublished\":\"2022-10-26T07:26:01+00:00\",\"dateModified\":\"2022-10-26T07:27:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\"},\"description\":\"What is Relational Algebra in DBMS ? - DBMS Relational Algebra - A procedural query language which is used widely is known as Relational Algebra.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/#primaryimage\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms.jpg\",\"contentUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms.jpg\",\"width\":680,\"height\":447},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\",\"name\":\"webmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"caption\":\"webmaster\"},\"sameAs\":[\"https:\/\/www.wikitechy.com\/interview-questions\"],\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Relational Algebra in DBMS ? - DBMS Relational Algebra","description":"What is Relational Algebra in DBMS ? - DBMS Relational Algebra - A procedural query language which is used widely is known as Relational Algebra.","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.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/","og_locale":"en_US","og_type":"article","og_title":"What is Relational Algebra in DBMS ? - DBMS Relational Algebra","og_description":"What is Relational Algebra in DBMS ? - DBMS Relational Algebra - A procedural query language which is used widely is known as Relational Algebra.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/","og_site_name":"Wikitechy","article_published_time":"2022-10-26T07:26:01+00:00","article_modified_time":"2022-10-26T07:27:35+00:00","og_image":[{"url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms.jpg"}],"author":"webmaster","twitter_card":"summary_large_image","twitter_misc":{"Written by":"webmaster","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/","name":"What is Relational Algebra in DBMS ? - DBMS Relational Algebra","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms.jpg","datePublished":"2022-10-26T07:26:01+00:00","dateModified":"2022-10-26T07:27:35+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"description":"What is Relational Algebra in DBMS ? - DBMS Relational Algebra - A procedural query language which is used widely is known as Relational Algebra.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-relational-algebra-in-dbms\/#primaryimage","url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms.jpg","contentUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/relational-algebra-in-dbms.jpg","width":680,"height":447},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4","name":"webmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","caption":"webmaster"},"sameAs":["https:\/\/www.wikitechy.com\/interview-questions"],"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/5026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=5026"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/5026\/revisions"}],"predecessor-version":[{"id":5030,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/5026\/revisions\/5030"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=5026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=5026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=5026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}