SQL Joins

 JOIN Joins are used to extract data from one or more tables. There are different types of Joins in MySql. Let’s learn about them. 1. CROSS JOIN CROSS JOIN returns the Cartesian product of two tables. Every row of table1 is combined with every row of table2.              Example-  …

Read More

Basic SQL Commands

1. CREATE DATABASE It is used to create a new database. Syntax: CREATE DATABASE database_name; Example:      CREATE DATABASE school; 2. USE It is used to select a database before performing any operation. Syntax: USE database_name; Ex.-    USE school; 3. CREATE TABLE It is used to create a new table inside a database….

Read More

DBMS-MySQL

   DBMS (Database Management System)      1. Introduction DBMS stands for Database Management System. It is used to store, manage, and retrieve data efficiently. Example: MySQL, Oracle, SQL Server, MS Access, PostgreSQL.      2. Database A database is a collection of related data. It stores data in an organized form (tables). Example: A…

Read More

MySQL Functions

MySQL Functions Functions are used to perform some specific task. Every functions has a particular pre-defined tasks. functions are categorized into two parts. 1. Single Row Functions These functions operates on a single row at a time. These functions are categorized into following parts- i. Math Functions ii. String Functions iii. Date and Time functions…

Read More