Fading Coder

One Final Commit for the Last Sprint

Implementing a Full‑Text Search Engine Directly Inside Your Database

Creating a full‑text search system inside a database involves setting up a lightweight inverted index using metadata tables, word lookup tables, and row mapping structures. The core idea is to tokenize text, map tokens to indexed rows, and query the result through prebuilt relationships without rely...

Executing DML and DDL Statements within PL/SQL

Table Definition Syntax CREATE TABLE table_name ( column1 data_type constraint, column2 data_type constraint ); Column Naming Convensions Avoid using numeric-only identifiers. Special characters are prohibited. Recommended practice: Use descriptive, snake_case names like employee_id or department_na...

Understanding Data Definition Language in SQL

Data Definition Language (DDL) serves as the foundation for managing the structural framework of a relational database. These SQL commands are responsible for defining, modifying, and removing schema objects such as databases, tables, indexes, and views. The CREATE Command The CREATE keyword facilit...

Advanced Subquery Usage in SQL WHERE Clauses

ANY Operator Variants The ANY operator supports three comparison patterns: Equality with ANY Functionally equivalent to IN operator: SELECT * FROM employees WHERE salary = ANY ( SELECT salary FROM employees WHERE position = 'MANAGER' ); Greater Than ANY Returns records exceeding the minimum value fr...

Updating Incomplete Exam Records in SQL

Problem Description The exam_record table stores user exam attempt records over multiple years. Each record contains the user ID, exam ID, start time, submission time, and score. Table Schema Field Type Description id int(11) Primary key, auto-increment uid int(11) User ID exam_id int(11) Exam ID st...

Database Locking Mechanisms and Concurrency Control

Global LockingGlobal locks restrict the entire database instance to a read-only state, preventing any data modification operations (insert, update, or delete) while the lock is active. This is often used for maintenance tasks or consistent backups.-- Acquire a global read lock FLUSH TABLES WITH READ...

Essential MySQL Query Patterns and Techniques

Conditional Query Execution Execute queries only when parameter are not empty: SELECT * FROM t_interlinkage WHERE IF('翁二翁' != '', name LIKE '%翁二翁%', 1=1); Enhanced fuzzy search with concatenation: SELECT * FROM t_interlinkage WHERE IF('翁二翁' != '', name LIKE CONCAT('%', '翁二翁', '%'), 1=1); Comma-Separ...

Essential SQL Commands and Syntax for MySQL Database Operations

Genarel SQL Syntax Rules SQL statements can span single or multiple lines, terminating with a semicolon Whitespace and indentation improve readability without affecting execution MySQL is case-insensitive for keywords (though uppercase is conventional) Comment syntax: Single-line: -- comment or # co...

Oracle Implicit vs Explicit Joins and MySQL One-to-Many Aggregation

In Oracle, the queries SELECT * FROM a, b WHERE a.id = b.id and SELECT * FROM a INNER JOIN b ON a.id = b.id are functionally equivalent. Both produce the same result set by matching rows from tables a and b where the id values are equal. However, they differ in syntax style and clarity. The comma-ba...

Excel Duplicate Identification and SQL Join Techniques

Identifying Duplicate Entries in Excel Three methods to locate repeated data in a column: Conditional Formatting: Select the target column. Navigate to Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values. Choose a foramtting style to visually mark duplicates. COUNTIF Fu...