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

Coalesce function

Coalesce function returns the first non-null value among the arguments. Syntax: Coalesce (expression [,..n]) Here is example using Coalesce function Example 1 DECLARE @Str1 varchar ( 10 ), @str2 varchar ( 20 ), @Str3 varchar ( 20 ) SET @Str2 = 'Sql' , @Str3 = 'Server' SELECT COALESCE ( @Str1 , @str2 , @Str3 ) As [Coalesce] In above example @Str2 value is ‘Sql’ , @str3 value is ‘Server’  and @str1 values is Null because it not assigned any value . Output: It return’s “Sql” because Coalesce function return’s first non null value. Example 2: Coalesce in select statement. IF OBJECT_ID ( 'Employee' , 'U' ) IS NOT NULL DROP TABLE Employee CREATE TABLE Employee (   ID INT IDENTITY ( 1 , 1 ) PRIMARY KEY ,   NAME VARCHAR ( 20 ),   SALARY INT ) INSERT INTO Employee   ( NAME , SALARY ) VALUES ( 'Rakesh' , 5000 ),(NULL, 6000 ),( 'Naresh...

Variables in T-SQL

Variables can be used to store the data in temporally based on data type. Variable name begin with @ symbol. There are two types of variables in T-SQL. 1.   Local Variables (It must begin @ symbol). 2.   Global Variables (it must begin @@ symbol) this variables also known as system variables. Syntax Declare a Variable DECLARE   @Variable-Name   DATATYPE EXAMPLE: DECLARE   @Name   VARCHAR ( 100 ) In before 2008 versions of SQL SERVER we declare a variable and assign a value in 2 lines.                 DECLARE   @Name   VARCHAR ( 100 ) SET   @Name = 'LeadFirstSQL' In 2008 and Later versions of SQL SERVER we declare a variable and assign a value in single line. DECLARE   @Name   VARCHAR ( 100 )   = 'LeadFirstSQL' Variables must be declare and used with the same batch. DECLARE   @Name   VARCHAR ( 100 ) ...