{"id":3228,"date":"2022-06-15T10:23:49","date_gmt":"2022-06-15T04:53:49","guid":{"rendered":"https:\/\/cbsepython.in\/?p=3228"},"modified":"2023-12-28T09:43:01","modified_gmt":"2023-12-28T04:13:01","slug":"introduction-to-database-concept-class-12-notes","status":"publish","type":"post","link":"https:\/\/cbsepython.in\/introduction-to-database-concept-class-12-notes\/","title":{"rendered":"Introduction to Database Concept Class 12 Notes"},"content":{"rendered":"<h2><span style=\"color: #000000;\">Introduction to Database Concept Class 12 Notes<\/span><\/h2>\n<p><span style=\"color: #000000;\">In this article you will learn the basic database management system concepts which will be helpful to the students appering in CBSE class 12 board examination this year.\u00a0\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #000000;\">What is Database Management System:<\/span><\/h2>\n<p><span style=\"color: #000000;\">A Database Management System (DBMS) is a software that can be used to create and manage databases. DBMS allows users to create a database, store, manage, update\/modify and retrieve data from that database by users or application programs. Some examples of DBMS are MySQL, Oracle, PostgreSQL, SQL Server, Microsoft Access, MongoDB.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #000000;\">Key Concepts in DBMS:<\/span><\/h2>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">1. Database Schema: <\/span><\/h3>\n<p><span style=\"color: #000000;\">Database Schema is the design of a database. It is the skeleton of the database that represents the structure (table names and their fields\/columns), the type of data each column can hold, constraints on the data to be stored (if any), and the relationships among the tables. Database Schema is also called as the visual or logical architecture as it tells how the data are organized in a database<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">2. Data Constraint: <\/span><\/h3>\n<p><span style=\"color: #000000;\">Constraints are the conditions that are put on columns for ensuring accuracy and reliability of data being stored in a table. Some constraints are NOT NULL, UNIQUE, PRIMARY KEY etc<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">3. Meta\u2013Data or Data Dictionary: <\/span><\/h3>\n<p><span style=\"color: #000000;\">The database schema along with various constraints on the data is stored by DBMS in a database catalog or dictionary, called meta-data. A meta-data is data about the data.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">4. Database Instance: <\/span><\/h3>\n<p><span style=\"color: #000000;\">After creating a database it is empty, that is without data. Further it is possible add, remove or modify data in database. The data present in database at any state is known as Database Instance<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">5. Query: <\/span><\/h3>\n<p><span style=\"color: #000000;\">A query is a request to a database for obtaining information in a desired way. Query can be made to get data from one table or from a combination of tables. <\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">6. Data Manipulation: <\/span><\/h3>\n<p><span style=\"color: #000000;\">In a database, Inserting or Deleting or Updating of data is referred as Data Manipulation.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">7. Database Engine: <\/span><\/h3>\n<p><span style=\"color: #000000;\">It is the underlying component or set of programs used by a DBMS to create database and handle various queries for data retrieval and manipulation.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #000000;\"><strong>Database Concept Class 12 Notes<\/strong><\/span><\/p>\n<h2><span style=\"color: #000000;\">Relational Data Model:<\/span><\/h2>\n<p><span style=\"color: #000000;\">A Data Model gives the way of representing data. Different data models available are Object\u2013Oriented Data Model, Entity\u2013Relationship Data Model, Document Model, Hierarchical Model, Relational Data Model etc. If the data has been represented in form of Relations (Tables) then such a model is called as Relational Data Model.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">1. Relation \/ Table: <\/span><\/h3>\n<p><span style=\"color: #000000;\">A two dimensional representation of data arranged in form of rows and columns is called a Relation or Table. In the above example, the name of the relation is STUDENT<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">2. Attribute: <\/span><\/h3>\n<p><span style=\"color: #000000;\">The column names or characteristics of the table are known as Attributes or Fields.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">3. Tuple: <\/span><\/h3>\n<p><span style=\"color: #000000;\">The horizontal subset of a table is called as Tuple or Row or Record. In the above example, there are 6 tuples.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">4. Domain: <\/span><\/h3>\n<p><span style=\"color: #000000;\">It refers to the set of values that can be provided to a column.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">5. Degree: <\/span><\/h3>\n<p><span style=\"color: #000000;\">The number of attributes in a table is called as Degree of the table.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">6. Cardinality: <\/span><\/h3>\n<p><span style=\"color: #000000;\">The number of tuples in a table is called as Cardinality of the table.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #000000;\">Database Concept Class 12 Notes<\/span><\/strong><\/p>\n<h2><span style=\"color: #000000;\">Keys in a Relational Database:<\/span><\/h2>\n<p><span style=\"color: #000000;\">The tuples within a relation must be distinct. It means no two tuples in a table should have same value for all attributes. Relational data model imposes some restrictions or constraints on the values of the attributes and how the contents of one relation be referred through another relation. A few keys used in Relational Database are as follows<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">1. Candidate Key: <\/span><\/h3>\n<p><span style=\"color: #000000;\">A Candidate key is an attribute or combination of attributes that can uniquely identify a row. A table may have more than one candidate key.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">2. Primary Key: <\/span><\/h3>\n<p><span style=\"color: #000000;\">A Primary Key is an attribute or combination of attributes that uniquely identifies a row and shows two characteristics called UNIQUE and NOT NULL. A Primary Key will be one from the available candidate keys. A table may consist of only one primary key.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">3. Alternate Key: <\/span><\/h3>\n<p><span style=\"color: #000000;\">All the Candidate keys except Primary Key are called as Alternate Keys.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">4. Composite Primary Key: <\/span><\/h3>\n<p><span style=\"color: #000000;\">If a Primary Key is having more than one attributes then such a Primary Key is called as Composite Primary Key.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">5. Foreign Key: <\/span><\/h3>\n<p><span style=\"color: #000000;\">A Foreign key is used to link two tables with primary key and foreign key relationship that enforces referential integrity.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #000000;\"><span style=\"color: #ff0000;\">Also Read:<\/span> <\/span><\/h2>\n<h2><span style=\"color: #800080;\"><a style=\"color: #800080;\" href=\"https:\/\/cbsepython.in\/database-questions-for-class-12\/\"><span style=\"text-decoration: underline;\">Database Management System Questions with answer for board preparation<\/span><\/a><\/span><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>Introduction to Database Concept Class 12 Notes In this article you will learn the basic database management system concepts which will be helpful to the students appering in CBSE class 12 board examination this year.\u00a0\u00a0 &nbsp; What is Database Management System: A Database Management System (DBMS) is a software that can be used to create [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,20],"tags":[],"class_list":["post-3228","post","type-post","status-publish","format-standard","hentry","category-cbse-sample-papers-class-12","category-cbse-computer-science-with-python-class-12"],"_links":{"self":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/3228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/comments?post=3228"}],"version-history":[{"count":0,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/3228\/revisions"}],"wp:attachment":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/media?parent=3228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/categories?post=3228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/tags?post=3228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}