Skip to main content

Schema and Instance in DBMS

Schema and Instance in DBMS

1. Instances :
Instances are the collection of information stored at a particular moment. The instances can be changed by certain operations as like addition, deletion of data. It may be noted that any search query will not make any kind of changes in the instances.

Example –
Let’s say a table teacher in our database whose name is School, suppose the table has 50 records so the instance of the database has 50 records for now and tomorrow we are going to add another fifty records so tomorrow the instance have total 100 records. This is called an instance.

2. Schema :
Schema is the overall description of the database. The basic structure of how the data will be stored in the database is called schema.

Schema and Instance in DBMS


Schema is of three types: Logical Schema, Physical Schema and view Schema.
  1. Logical Schema – It describes the database designed at logical level.
  2. Physical Schema – It describes the database designed at physical level.
  3. View Schema – It defines the design of the database at the view level.

Example –
Let’s say a table teacher in our database name school, the teacher table require the name, dob, doj in their table so we design a structure as :

Teacher table
name: String
doj: date
dob: date 

Above given is the schema of the table teacher.


Difference between Schema and Instance :


Schema
  • It is the overall description of the database.
  • Schema is same for whole database.
  • Does not change Frequently.
  • Defines the basic structure of the database i.e how the data will be stored in the database.

Instance
  • It is the collection of information stored in a database at a particular moment.
  • Data in instances can be changed using addition, deletion, updation.
  • Changes Frequently.
  • It is the set of Information stored at a particular time.

Comments

Popular posts from this blog

Joins in DBMS

DBMS Joins: Inner, THETA, Outer, Equi Types of Join Operations Join in DBMS is a binary operation that allows you to combine join product and selection in one single statement. The goal of creating a join condition is that it helps you to combine the data from two or more DBMS tables. The tables in DBMS are associated using the primary key and foreign keys. Types of Join There are mainly two types of joins in DBMS: Inner Joins: Theta, Natural, EQUI Outer Join: Left, Right, Full Inner Join Inner Join is used to return rows from both tables which satisfy the given condition. It is the most widely used join operation and can be considered as a default join-type An Inner join or equijoin is a comparator-based join which uses equality comparisons in the join-predicate. However, if you use other comparison operators like “>” it can’t be called equijoin. Inner Join further divided into three subtypes: Theta join Natural join EQUI join Theta Join Theta Join allows you to merge two tables ba...

Excel Shortcuts - Ctrl + N, Ctrl + O, Ctrl + S, Ctrl + W, Ctrl + F4, Ctrl + H, Ctrl + K, Ctrl + PageDown, Ctrl + PageUp, Ctrl + P, Ctrl + G, Ctrl + ;, Ctrl + Space, Ctrl + 9, Ctrl + 0, Ctrl + F1, Ctrl + X, Ctrl + End, Ctrl + Home, Ctrl + Delete

Excel Shortcuts (Image by - Sharma Guides | Subham232330) Ctrl + N = To create a new workbook Ctrl + O = To open an existing workbook Ctrl + S = To save a workbook Ctrl + W = To close the current workbook Ctrl + F4 = To close excel Ctrl + H = To display find and replace Ctrl + K = To insert a hyperlink Ctrl + PageDown = To move the next sheet Ctrl + PageUp = To move the previous sheet Ctrl + P = Print File Ctrl + G = Display "Go To" dialog box Ctrl + ; = Insert the current date Ctrl + Space = Select the entire column Ctrl + 9 = Hide selected row Ctrl + 0 = Hide selected column Ctrl + F1 = Expand or Collapse ribbon Ctrl + X = Cut selected cells Ctrl + End = Move to the last cell in the worksheet Ctrl + Home = Move to the first cell in the worksheet Ctrl + Delete = Delete end of line

What is Printer and its Types in Hindi

What is Printer and its Types in Hindi प्रिंटर क्या है? Printer कितने प्रकार के होते हैं और क्या होते हैं? प्रिंटर का इतिहास प्रिंटर क्या है? = वह यन्त्र जिसकी सहायता से कंप्यूटर से कागज पर कोई टेक्स्ट, चित्र आदि प्रिंट किया जाता है, उसे प्रिंटर कहते है। यह एक इलेक्ट्रॉनिक डिवाइस है। प्रिंटर के माध्यम से हम कंप्यूटर से कागज पर कोई भी टेक्स्ट या इमेज प्रिंट करते हैं, अर्थात हमें आउटपुट प्राप्त होता है। इसीलिए कंप्यूटर सिस्टम में प्रिंटर एक महत्वपूर्ण आउटपुट डिवाइस है। (Image Source - Google Images) प्रिंट आउट क्या है? = प्रिंटर के माध्यम से कागज पर किसी टेक्स्ट या इमेज या अन्य किसी चीज को प्रिंट करने की प्रक्रिया को प्रिंट आउट कहते हैं। प्रिंटर का इतिहास - हम जानते हैं कि चार्ल्स बैबेज को कंप्यूटर का जनक कहा जाता है। इसी बिच में प्रिंटर का आइडिया आया और उसी आइडिया से उन्होंने प्रिंटर डिजाइन किया और प्रिंटर का आविष्कार किया। पहला इलेक्ट्रिक प्रिंटर 1968 में जापानी कंपनी एप्सन द्वारा तैयार किया गया था, जिसे EP-101 कहा जाता है। फिर 1984 में एच. पी. कंपनी HP LaserJet नामक एक लेज़र प्रिंटर ब...