MySQL + SQL · Lesson 2
Data, Processing और Information
Data क्या है?
Data raw, unorganized facts और figures हैं जिनका अकेले कोई अर्थ नहीं होता। Data numbers, text, symbols, images या sounds हो सकते हैं — लेकिन बिना context के ये कुछ नहीं बताते।
Raw data के examples:
45, Aarav, XII-A, 2025, 89, Khurja— ये अकेले कुछ नहीं बताते।- Temperature:
37, 38, 36, 40— बस numbers। - Attendance:
P, A, P, P, A— बिना context के अर्थहीन।
Data किसी system का Input होता है। इसे process करके meaningful बनाया जाता है।
Information क्या है?
Information वह processed, organized और meaningful data है जो decision-making में help करती है। जब raw data को context और structure मिलता है, वह Information बन जाती है।
Information के examples:
- "Aarav Sharma, Class XII-A, ने 2025 में Mathematics में 89 अंक पाए।"
- "Student Priya Verma इस महीने 5 बार absent रही है।"
- "April 2025 में कुल ₹2,45,000 fee collect हुई।"
Information किसी system का Output होती है।
Data vs Information – अंतर
| Feature | Data | Information |
|---|---|---|
| Definition | Raw, unorganized facts | Processed, meaningful facts |
| Meaning | अकेले कोई अर्थ नहीं | स्पष्ट अर्थ और context |
| Form | Numbers, text, symbols | Sentences, reports, charts |
| Use | Processing का Input | Decisions के लिए Output |
| Example | 89, Aarav, Math | Aarav को Math में 89 मिले |
Data Processing क्या है?
Data Processing वह series of operations है जो raw data पर perform होती है ताकि उसे meaningful information में convert किया जा सके।
Data Processing Cycle:
INPUT (Raw Data) → PROCESSING → OUTPUT (Information)
↑ |
|____________ STORAGE ________________|
- Input: Raw data collect करना (student marks database में enter करना)।
- Processing: Total, average, ranking calculate करना।
- Output: Result sheet, report card, attendance summary।
- Storage: Processed data को future use के लिए database में save करना।
Data Processing के प्रकार
| Type | मतलब | Example |
|---|---|---|
| Batch Processing | Data इकट्ठा करके एक साथ process | Monthly salary, electricity bill |
| Real-Time Processing | Data enter होते ही तुरंत process | ATM transaction, railway booking |
| Online Processing | Internet के ज़रिए continuously process | Online exam, e-commerce order |
| Distributed Processing | Multiple computers पर processing share | Bank systems, cloud databases |
Real School Example
-- Raw Data (अकेले meaningless)
INSERT INTO marks VALUES
(1, 'Aarav Sharma', 'Math', 89),
(1, 'Aarav Sharma', 'Science', 76),
(2, 'Priya Verma', 'Math', 91),
(2, 'Priya Verma', 'Science', 88);
-- Processing → Information बनाना
SELECT name,
SUM(marks) AS total_marks,
ROUND(AVG(marks), 2) AS percentage,
CASE WHEN AVG(marks) >= 75 THEN 'A' ELSE 'B' END AS grade
FROM marks
GROUP BY roll_no, name;
Raw marks (data) → SQL query process → Result with grade (information)
Common Mistakes
- Data और Information को एक मानना: "89" data है; "Aarav को Math में 89" information है।
- Database में information store करना: Database में raw fields (marks, subject) store करें — pre-made sentences नहीं।
- Processing step skip करना: Database data store करता है; SQL queries processing करती हैं।
- Data validation न करना: गलत data in = गलत information out।
Practice Tasks
- अपने school या daily life से Data के 3 और Information के 3 examples दें।
fee_collectiontable बनाएं। Raw data store करें। SQL query से monthly total fee (information) निकालें।- Data Processing Cycle को arrows के साथ draw करें — हर step पर school example लिखें।
- Viva answer: "Data और Information में क्या अंतर है?" — 3 lines में।
Summary
- Data = Raw facts (Input) — अकेले अर्थहीन।
- Information = Processed data (Output) — meaningful और useful।
- Data Processing = Data को Information में convert करना।
- Processing के types: Batch, Real-Time, Online, Distributed।
- MySQL में: Tables data store करती हैं; SELECT queries information देती हैं।
💻 लाइव कोड एडिटर
इस पेज के प्रोग्राम यहीं तैयार हैं — चलाएँ, बदलें और सीखें। कुछ भी इंस्टॉल किए बिना।
OneCompiler द्वारा संचालित। कोड एडिटर में अपने आप आ जाता है — Run दबाकर आउटपुट देखें। अगर एडिटर न खुले तो नए टैब में खोलें.