Skip to content
Exercises · Q13
Q.

For the above given database STUDENT-PROJECT, can we perform the following operations?

Table: PROJECT

ProjectNoPNameSubmissionDate
101Airline Database12/01/2018
102Library Database12/01/2018
103Employee Database15/01/2018
104Student Database12/01/2018
105Inventory Database15/01/2018
106Railway Database15/01/2018

Table: PROJECT ASSIGNED

Registration_IDProjectNo
IP-101-15101
IP-104-15103
CS-103-14102
CS-101-14105
CS-101-10104

Table: STUDENT

Roll NoNameClassSectionRegistration_ID
11MohanXI1IP-101-15
12SohanXI2IP-104-15
21JohnXII1CS-103-14
22MeenaXII2CS-101-14
23JuhiXII2CS-101-10
  1. Insert a student record with missing roll number value.
  2. Insert a student record with missing registration number value.
  3. Insert a project detail without submission-date.
  4. Insert a record with registration ID IP-101-19 and ProjectNo 206 in table PROJECT-ASSIGNED.
West Bengal WbchseTextbookSubjective· 4mImportance★★★★★
48% · 14/29 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Concept understanding — Database Schema

Database Schema: The Blueprint of a Database

Imagine you are organising a large library. You don't just pile books randomly. First, you decide: What information will we keep about each book? Title, author, ISBN, shelf number. Then you decide: How are these pieces of information related? A book has one shelf, but a shelf holds many books. You also decide rules: Every book must have an ISBN; no two books can share the same ISBN.

That plan — the structure you design before you put a single book on the shelf — is the schema.

The Precise Meaning

A database schema is the formal, logical description of how data is organised in a database. It defines:

  • What tables exist (like "Books", "Members", "Loans")
  • What columns each table has (e.g., BookID, Title, Author, YearPublished)
  • What type of data each column holds (text, number, date, etc.)
  • What rules or constraints apply (e.g., "Every loan must refer to an existing member")
  • How tables relate to one another (e.g., "A member can borrow many books, but each loan record belongs to one member")

Think of the schema as the skeleton of the database. The actual data — the rows you fill in later — is the flesh and blood. The schema stays mostly unchanged; the data changes constantly.

Note

A common confusion: people say "the database" when they mean the data inside it. But the schema is the structure, not the data. Two databases can have the same schema but completely different data — like two schools using the same student record form but with different students' names.

Why the Schema Matters

Without a schema, data becomes a mess. You might store a customer's phone number in the "Name" column, or lose track of which orders belong to which customer. The schema prevents this by enforcing consistency and integrity.

Consider a bank. The schema says: "Every transaction must have an amount, a date, and a valid account number." If someone tries to enter a transaction without an account number, the database refuses — because the schema says so. This is not a software bug; it is a deliberate design choice built into the structure.

Key Components of a Schema

  • Tables – The main containers. Each table represents one kind of thing (Students, Products, Invoices).
  • Columns (Fields) – The attributes or properties of that thing (StudentName, DateOfBirth, Email).
  • Data Types – What kind of value each column holds (text, whole number, decimal, date).
  • Constraints – Rules that data must obey:
    • Primary Key – A unique identifier for each row (like a roll number). No two rows can share it.
    • Foreign Key – A column that links to another table's primary key, creating a relationship.
    • Not Null – A column that must always have a value.
    • Unique – A column where every value must be different.
  • Relationships – How tables connect: one-to-one, one-to-many, many-to-many. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.