<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Robiul Awal</title>
    <description>The latest articles on DEV Community by Robiul Awal (@robiul_91awal).</description>
    <link>https://dev.to/robiul_91awal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2812543%2Fe8eac5a9-d220-4ca9-82fb-6ed2c651b6eb.png</url>
      <title>DEV Community: Robiul Awal</title>
      <link>https://dev.to/robiul_91awal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/robiul_91awal"/>
    <language>en</language>
    <item>
      <title>Index Type</title>
      <dc:creator>Robiul Awal</dc:creator>
      <pubDate>Mon, 10 Feb 2025 06:46:45 +0000</pubDate>
      <link>https://dev.to/robiul_91awal/index-type-5854</link>
      <guid>https://dev.to/robiul_91awal/index-type-5854</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Primary Index
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use for uniquely identifying rows (primary key).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A primary index is automatically created when you define a primary key in a table.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It enforces uniqueness and ensures that no two rows have the same value in the primary key column(s).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In many databases (e.g., MySQL with InnoDB), the primary index is also a clustered index, meaning it determines the physical order of data in the table.&lt;br&gt;
&lt;code&gt;How it works&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The primary index stores the primary key values in a sorted order (e.g., a B-tree structure).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When you query using the primary key, the database can quickly locate the row.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use it for the column(s) that uniquely identify each row in the table (e.g., id).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
CREATE TABLE employees (&lt;br&gt;
    id INT PRIMARY KEY,  -- Primary key (and primary index) is created automatically&lt;br&gt;
    name VARCHAR(100),&lt;br&gt;
    department VARCHAR(50)&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Query using the primary key&lt;/code&gt;&lt;br&gt;
SELECT * FROM employees WHERE id = 101;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Secondary Index
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use for speeding up queries on non-key columns.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A secondary index is any index that is not the primary index.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is created on non-primary key columns to speed up queries that filter, sort, or join on those columns.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Secondary indexes are typically non-clustered, meaning they store a separate data structure pointing to the actual rows.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The secondary index stores the indexed column values along with a pointer to the corresponding row in the table.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When you query using the indexed column, the database uses the secondary index to locate the rows.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use it for columns frequently used in WHERE, JOIN, ORDER BY, or GROUP BY clauses.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example: &lt;br&gt;
&lt;code&gt;CREATE INDEX idx_department ON employees (department);  -- Secondary index&lt;/code&gt;&lt;br&gt;
&lt;code&gt;SELECT * FROM employees WHERE department = 'Sales';&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Unique Index
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use to enforce uniqueness in a column.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A unique index ensures that all values in the indexed column(s) are unique.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is similar to a primary index but does not have to be the primary key.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The unique index prevents duplicate values from being inserted into the indexed column(s).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It can be created on one or more columns.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use it to enforce uniqueness in a column (e.g., email, username).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example: CREATE UNIQUE INDEX idx_email ON employees (email);  -- Unique index&lt;br&gt;
&lt;code&gt;Attempting to insert duplicate values will result in an error:&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;INSERT INTO employees (id, name, email) VALUES (1, 'John', '&lt;a href="mailto:john@example.com"&gt;john@example.com&lt;/a&gt;');&lt;br&gt;
INSERT INTO employees (id, name, email) VALUES (2, 'Jane', '&lt;a href="mailto:john@example.com"&gt;john@example.com&lt;/a&gt;');  -- Error: Duplicate email&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Composite Index
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use for queries involving multiple columns.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A composite index is an index created on multiple columns.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The order of columns in the index matters: the leftmost column is used first for searching.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The composite index stores a combination of values from the indexed columns.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is useful for queries that filter or sort by multiple columns.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use it when queries frequently filter or sort by multiple columns together.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
CREATE INDEX idx_dept_salary ON employees (department, salary);  -- Composite index&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Query using the composite index:&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;SELECT * FROM employees WHERE department = 'Sales' AND salary &amp;gt; 50000;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Clustered Index
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use for range queries or sorting (one per table).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A clustered index determines the physical order of data in a table.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A table can have only one clustered index (usually the primary key).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The data rows are stored in the order of the clustered index.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The clustered index stores the actual data rows in the index structure (e.g., a B-tree).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When you query using the clustered index, the database can retrieve the data directly.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use it for columns frequently used in range queries (e.g., BETWEEN, &amp;gt;, &amp;lt;) or for columns that are often sorted.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;CREATE CLUSTERED INDEX idx_clustered ON employees (id);  -- Clustered index&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Query using the clustered index:&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;SELECT * FROM employees WHERE id BETWEEN 100 AND 200;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Full-Text Index
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use for advanced text search in large text fields.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A full-text index is used for efficient searching of text data (e.g., searching for words or phrases in large text fields).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It supports advanced text search features like keyword matching, phrase matching, and relevance ranking.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The full-text index breaks down the text into tokens (words) and stores them in an optimized structure for fast searching.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is commonly used with MATCH and AGAINST clauses in SQL.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use it for columns containing large text data (e.g., description, comments).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;CREATE FULLTEXT INDEX idx_description ON products (description);  -- Full-text index&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Query using the full-text index:&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;SELECT * FROM products WHERE MATCH(description) AGAINST('database');&lt;a href="https://dev.toURL"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftt5fk3jo1jl1xa2dwxqd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftt5fk3jo1jl1xa2dwxqd.png" alt="Image description" width="540" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;When to Use Which Index?&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Scenario    Recommended Index&lt;br&gt;
Uniquely identifying rows ==&amp;gt;   Primary Index&lt;br&gt;
Speeding up queries on non-key columns ==&amp;gt;  Secondary Index&lt;br&gt;
Enforcing uniqueness    ==&amp;gt; Unique Index&lt;br&gt;
Filtering/sorting by multiple columns   ==&amp;gt; Composite Index&lt;br&gt;
Range queries or sorting ==&amp;gt;    Clustered Index&lt;br&gt;
Searching text data ==&amp;gt; Full-Text Index&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to install MySql on Linux</title>
      <dc:creator>Robiul Awal</dc:creator>
      <pubDate>Fri, 07 Feb 2025 04:54:33 +0000</pubDate>
      <link>https://dev.to/robiul_91awal/how-to-install-mysql-on-linux-1ai6</link>
      <guid>https://dev.to/robiul_91awal/how-to-install-mysql-on-linux-1ai6</guid>
      <description>&lt;p&gt;&lt;code&gt;Step 1: Update Your Package List&lt;/code&gt;&lt;br&gt;
sudo apt update&lt;br&gt;
&lt;code&gt;Step 2: Install MySQL Server&lt;/code&gt;&lt;br&gt;
sudo apt install mysql-server&lt;br&gt;
&lt;code&gt;Step 3: Start MySQL Service&lt;/code&gt;&lt;br&gt;
sudo systemctl start mysql&lt;br&gt;
&lt;code&gt;Step 4: Enable MySQL to Start on Boot&lt;/code&gt;&lt;br&gt;
sudo systemctl enable mysql&lt;br&gt;
&lt;code&gt;Step 5: Secure MySQL Installation&lt;/code&gt;&lt;br&gt;
Need to run the following command to set up security options like setting a root password, removing anonymous users, and disabling remote root login:&lt;/p&gt;

&lt;p&gt;sudo mysql_secure_installation&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>tutorial</category>
      <category>linux</category>
    </item>
    <item>
      <title>Types of Database Relationships</title>
      <dc:creator>Robiul Awal</dc:creator>
      <pubDate>Thu, 06 Feb 2025 15:46:25 +0000</pubDate>
      <link>https://dev.to/robiul_91awal/types-of-database-relationships-1k9</link>
      <guid>https://dev.to/robiul_91awal/types-of-database-relationships-1k9</guid>
      <description>&lt;h2&gt;
  
  
  One-to-One (1:1) Relationship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Definition: A single record in one table is related to only one record in another table, and vice versa.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Example: A User table and a UserProfile table, where each user has only one profile.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use Case: Used when I want to split a table for security, performance, or organizational reasons.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;One-to-One Code Example&lt;/code&gt;&lt;br&gt;
Add a foreign key to one of the tables that references the primary key of the other table.&lt;/p&gt;

&lt;p&gt;CREATE TABLE User (&lt;br&gt;
    user_id INT PRIMARY KEY,&lt;br&gt;
    username VARCHAR(50)&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;CREATE TABLE UserProfile (&lt;br&gt;
    profile_id INT PRIMARY KEY,&lt;br&gt;
    user_id INT UNIQUE,&lt;br&gt;
    bio TEXT,&lt;br&gt;
    FOREIGN KEY (user_id) REFERENCES User(user_id)&lt;br&gt;
);&lt;/p&gt;

&lt;h2&gt;
  
  
  One-to-Many (1:N ) Relationship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Definition: A single record in one table can be related to one or more records in another table.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Example: A Customer table and an Orders table, where one customer can place many orders.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use Case: Most common relationship type, used in scenarios like blog posts and comments, or authors and books.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;One to Maney Code Example&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Add a foreign key to the "many" side table that references the primary key of the "one" side table.&lt;/p&gt;

&lt;p&gt;CREATE TABLE Customer (&lt;br&gt;
    customer_id INT PRIMARY KEY,&lt;br&gt;
    name VARCHAR(100)&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;CREATE TABLE Orders (&lt;br&gt;
    order_id INT PRIMARY KEY,&lt;br&gt;
    customer_id INT,&lt;br&gt;
    order_date DATE,&lt;br&gt;
    FOREIGN KEY (customer_id) REFERENCES Customer(customer_id)&lt;br&gt;
);&lt;/p&gt;

&lt;h2&gt;
  
  
  Many-to-Many (M:N ) Relationship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Definition: Multiple records in one table are related to multiple records in another table.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Example: A Students table and a Courses table, where many students can enroll in many courses.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Implementation: Requires a junction table (also called an associative entity or bridge table) to link the two tables.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;Many-to-Many Code Example&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Create a junction table with foreign keys referencing the primary keys of both tables.&lt;/p&gt;

&lt;p&gt;CREATE TABLE Students (&lt;br&gt;
    student_id INT PRIMARY KEY,&lt;br&gt;
    name VARCHAR(100)&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;CREATE TABLE Courses (&lt;br&gt;
    course_id INT PRIMARY KEY,&lt;br&gt;
    course_name VARCHAR(100)&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;CREATE TABLE StudentCourses (&lt;br&gt;
    student_id INT,&lt;br&gt;
    course_id INT,&lt;br&gt;
    PRIMARY KEY (student_id, course_id),&lt;br&gt;
    FOREIGN KEY (student_id) REFERENCES Students(student_id),&lt;br&gt;
    FOREIGN KEY (course_id) REFERENCES Courses(course_id)&lt;br&gt;
);&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Database data types</title>
      <dc:creator>Robiul Awal</dc:creator>
      <pubDate>Wed, 05 Feb 2025 02:48:40 +0000</pubDate>
      <link>https://dev.to/robiul_91awal/database-data-types-5ci3</link>
      <guid>https://dev.to/robiul_91awal/database-data-types-5ci3</guid>
      <description>&lt;p&gt;Database data can be stored in a column of a table. Each database management system (DBMS) like MySQL, PostgreSQL, or SQL Server has its own set of data types, but many are similar across systems. Let’s dive into the most common database data types:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Numeric Data Types (Used for storing numbers)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt; Integer Types&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;INT or INTEGER: Stores whole numbers (e.g., 5, -10).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TINYINT: A smaller range of integers (e.g., 0 to 255).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SMALLINT: A slightly larger range than TINYINT.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;BIGINT: A very large range of integers.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;=&amp;gt; Floating-Point Types&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;FLOAT: Stores approximate decimal numbers (e.g., 3.14).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DOUBLE or REAL: Stores larger or more precise decimal numbers.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DECIMAL(p, s) or NUMERIC(p, s): Stores exact decimal numbers with precision (p) and scale (s). For example, DECIMAL(5, 2) can store 123.45.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;String Data Types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt; Fixed-Length Strings&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CHAR(n): Stores a fixed-length string of n characters (e.g., CHAR(10) for "Hello____").&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;=&amp;gt; Variable-Length Strings&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;VARCHAR(n): Stores a variable-length string up to n characters (e.g., VARCHAR(255) for "Hello").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TEXT: Stores large text data (e.g., paragraphs or documents).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Date and Time Data Types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt; Date&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;DATE: Stores a date in the format YYYY-MM-DD (e.g., 2023-10-25)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;=&amp;gt; Time&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;TIME: Stores a time in the format HH:MM:SS (e.g., 14:30:00).&lt;br&gt;
=&amp;gt; Date and Time&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DATETIME: Stores both date and time (e.g., 2023-10-25 14:30:00).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TIMESTAMP: Similar to DATETIME, but often used for tracking changes (e.g., row updates).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Binary Data Types&lt;/strong&gt;&lt;br&gt;
Used for storing binary data like images, files, or serialized objects.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;BINARY(n): Stores fixed-length binary data&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;VARBINARY(n): Stores variable-length binary data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;BLOB: Stores large binary objects (e.g., images or files)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Boolean Data Type&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;BOOLEAN or BOOL: Stores TRUE or FALSE values.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Specialized Data Types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt; Enumerated Types&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ENUM: Stores a value from a predefined list (e.g., ENUM('Red', 'Green', 'Blue')).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;=&amp;gt; JSON&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JSON: Stores JSON-formatted data (e.g., {"name": "Alice", "age": 25}).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;=&amp;gt; UUID&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;UUID: Stores universally unique identifiers (e.g., 123e4567-e89b-12d3-a456-426614174000).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;. Examples in SQL&lt;/strong&gt;&lt;br&gt;
Here’s how you might define a table with different data types in SQL:&lt;/p&gt;

&lt;p&gt;CREATE TABLE Employees (&lt;br&gt;
    EmployeeID INT PRIMARY KEY,          -- Integer&lt;br&gt;
    FirstName VARCHAR(50),               -- Variable-length string&lt;br&gt;
    LastName VARCHAR(50),                -- Variable-length string&lt;br&gt;
    BirthDate DATE,                      -- Date&lt;br&gt;
    Salary DECIMAL(10, 2),               -- Decimal number&lt;br&gt;
    IsActive BOOLEAN,                    -- Boolean&lt;br&gt;
    ProfilePicture BLOB,                 -- Binary data&lt;br&gt;
    CreatedAt TIMESTAMP                  -- Date and time&lt;br&gt;
);&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
