Database & Spreadsheets
ഡാറ്റാബേസും സ്പ്രെഡ്ഷീറ്റുകളും
Covers spreadsheet architecture (workbooks, worksheets, cell addressing, relative/absolute/mixed references), core formulas and functions (SUM, AVERAGE, COUNT, COUNTA, IF, VLOOKUP), data tools (Pivot Tables, charts, sorting, filtering), DBMS and RDBMS relational concepts (tuples, attributes, degree, cardinality), database keys and normalisation (1NF–3NF), and SQL command categories (DDL, DML, DCL, TCL).
സ്പ്രെഡ്ഷീറ്റ് ഘടന (വർക്ക്ബുക്ക്, വർക്ക്ഷീറ്റ്, സെൽ റഫറൻസിംഗ്), ഫോർമുലകളും ഫംഗ്ഷനുകളും (SUM, AVERAGE, COUNT, COUNTA, IF, VLOOKUP), പിവറ്റ് ടേബിളുകളും ചാർട്ടുകളും, DBMS-ഉം RDBMS-ഉം (ടപ്പിൾ, ആട്രിബ്യൂട്ട്, ഡിഗ്രി, കാർഡിനാലിറ്റി), ഡാറ്റാബേസ് കീകളും നോർമലൈസേഷനും, SQL കമാൻഡുകളും (DDL, DML, DCL, TCL) ഉൾക്കൊള്ളുന്ന പഠനഭാഗം.
Key Study Notes (5 Units)
Workbooks, Cell Addressing & Reference Types
- Spreadsheet applications such as MS Excel (.xlsx) and LibreOffice Calc (.ods) organize tabular data inside Workbooks containing multiple Worksheets arranged in numbered Rows (1, 2, 3...) and lettered Columns (A, B, ..., Z, AA...).
- The intersection of a column and row forms a Cell identified by its Cell Address (e.g., B5); the currently selected cell is the Active Cell, whose contents appear in the Formula Bar.
- Relative Reference (e.g., A1) automatically adjusts row and column coordinates when a formula is copied or dragged with the Fill Handle.
- Absolute Reference (e.g., A1) locks both column and row using the dollar sign ($) so the reference remains fixed regardless of where the formula is copied (toggled via F4 in Excel / Shift+F4 in Calc).
- Mixed Reference locks either only the column (A1) or only the row (A1), enabling dynamic multiplication tables and tax/rate matrices.
Formulas, Core Functions, Pivot Tables & Charts
- Every spreadsheet formula or function begins with an equals sign (=) and follows standard arithmetic precedence (Parentheses, Exponents, Multiplication/Division, Addition/Subtraction); text concatenation uses the ampersand (&).
- Essential aggregate functions: =SUM(A1:A10) totals values, =AVERAGE(A1:A10) computes the arithmetic mean, =MIN()/=MAX() find extremes, =COUNT() counts numeric cells only, whereas =COUNTA() counts all non-empty cells (numbers + text).
- Logical and lookup functions: =IF(condition, trueval, falseval) evaluates decisions, while =VLOOKUP(key, tablerange, colindex, FALSE) searches vertically in the first column of a range.
- A Pivot Table is an interactive summarization tool that dynamically groups, aggregates, and cross-tabulates large datasets without altering the source table.
- Spreadsheet Charts visualize trends: Column/Bar charts compare discrete categories, Line charts show trends over time, Pie charts display percentage shares of a whole (100%), and XY Scatter plots show correlation between two numeric variables.
Database Management Systems & RDBMS Terminology
- Data refers to raw, unorganized facts, whereas Information is processed, meaningful data; a Database is an organized collection of interrelated data managed by a DBMS (e.g., MySQL, PostgreSQL, Oracle, LibreOffice Base).
- A DBMS eliminates problems of traditional flat-file systems by minimizing Data Redundancy (duplicate storage), preventing Data Inconsistency, and enforcing Data Integrity and security.
- Proposed by E. F. Codd (1970), the Relational DBMS (RDBMS) stores data in 2D Tables called Relations.
- In RDBMS terminology, each Row is a Tuple (or Record), each Column is an Attribute (or Field), and the set of permissible values for an attribute is its Domain.
- The Degree of a relation is its total number of columns (attributes), while the Cardinality of a relation is its total number of rows (tuples).
Relational Keys, Referential Integrity & Normalisation
- A Super Key is any attribute set that uniquely identifies a row; a Candidate Key is a minimal super key with no redundant attributes.
- A Primary Key is the chosen candidate key that uniquely identifies every tuple in a table; it must contain unique values and can never be NULL (Entity Integrity).
- Remaining candidate keys not selected as the primary key are called Alternate Keys; a key formed by combining two or more columns is a Composite Key.
- A Foreign Key is an attribute in one table that references the Primary Key of another table, enforcing Referential Integrity and linking related tables.
- Database Normalisation reduces redundancy and update anomalies: 1NF ensures atomic (single-valued) attributes, 2NF removes partial dependencies on a composite key, and 3NF removes transitive dependencies between non-key attributes.
SQL Command Categories & Query Clauses
- DDL (Data Definition Language) defines or alters database schema structure using CREATE, ALTER, DROP (deletes table + schema), and TRUNCATE (removes all rows while keeping structure).
- DML (Data Manipulation Language) queries and modifies table data using SELECT, INSERT, UPDATE, and DELETE.
- DCL (Data Control Language) manages user access permissions using GRANT and REVOKE; TCL (Transaction Control Language) manages transactions via COMMIT, ROLLBACK, and SAVEPOINT.
- Key SELECT clauses: WHERE filters individual rows before grouping, ORDER BY sorts results (ASC/DESC), DISTINCT eliminates duplicate rows, and GROUP BY aggregates rows using COUNT, SUM, AVG, MIN, or MAX.
- The HAVING clause filters grouped results after GROUP BY (whereas WHERE cannot test aggregate functions), and JOIN combines rows from two or more tables based on a related column.
Practice MCQs with Answers (10)
In a spreadsheet application such as MS Excel or LibreOffice Calc, which cell reference remains completely unchanged when a formula is copied to another row or column?
MS Excel അല്ലെങ്കിൽ LibreOffice Calc പോലുള്ള സ്പ്രെഡ്ഷീറ്റുകളിൽ, ഒരു ഫോർമുല മറ്റൊരു വരിയിലേക്കോ നിരയിലേക്കോ പകർത്തുമ്പോൾ ഒട്ടും മാറ്റം വരാത്ത സെൽ റഫറൻസ് ഏതാണ്?
Show Answer & Explanation
If cells A1 to A5 in a spreadsheet contain the values `10`, `20`, `Pass`, `30`, and an empty cell respectively, what value does `=COUNT(A1:A5)` return?
ഒരു സ്പ്രെഡ്ഷീറ്റിലെ A1 മുതൽ A5 വരെയുള്ള സെല്ലുകളിൽ യഥാക്രമം `10`, `20`, `Pass`, `30`, ഒരു ശൂന്യമായ സെൽ എന്നിവയാണുള്ളതെങ്കിൽ `=COUNT(A1:A5)` എന്ന ഫംഗ്ഷന്റെ ഫലം എന്തായിരിക്കും?
Show Answer & Explanation
Who proposed the Relational Database Model in 1970, organizing data into two-dimensional tables of rows and columns?
1970-ൽ ഡാറ്റയെ വരികളും നിരകളുമുള്ള ദ്വിമാന പട്ടികകളായി ക്രമീകരിക്കുന്ന റിലേഷണൽ ഡാറ്റാബേസ് മാതൃക (Relational Database Model) അവതരിപ്പിച്ചത് ആരാണ്?
Show Answer & Explanation
Consider the following statements regarding Relational Database Management System (RDBMS) terminology: 1. A single row in a relational table is known as a Tuple, while a single column is known as an Attribute. 2. The total number of rows in a table is called its Degree, and the total number of columns is called its Cardinality. 3. The set of all permissible values that an attribute can take is called its Domain. Which of the statements given above are correct?
റിലേഷണൽ ഡാറ്റാബേസ് (RDBMS) പദാവലിയുമായി ബന്ധപ്പെട്ട താഴെ പറയുന്ന പ്രസ്താവനകൾ പരിശോധിക്കുക: 1. ഒരു റിലേഷണൽ പട്ടികയിലെ ഓരോ വരിയും ടപ്പിൾ (Tuple) എന്നും ഓരോ നിരയും ആട്രിബ്യൂട്ട് (Attribute) എന്നും അറിയപ്പെടുന്നു. 2. ഒരു പട്ടികയിലെ ആകെ വരികളുടെ എണ്ണത്തെ ഡിഗ്രി (Degree) എന്നും ആകെ നിരകളുടെ എണ്ണത്തെ കാർഡിനാലിറ്റി (Cardinality) എന്നും വിളിക്കുന്നു. 3. ഒരു ആട്രിബ്യൂട്ടിന് സ്വീകരിക്കാൻ കഴിയുന്ന അനുവദനീയമായ എല്ലാ മൂല്യങ്ങളുടെയും കൂട്ടത്തെ ഡൊമെയ്ൻ (Domain) എന്ന് വിളിക്കുന്നു. മുകളിൽ നൽകിയവയിൽ ശരിയായ പ്രസ്താവനകൾ ഏവ?
Show Answer & Explanation
Match the following SQL command categories with their representative commands: (a) DDL (Data Definition Language) — 1. GRANT, REVOKE (b) DML (Data Manipulation Language) — 2. CREATE, ALTER, DROP (c) DCL (Data Control Language) — 3. COMMIT, ROLLBACK (d) TCL (Transaction Control Language) — 4. SELECT, INSERT, UPDATE Choose the correct match:
താഴെ പറയുന്ന SQL കമാൻഡ് വിഭാഗങ്ങളെ അവയുടെ ഉദാഹരണ കമാൻഡുകളുമായി ചേരുംപടി ചേർക്കുക: (a) DDL (Data Definition Language) — 1. GRANT, REVOKE (b) DML (Data Manipulation Language) — 2. CREATE, ALTER, DROP (c) DCL (Data Control Language) — 3. COMMIT, ROLLBACK (d) TCL (Transaction Control Language) — 4. SELECT, INSERT, UPDATE ശരിയായ ജോഡി തിരഞ്ഞെടുക്കുക:
Show Answer & Explanation
Which database constraint links a column in a child table to the Primary Key of a parent table in order to enforce referential integrity?
റഫറൻഷ്യൽ ഇന്റഗ്രിറ്റി (Referential Integrity) ഉറപ്പാക്കുന്നതിനായി ഒരു പട്ടികയിലെ നിരയെ മറ്റൊരു പട്ടികയിലെ പ്രൈമറി കീയുമായി ബന്ധിപ്പിക്കുന്ന കീ ഏതാണ്?
Show Answer & Explanation
In SQL, what is the key difference between the `DROP TABLE` and `TRUNCATE TABLE` commands?
SQL-ലെ `DROP TABLE`, `TRUNCATE TABLE` എന്നീ കമാൻഡുകൾ തമ്മിലുള്ള പ്രധാന വ്യത്യാസം എന്താണ്?
Show Answer & Explanation
Consider the following statements regarding SQL query clauses: 1. The `WHERE` clause filters individual rows before any grouping occurs. 2. The `HAVING` clause is used to filter groups created by `GROUP BY` based on aggregate conditions such as `COUNT(*) > 5`. 3. The `ORDER BY` clause eliminates duplicate rows from the query output. Which of the statements given above are correct?
SQL ക്വറി ക്ലോസുകളുമായി ബന്ധപ്പെട്ട താഴെ പറയുന്ന പ്രസ്താവനകൾ പരിശോധിക്കുക: 1. ഗ്രൂപ്പിംഗിന് മുമ്പായി വ്യക്തിഗത വരികളെ ഫിൽട്ടർ ചെയ്യാൻ `WHERE` ക്ലോസ് ഉപയോഗിക്കുന്നു. 2. `GROUP BY` വഴി രൂപീകരിച്ച ഗ്രൂപ്പുകളെ `COUNT(*) > 5` പോലുള്ള അഗ്രിഗേറ്റ് വ്യവസ്ഥകൾ അടിസ്ഥാനമാക്കി ഫിൽട്ടർ ചെയ്യാൻ `HAVING` ക്ലോസ് ഉപയോഗിക്കുന്നു. 3. ക്വറി ഔട്ട്പുട്ടിൽ നിന്ന് ആവർത്തിച്ചു വരുന്ന വരികൾ (Duplicates) ഒഴിവാക്കാൻ `ORDER BY` ക്ലോസ് ഉപയോഗിക്കുന്നു. മുകളിൽ നൽകിയവയിൽ ശരിയായ പ്രസ്താവനകൾ ഏവ?
Show Answer & Explanation
In database normalisation, which normal form specifically eliminates transitive dependencies between non-key attributes after partial dependencies have already been removed?
ഡാറ്റാബേസ് നോർമലൈസേഷനിൽ, പാർഷ്യൽ ഡിപൻഡൻസി ഒഴിവാക്കിയ ശേഷം നോൺ-കീ ആട്രിബ്യൂട്ടുകൾ തമ്മിലുള്ള ട്രാൻസിറ്റീവ് ഡിപൻഡൻസി (Transitive Dependency) നീക്കം ചെയ്യുന്ന നോർമൽ ഫോം ഏതാണ്?
Show Answer & Explanation
Match the following spreadsheet tools and chart types with their most appropriate analytical use: (a) Pie Chart — 1. Visualizing correlation between two numeric variables (b) Line Chart — 2. Summarizing and cross-tabulating large tables dynamically (c) Pivot Table — 3. Showing proportional percentage shares of a single total (d) XY Scatter Plot — 4. Tracking continuous trends over time intervals Choose the correct match:
താഴെ പറയുന്ന സ്പ്രെഡ്ഷീറ്റ് ടൂളുകളെയും ചാർട്ട് വിഭാഗങ്ങളെയും അവയുടെ ഏറ്റവും അനുയോജ്യമായ ഉപയോഗവുമായി ചേരുംപടി ചേർക്കുക: (a) പൈ ചാർട്ട് (Pie Chart) — 1. രണ്ട് സംഖ്യാ വേരിയബിളുകൾ തമ്മിലുള്ള പരസ്പരബന്ധം (Correlation) കാണിക്കാൻ (b) ലൈൻ ചാർട്ട് (Line Chart) — 2. വലിയ പട്ടികകളെ ചലനാത്മകമായി സംഗ്രഹിച്ച് വിശകലനം ചെയ്യാൻ (c) പിവറ്റ് ടേബിൾ (Pivot Table) — 3. ഒരൊറ്റ ആകെ തുകയുടെ ശതമാന വിഹിതം കാണിക്കാൻ (d) XY സ്കാറ്റർ പ്ലോട്ട് — 4. കാലയളവിലുടനീളമുള്ള തുടർച്ചയായ മാറ്റങ്ങൾ കാണിക്കാൻ ശരിയായ ജോഡി തിരഞ്ഞെടുക്കുക: