ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

A Guided Tour of Databases for Beginners

Updated on April 18, 2015

For every work a new program was required but with the introduction of Databases this problem got resolved.Thanks to Database Management System(DBMS).

In Database Management System(DBMS),there is one database which is accessible to all.It requires updation at one place only and the updated database is accessible to all.Example,Mycin,Reservation System. It is multiuser processing system.

Characteristics of Database

1)Self describing nature of databases.

2)Insulation between program and data.

3)Sharing the data by multiuser processing system.

4)Support of multiple view of data.


Database Administrator (DBA) gives permissions to different levels of users.Example,gives permission to manager, clerk to manage some particular bank zone.

3 Tier Architecture of Database

  • Internal Level

Internal Level takes care of how data is stored internally in hard disk.It decides the method of access.Example, indexing, bucket hashing-how.Operating System (OS) decides this level. Lowest level of abstraction.

  • Conceptual Level

It is decided by programmer.Example, Name alphabetic, Address alphanumeric, Phone numeric. He decides data types of attributes.Higher level of abstraction.It includes entities and their relationships,attributes.

  • External Level

How data is being viewed to manager, clerk.Highest Level of abstraction. It decides how data will be viewed by different users.All have different view of same data.



Physical and Logical Data Independence

  • Physical Data Independence:

Internally changed but conceptually not changed.Partitioning made in different ways.People having name with A separated,B in other block..so accessing fast.


  • Logical Data Independence:

Database is so much updatable that external needs no change.

Components of DBMS

  • DDL

Compiler tells whether character type,numeric type, foreign key,primary key.Sets up,change, remove data structures from tables called Data Definition Language (DDL).

  • DML:

Compiler delete,modify,insert data.Example, student data.Here manipulation of data is done.

  • Data Dictionary

Data dictionary tells what type of data,where it is being used.It has to not start from beginning if new person comes.

  • File Manager

File Manager arranges files.

  • DataBase Manager

Database Manager is logical Entity that manages database.

Advantages of Database

1)Reduction of redundancies.

2)Space utilization.

3)Data integrity.

4)Security and backup

5)Concurrency control.

6)Program data Independence.

Entity Relationship Model(ER Model)

ER Model divides data into entities. Example, entities in a business and relationship they hold between themselves.

Entity,example,student.

Attribute:

In ER Diagram, attribute is shown by ellipse.

Key attribute, example, social security number, enrollment number.It is that column in a file that uniquely identifies a record.

Multivalued attribute:

Attribute which can contain multiple values i.e. multiple values related to an entity.Example, a person can have many phones. Phone attribute is multivalued.

ER Diagram for Student Information System of University
ER Diagram for Student Information System of University

Student Information System

ER Diagram for Student Information System


The above ER Diagram fulfils all the requirements for a University database that keeps track of student's information.

This ER Diagram contains (a)4 entities (objects relevant to the system being built)namely:

1)Student

2)Teacher

3)Department

4)Courses


(b)5 Relationships in this ER Diagram are:

1)Marksheet-This relationship exists between student and Teacher.

2)Teach-This relationship exists between Teacher and Courses.

3)Run-This relationship exists between Department and Courses.

4)Enrol_in-This relationship exists between fully participating entity 'Student' and Department.

5)Fees_in-This relationship exists between Student and Department.


All the relationships are binary relationships (of degree 2 i.e. 2 entities participate in the relationship).



Cardinality of relationship

Cardinality of relationship refers to the number of entity instances involved in the relationship.

Cardinality of relationship in ER Diagram for Student Information System of a University are:


1)Marksheet of one Student is prepared by one Teacher

Student: Teacher=1:1

2)Many Teachers teach many Courses=M:N

3)One Department runs many Courses.

Department:Courses=1:M

4)One Student enrolls in one Department.

Student: Department=1:1

5)Many Students pay fees in one Department (Finance)

Student: Department=M:1


Attributes

An attribute is a characteristic of an entity.

Attributes of the entities in the ER Diagram are:

I)For entity 'Student'

1)S_no

2)S_nm

3)S_addr


II)For entity 'Teacher'

1)T_nm

2)T_pH

3)T_addr

4)T_dept


III)For entity 'Courses'

1)C_nm

2)C_no


IV)For entity 'Department'

1)D_no

2)D_nm

3)D_ph


Identifier

Identifier is a special attribute used to identify a specific instance of an entity.

Typically we look for unique identifiers.

Identifiers for this ER Diagram are:

1)S_no uniquely identifies 'Student'.

2)T_nm uniquely identifies 'Teacher'.

3)C_no uniquely identifies 'Courses'.

4)D_no uniquely identifies 'Department'.

Comments

    0 of 8192 characters used
    Post Comment

    • sriv profile imageAUTHOR

      Parul Srivastava 

      3 years ago from Lucknow,India

      Thanks lions44 for commenting and visiting.

    • lions44 profile image

      CJ Kelly 

      3 years ago from Auburn, WA

      Great piece. You know your stuff. Voted up and shared.

    • sriv profile imageAUTHOR

      Parul Srivastava 

      3 years ago from Lucknow,India

      Thanks.

    • Venkatachari M profile image

      Venkatachari M 

      3 years ago from Hyderabad, India

      Very useful hub about Databases and their multiple benefits. Even though I am not aware of it's ABCD, I believe it is valuable for most of them using it. Voted up.

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://hubpages.com/privacy-policy#gdpr

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)