Q.Create table STUDENT.
🔒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 — Table Creation
Table Creation: The Art of Organising Information
Think of the last time you tried to find a specific contact in your phone. If all your contacts were just listed in one long, unbroken list — no groups, no alphabetical order, no search — you would have to scroll through every single name to find the one you need. That is the problem that table creation solves.
In everyday life, we create tables all the time without thinking about it. A timetable for your classes, a cricket scorecard, a menu with prices — each of these is a table. The instinct to arrange information into rows and columns is natural because it makes comparison and retrieval fast. Table creation, in the context of your studies, is simply the deliberate, systematic act of doing this with data so that it becomes meaningful and usable.
What Exactly Is a Table?
A table is a structured arrangement of data in rows and columns. Each row typically represents one complete record or observation — for example, one student, one month, one product. Each column represents a particular characteristic or variable of that record — for example, name, marks, price, date.
The power of a table lies in its ability to show relationships at a glance. When data is scattered in a paragraph, you have to read and mentally compare. When it is in a table, your eye can move vertically down a column or horizontally across a row, spotting patterns, extremes, and gaps instantly.
In your NCERT textbooks for commerce and humanities subjects — especially in Economics, Statistics, and Business Studies — tables are the primary tool for presenting data before any analysis begins. They are not decorative; they are the foundation on which interpretation is built.
The Core Elements of a Table
Every proper table has a few essential parts. Understanding these will help you both read tables and create your own.
- Title: A clear, concise heading that tells the reader what the table contains. It should answer the questions: what, where, and when. For example, "Monthly Sales of ABC Ltd., April–September 2023" is far better than just "Sales Data."
- Column Headings (Captions): These label each column and describe the type of data it holds. They must be precise — "Revenue (in ₹ lakh)" is clearer than just "Revenue."
- Row Headings (Stubs): These label each row, usually on the leftmost column. They identify what each row represents — for instance, the names of months, products, or regions.
- Body of the Table: The actual data cells where numbers or text entries sit. This is the heart of the table.
- Source Note: A line below the table stating where the data came from. This is crucial for credibility, especially in exam answers and project work.
- Footnotes (if needed): Any clarification about a specific entry — for example, an asterisk explaining that a figure is an estimate.
Why Table Creation Matters for You
In your exams and assignments, you will often be asked to present raw data in tabular form. This is not busywork. The examiner wants to see that you can:
- Identify the key variables in a given set of information.
- Classify and group data logically.
- Present it without ambiguity so that anyone reading can understand it immediately.
A well-created table can turn a confusing jumble of numbers into a clear story. For instance, if you are given the population figures of five states over three census years, a table lets you see at once which state grew fastest, which declined, and how each compares to the others. Without the table, you would have to hold all those numbers in your head. …
CREATE TABLE STUDENT with the book's own real columns: RollNumber, SName, SDateofBirth, GUID.
CREATE TABLE STUDENT(
RollNumber INT,
SName VARCHAR(20),
SDateofBirth DATE,
GUID CHAR(12),
PRIMARY KEY (RollNumber));
Output:
Query OK, 0 rows affected (0.91 sec) …
CREATE TABLE STUDENT with the book's own real columns: RollNumber, SName, SDateofBirth, GUID.
CREATE TABLE STUDENT(
RollNumber INT,
SName VARCHAR(20),
SDateofBirth DATE,
GUID CHAR(12),
PRIMARY KEY (RollNumber));
Output:
Query OK, 0 rows affected (0.91 sec) …
- CBSE 2024Set 91/42 marksQ.(A) Ms. Veda created a table named Sports in a MySQL database, containing columns Game_id, P_Age and G_name. After creating the table, she realized that the attribute, Category has to be added. Help her to write a command to add the Category column. Thereafter, write the command to insert the following record in the table: Game_id: G42 P_Age: Above 18 G_name: Chess Category: Senior(OR)(B) Write the SQL commands to perform the following tasks:(i) View the list of tables in the database, Exam.(ii) View the structure of the table, Term1.
›Reveal solutionSolution
Part (a):
ALTER TABLE Sports ADD Category VARCHAR(20);to add the column, thenINSERT INTO Sports VALUES(...)to add the row. Part (b):SHOW TABLES FROM Exam;lists tables andDESCRIBE Term1;shows a table's structure.Part (a)
To add a new attribute to an existing table you modify its structure with ALTER TABLE ... ADD, giving the new column a name and a data type. Since
Categorystores text like 'Senior', aVARCHARis appropriate.ALTER TABLE Sports ADD Category VARCHAR(20);Now the table has four columns: Game_id, P_Age, G_name, Category. Insert the record with INSERT INTO; string values go in single quotes. Naming the columns is good practice but optional if you supply values in table order.
INSERT INTO Sports (Game_id, P_Age, G_name, Category) VALUES ('G42', 'Above 18', 'Chess', 'Senior'); ``` …
🎓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.