Tag: sql server

 

SQL - in simple words, it is a programming language for structured queries (Structured Query Language), which is used as an effective way to save data, find its parts, update, extract from the...

 

SQL ALTER TABLE statement is used to add, modify or delete columns in a table. ALTER TABLE SQL statement is also used to rename a table. Add a column to a table SQL syntax of ALTER TABLE...

 

SQL AVG function is used to return the average value of an expression in the SELECT operator. Syntax for AVG function in SQL SELECT AVG(aggregate_expression_id) FROM tabs [WHERE conds]Or...

 

SQL MAX function is used to return the maximum value of an expression in the SELECT operator. Syntax for MAX function in SQL SELECT MAX(aggregate_expression_id) FROM tabs [WHERE conds]Or...

 

SQL SUM function is used to return the sum of an expression in the SELECT operator. Syntax for SUM function in SQL SELECT SUM(aggregate_expression_id) FROM tabs [WHERE conds]Or syntax for...

 

Sql Count Function - COUNT is used to calculate the number of rows returned in the SELECT operator. Syntax for COUNT function in SQL SELECT COUNT(aggregate_expression_id) FROM tabs [WHERE...

 

SQL ALIASES (temporary names for columns or tables) with syntax and examples. SQL ALIASES can be used to create a temporary name for columns or tables.Column aliases are used to make it...

 

SQL comments - In SQL you can comment on your code like any other language. Comments can appear in one line or take up several lines. Let's take a look at how to comment on your SQL...

 

SQL EXISTS condition is used in combination with a subquery and is considered satisfied if the subquery returns at least one line. It can be used in the SELECT, INSERT, UPDATE or DELETE...

 

The SQL BETWEEN condition allows you to easily check if the expression is in the range of values (inclusive). It can be used in the SELECT, INSERT, UPDATE or DELETE operator. Syntax for BETWEEN...

 

The IS NOT NULL condition is used in SQL to check a value other than NULL. It returns TRUE if a non-zero value is found, otherwise it returns FALSE. It can be used in SELECT, INSERT, UPDATE or...

 

The IS NULL condition is used in SQL to check the NULL value. It returns TRUE if NULL is found, otherwise it returns FALSE. It can be used in SELECT, INSERT, UPDATE or DELETE. Syntax for IS NULL...

 

The SQL condition NOT (sometimes called the NOT operator) is used to override the condition in the WHERE sentence of the SELECT, INSERT, UPDATE or DELETE operator. Syntax of NOT condition in...

 

The SQL condition IN (sometimes called the IN operator) makes it easy to check if the expression matches a value in the list of values. It is used to help reduce the need for multiple OR...

 

The SQL condition LIKE allows you to use wildcards to match the pattern in the query. The LIKE condition is used in the WHERE clause of the SELECT, INSERT, UPDATE or DELETE operator. Syntax for...

 

SQL condition OR is used to check several conditions in SELECT, INSERT, UPDATE or DELETE. Any of the conditions must be met to select a record. Syntax for SQL condition OR WHERE cond1 OR...

 
10