Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

What is relational model ? Explain with example.

  1. Relational Model Overview:
    • The relational model is a way to organize and represent data in a structured manner.
    • It’s commonly used in commercial applications for managing data.
    • It uses tables to represent data and the relationships between different pieces of data.
    • Each table has columns (attributes) with unique names.
  2. Example Database:
    • Imagine you have information about bank customers, their accounts, and the relationship between customers and accounts.
  3. Tables:
    • Customer Table (Table 2.1.1):
      • Columns: cust_id, c_name, c_city
      • Rows represent different customers with their ID, name, and city.
    • Account Table (Table 2.1.2):
      • Columns: acc_no, balance
      • Rows represent different accounts with their number and balance.
    • Depositor Table (Table 2.1.3):
      • Columns: cust_id, acc_no
      • Rows represent the relationship between customers and their accounts

Customer Table (Table 2.1.1):

cust_idc_namec_city
C_101AjayDelhi
C_102AmitMumbai
C_103AlokKolkata
C_104AkashChennai

Account Table (Table 2.1.2):

acc_nobalance
A-11000
A-22000
A-33000
A-44000

Depositor Table (Table 2.1.3):

cust_idacc_no
C_101A-1
C_102A-2
C_103A-3
C_104A-4

Leave a Comment