The text version of each map is open below it. The map itself scrolls sideways.
Unit 1: Database Concepts
Sections 1.1–1.6 of the handbook.
Text version of this map
- 1.1–1.2 Data and database
- Data: raw facts; information: processed
- Database: related, organised data
- Problems of files: redundancy, inconsistency
- 1.4 DBMS
- Define, populate, manipulate
- Share, protect, maintain
- Self-describing: metadata in catalogue
- Program-data independence
- DBMS users and trade-offs
- End users, DBA
- Application programmers, system analyst
- Pros: less redundancy, consistency, security
- Cons: cost; security and recovery overheads
- 1.5 Relational model
- E. F. Codd, IBM, 1970
- Relation, tuple, attribute, domain
- Degree = columns; cardinality = rows
- NULL: unknown, unavailable, not applicable
- Keys
- Superkey: unique combination
- Key: minimal superkey
- Candidate keys → one primary key
- Foreign key refers to a primary key
- Constraints
- Domain, key, NOT NULL
- Entity integrity: primary key not NULL
- Referential: foreign key matches or is NULL
- SQL: DDL
- CREATE DATABASE; USE; SHOW TABLES; DESC
- CHAR, VARCHAR, DATE, INTEGER, DECIMAL(m,d)
- PRIMARY KEY, FOREIGN KEY, DEFAULT
- ON DELETE CASCADE / SET NULL / RESTRICT
- ALTER TABLE ADD / DROP; DROP TABLE
- SQL: DML
- INSERT INTO ... VALUES
- UPDATE ... SET ... WHERE
- DELETE FROM ... WHERE
- No WHERE = every row changes
- SQL: queries
- SELECT ... FROM ... WHERE
- DISTINCT; IS NULL (never = NULL)
- LIKE: % many, _ one character
- ORDER BY ASC/DESC; joins; IN (nested)
- SQL: aggregates
- COUNT(*) vs COUNT(col) skips NULL
- SUM, AVG, MAX, MIN
- GROUP BY
- HAVING filters groups; WHERE filters rows
- Book notes
- MySQL 8.0.16+ enforces CHECK
- ORDER is reserved: use ORDERS
Unit 2: Operating Web
Sections 2.1–2.6 of the handbook.
Text version of this map
- 2.1 Web applications
- Run in a browser, available 24x7
- Financial: reservation, shopping, bills
- Information: e-governance, tutorials
- 2.2 Online reservation
- Airline, rail, bus, movie, hotel
- Users: convenient, compare prices, quick confirmation
- Providers: less staff, no location limits
- IRCTC: sign up → find trains → book → pay
- Password safety
- Mix cases, numbers, symbols
- Never use family names
- Don't share or write down passwords
- 2.3 E-governance
- ICT for services and information
- NICNET 1987; DISNIC for districts
- NeGP 2006 (DeitY, DAR&PG)
- india.gov.in; goidirectory.nic.in
- 2.4 Online shopping
- Browse → account → cart → pay
- Card, net banking, e-gift voucher
- Cash on delivery; wire transfer
- Ratings, reviews; read terms first
- 2.5 Online learning
- Video/slide, interactive, webinar
- Khan Academy, Coursera, edX, Udacity
- w3schools, GCFLearnFree, NCERT
- Any place, any pace, open to all
- 2.6 Project phases
- Requirement: feasibility and scope
- Design: site map, database, page layout
- Implementation: back end, front end, connect
- Testing; planning and monitoring throughout
- Case studies
- Hangman: 7 guesses; Category, Words tables
- Quiz: Admin_Login, Quiz Info, User_Info, Result
- Bill calculator: User_Info, Bill_Info
Unit 3: Fundamentals of Java Programming
Sections 3.1–3.12 of the handbook.
Text version of this map
- 3.1 Introduction
- Compiler → bytecode (.class)
- JVM runs bytecode: platform independent
- NetBeans: Run File Shift+F6, project F6
- Comments: // and /* */
- 3.2 Data types
- byte, short, int, long
- float, double, char, boolean
- String in double quotes
- Names: no spaces, no reserved words
- 3.3 Operators
- Arithmetic: + − * / %; int / int drops the fraction
- Relational: == != > < >= <=
- Logical && || ! (booleans only)
- a -= b gives −10 for 20 and 30
- 3.4 Decisions
- if, if-else, if-else-if ladder
- Nested if
- switch with break; default
- Without break: falls through
- 3.4 Loops
- while: entry-controlled
- do-while: runs at least once
- for: init; test; update
- Beware off-by-one and infinite loops
- 3.5 Arrays
- Same type values; index 0 to n−1
- new double[5] or {…}
- length gives the size
- Past the end: ArrayIndexOutOfBounds
- 3.6 Methods
- Return type, name, parameters, body
- void returns nothing
- static: call without an object
- Arguments are copied into parameters
- 3.7–3.8 Classes
- Class = template; object = instance
- Constructor: class name, no return type
- private + getters and setters
- Default access is package-level
- 3.9 Libraries
- Scanner(System.in); next()
- Integer.parseInt()
- Arrays.sort(); binarySearch: negative = absent
- String: charAt, length, indexOf, replace
- 3.10 Exceptions
- try, catch, finally
- finally always runs
- e.getMessage()
- 10 / 0 throws; 10.0 / 0 = Infinity
- 3.11 Database connectivity
- java.sql package
- DriverManager → Connection
- Statement → ResultSet; rs.next()
- jdbc:mysql://localhost:3306/db
- 3.12 Advanced
- assert; enable with -ea
- Threads: extend Thread or Runnable
- Wrappers: Integer, Double, Character
Unit 4: Work Integrated Learning IT–DMA
Sections 4.1–4.3 of the handbook.
Text version of this map
- 4.2 Work areas
- Banking, education, hospitals
- Airlines, railways, hotels
- E-commerce, telecom, government
- 4.3 Shopping site tables
- CATEGORY, PRODUCT, SELLER
- CUSTOMER, WISH_LIST
- ORDER, SHIPMENT, PAYMENT
- Keys and relationships
- PRODUCT → CATEGORY, SELLER
- WISH_LIST: composite key
- ORDER → CUSTOMER, PRODUCT, SHIPMENT
- PAYMENT → ORDER
- Design fixes
- ORDER is reserved → ORDERS
- Up to 5 ids in one field → ORDER_ITEM
- Contact_num INT too small → VARCHAR
- Classes and functions
- One Java class per table
- insert, delete, modify, display
- display_order tracks an order
- JDBC executeUpdate for changes
- Design questions
- Sort products by popularity or price
- Refunds on cancellation
- Deleting a customer account
- Seller ratings; multiple sellers