Skip to main content

Relational Data Base Manangement System

DBMS:
Ø  DBMS stands for Data base management system.
Ø  DBMS is a set of programs in an operating system that creates and maintains a database.
Ø  Allow user to store and restive data from database.


(Data base management system)
RDBMS:
Ø  RDBMS stands for Relational for Data base management system.
Ø  In Relational data base management system everything is maintained in table format.
Ø  Now a day’s relational database management system is most powerful.
Ø  In Relational database management system maintains relationship between among the tables.
Ø  Relational database management system is developed by Dr.E.F Codd in 1970.


Ø  In picture demonstrates about a relational model. In relational database management system every data is stores in table.
Ø  A table is combination of rows and columns.
Ø  In relational database management system each Row is called as Tuple.
Ø  In relational database management system each Column is called as Attributes.
Ø  Every database is divided into number of tables and they are connected through the “Key Fields“.
Ø  Data is in the form of a table. In table data is stored in form of rows and columns.
Ø  Key Fields“ are nothing but columns in a table.

Difference between DBMS and RDBMS:
Now a day’s RDBMS is Replaces the DBMS because.

DMBS:
  • In data base management system Data is stored in single table.
  • If you want to update record in a table you need to update an entire database.
  • It is very time processing.
  • No relationships between among the tables in data base management system.

Student_ID
Student Name
Address
Phone number
Maths
DBMS
1001
Rakesh
Khammam
123456
78
87
1002
Dave
USA
654123
88
98


  
RDBMS:
  • In Relational data base management system Data is stored in multiple tables among with relationship using “Key Fields”.
  • If you want to update record in a table you need to update an single table only.
  • Comparing to DBMS RDBMS is Very fast.
  • Relationships exists in  between among the tables in Relational  data base management system.
(Student Personal Table)

Student_ID
Student Name
Address
Phone number
1001
Rakesh
Khammam
123456
1002
Dave
USA
654123
(Marks Table)
Student_ID
  Maths
DBMS
1001
78
87
1002
88
98

In above Student Personal table and Marks table there is conman column is "Student_ID" is  called "Key Filed". if you want update the marks of the student you need to update only single table only.


Key Points RDBMS:
·         RDBMS stands for Relational database management system.
·         The model was developed by in IBM research scientist and mathematician Dr.E.F Codd in 1970.
·         Provides facility Primary key, unique identify rows in table.
·         RDBMS is most widely used in data model.
·         Majority of current database used relational database management system.        
·         In Relational data base management system data is stored in tables.
·         Tables are combination of Rows and Columns.
·         Rows are known as tuples.
·         Columns are known as attributes.
·         Each row in a table fixed number of attributes.
·         It reduces the data redundancy and data integrity with in database system.
·         Redundancy means avoid duplication of data.
·         Integrity means valid  data is stored in tables (By using constraints)  


Comments

Popular posts from this blog

How to Use Merge Statement Using XML Data

We now that merge statement in SQL SERVER. With Merge statement we can merge the data from Source table into Target table. In the Last article we have already seen about Merge Statement .   These articles we will work around merge statement over xml data type. We know that xml data type SQL SERVER. XML Data type is used to storing xml data used Bulk Insert Data into SQL Tables. Example: --Create Student Table if object_id ( 'Student' ) is null create table Student ( id int identity ( 1 , 1 ) , Name varchar ( 20 ), Marks int ) Declare Xml Data Type and Assign Some Xml Data. Declare @Data xml set @Data = '<Root> <Student> <Name>Rakesh</Name> <Marks>80</Marks> </Student> <Student> <Name>Mahesh</Name> <Marks>90</Marks> </Student> <Student> <Name>Gowtham</Name...

SP_MSForeachtable

Some times we need to query on the all the tables in one data base single statement. We use SP_MSForeachtable this is known as undocumented stored procedures . These all are system stored procedures. These stored procedures is place in Master database. NOTE: Please do not run all these queries in Production environment Example: create database UnDocumentedStoredProcedure use UnDocumentedStoredProcedure create table Emp ( ID int identity ( 1 , 1 ), Name varchar ( 50 ), Salary int ) insert into Emp ( Name , Salary ) values ( 'rakesh' , 8000 ),( 'raju' , 9000 ) create table Dept ( ID int identity ( 1 , 1 ), DeptName varchar ( 100 ) ) insert into Dept ( DeptName ) values ( 'CSE' ),( 'IT' ) We are created new database and also created some table with some dummy data. Select all tables data: exec sp_MSForeachtable 'select * from ?...