Tag

sql Archives - Crazy Education

SQL Joins

By | MYSQL, Programming | No Comments

SQL joins are used to combine rows from two or more tables. SQL JOIN An SQL JOIN clause is used to combine rows from two or more tables, based on a common field between them. The most common type of join is: SQL INNER JOIN (simple join). An SQL INNER…

Read More

SQL Aliases

By | MYSQL, Programming | No Comments

SQL aliases are used to temporarily rename a table or a column heading. SQL Aliases SQL aliases are used to give a database table, or a column in a table, a temporary name. Basically aliases are created to make column names more readable. SQL Alias Syntax for Columns SQL Alias…

Read More

SQL BETWEEN Operator

By | MYSQL, Programming | No Comments

The BETWEEN operator is used to select values within a range. The SQL BETWEEN Operator The BETWEEN operator selects values within a range. The values can be numbers, text, or dates. SQL BETWEEN Syntax Demo Database In this tutorial we will use the well-known Northwind sample database. Below is a…

Read More

SQL IN Operator

By | MYSQL, Programming | No Comments

The IN Operator The IN operator allows you to specify multiple values in a WHERE clause. SQL IN Syntax Demo Database In this tutorial we will use the well-known Northwind sample database. Below is a selection from the “Customers” table: CustomerID CustomerName ContactName Address City PostalCode Country 1 Alfreds Futterkiste…

Read More

SQL UPDATE Statement

By | MYSQL, Programming | No Comments

SQL UPDATE Statement The UPDATE statement is used to update records in a table. The SQL UPDATE Statement The UPDATE statement is used to update existing records in a table. SQL UPDATE Syntax UPDATE table_name SET column1=value1,column2=value2,… WHERE some_column=some_value; Note Notice the WHERE clause in the SQL UPDATE statement! The…

Read More

SQL WHERE Clause

By | MYSQL, Programming | No Comments

SQL WHERE Clause The WHERE clause is used to filter records. The SQL WHERE Clause The WHERE clause is used to extract only those records that fulfill a specified criterion. SQL WHERE Syntax Demo Database In this tutorial we will use the well-known Northwind sample database. Below is a selection…

Read More