SQL-Structured Query Language in SQL

basic · SQL

SQL (Structured Query Language) is the standard programming language used to communicate with, manage, and manipulate relational databases. Core Functions of SQL Query Data (DQL): Retrieve specific data using SELECT statements (e.g., fetching a user profile or transaction history). Manipulate Data (DML): Insert new records ( INSERT ), modify existing entries ( UPDATE ), or delete records ( DELETE ). Define Structure (DDL): Create, modify, or drop tables, indexes, and database schemas ( CREATE , ALTER , DROP ). Control Access (DCL): Manage user permissions and security roles ( GRANT , REVOKE ). Relational Database Management System (RDBMS) Architecture In production software architecture, application code needs a permanent, structured layer to store and manage its data safely. While system memory (RAM) is fast, it is completely volatile—all data vanishes the moment a server restarts or a process crashes. An RDBMS is a specific type of database engine that organizes data into a structured grid of interconnected tables. This structural paradigm models data by mapping physical entities and business logic into an organized matrix: Table :   Is a structured collection of related data organized into a grid of horizontal rows and vertical columns, similar to a spreadsheet Row (Tuple / Record): A single horizontal entry inside a table representing one individual instance of that entity (e.g., one specific user profile). Column (Attribute / Field): A vertical structural field that defines a specific property type belonging to the entity schema layout (e.g., email_address , created_at ). Non-Relational Database (NoSQL) Architecture In modern production systems, Non-Relational (NoSQL) databases provide a flexible, schema-less alternatives to traditional tabular storage. Instead of forcing data into rigid grid tables with fixed rows and columns, NoSQL engines organize data into dynamic, hierarchical structures or key-value pairs designed to scale horizontally across distributed clusters. Document / Collection (The structural equivalents): Collection (Equivalent to Table): A logical grouping of related documents inside a database. Unlike a relational table, a collection does not enforce a rigid schema on every record it contains. Document (Equivalent to Row / Record): A single JSON, BSON, or key-value entry representing one entity instance. Documents store nested objects, arrays, and scalar values together in a self-contained unit. Field / Key (Equivalent to Column / Attribute): A specific key-value pair inside a document that defines a property. Fields can vary dynamically from one document to another within the same collection.

Back to SQL

Browse all study material on Careeroza