A transaction is a unit of work that is performed against a database. Transactions are units or sequences of work accomplished in a logical order, whether in a manual fashion by a user or automatically by some sort of a database program.
The difference between RDBMS and DBMS is that of ACID princples.
SQL is a language to operate databases; SQL is Structured Query Language, which is a computer language for storing,
manipulating and retrieving data stored in a relational database.
SQL is the standard language for Relational Database System.
The Relational Database Management Systems (RDBMS) like MySQL,
MS Access, Oracle, Sybase, Informix, Postgres and SQL Server use
SQL as their standard database language.
MySQL is an open-source relational database management system.
XAMPP is a cross-platform web server that is free and open-source. XAMPP is a short form for Cross-Platform,
SQL Data Type is an attribute that specifies the type of data of any object. Each column, variable and expression has a related data type in SQL. You can use these data types while creating your tables. You can choose a data type for a table column based on your requirement.
In MySQL there are three main data types:
Text
VARCHAR
Creates a new table, a view of a table, or other object in the database.
CREATE DATABASE databasename;
Deletes an entire table, a view of a table or other objects in the database.
DROP DATABASE databasename;
Creates a record.
INSERT INTO table_name( column1, column2....columnN)
VALUES ( value1, value2....valueN);
Modifies records.
UPDATE table_name
SET column1 = value1, column2 = value2....columnN=valueN
[ WHERE CONDITION ];
Deletes records.
DELETE FROM table_name
WHERE {CONDITION};
There are several built-in functions like avg(), sum(), count(), etc., to perform what is known as the aggregate data calculations against a table or a specific table column. SELECT COUNT(*) AS "RECORDS" FROM CUSTOMERS;
The SQL Joins clause is used to combine records from two or more tables in a database. A JOIN is a means for combining fields from two tables by using values common to each.
SELECT ID, NAME, AGE, AMOUNT
FROM CUSTOMERS, ORDERS
WHERE CUSTOMERS.ID = ORDERS.CUSTOMER_ID;
Returns rows when there is a match in both tables.
SELECT table1.column1, table2.column2...
FROM table1
INNER JOIN table2
ON table1.common_field = table2.common_field;
Returns all rows from the left table, even if there are no matches in the right table.
SELECT table1.column1, table2.column2...
FROM table1
LEFT JOIN table2
ON table1.common_field = table2.common_field;
Returns all rows from the right table, even if there are no matches in the left table.
SELECT table1.column1, table2.column2...
FROM table1
RIGHT JOIN table2
ON table1.common_field = table2.common_field;