Tag: sql server
The EXCEPT SQL statement is used to return all lines in the first SELECT statement that are not returned by the second SELECT statement. Each SELECT operator will define a data set. EXCEPT will...
The MINUS SQL operator is used to return all lines in the first SELECT operator, which are not returned by the second SELECT operator. Each SELECT operator will define the data set. The MINUS...
INTERSECT SQL Server statement - The statement is used to return 2 or more SELECT statements. However, it returns only the strings selected by all queries or data sets. If a record exists in one...
UNION ALL SQL Server operator is used to combine the resulting sets of 2 or more SELECT operators. It does not remove repeating rows between different SELECT operators (all rows are...
TRUNCATE TABLE SQL server statement is used to delete all records from a table. It performs the same function as the DELETE operator, without the WHERE offer.Warning: when truncating a table,...
SQL operator SELECT TOP is used to extract records from one or more tables in a database and limit the number of records to be returned based on a fixed value or percentage.Tip: SELECT TOP is...
SQL operator SELECT LIMIT is used to extract records from one or more tables in the database and limit the number of records to be returned based on the limit value.Tip: SELECT LIMIT is not...
SQL Server operator ORDER BY is used to sort records in the SELECT query result set. Syntax for ORDER BY statement in SQL Sorting by one field:SELECT * FROM tab n WHERE condition ORDER BY...
SQL Server GROUP BY operator can be used in SELECT operator to collect data by several records and group results by one or more columns. Syntax of GROUP BY statement in SQL SELECT expr1, expr2,...
SQL RTRIM - The RTRIM function can remove all specified characters from the right side of the string in Oracle/PLSQL. Syntax of the Oracle/PLSQL RTRIM function RTRIM( string_d, [ trim_string_d...
IDENTITY SQL - The table property in Microsoft SQL Server is IDENTITY_INSERT. Using this property, we can insert an explicit value into the autoincrement column with IDENTITY that was previously...
Microsoft SQL Server 2012 - a fully ready-to-use information platform in the cloud, which provides confidence in the reliability of business-critical systems when working with data and...
SQL IIF function of T-SQL language, which is designed to simplify the writing of conditional constructions using the well-known expression CASE or operators IF...ELSE...THEN.IIF is a logical...
DDL / DML - If you have an Oracle database and want to explore the capabilities of the FIRST_VALUE analytics function yourself, then below we provide the DDL and DML that you will need. DDL...
SQL Server Connection String - method of determining the database connection string. Using this line the application (program) can access the database elements (tables, views, charts,...
The ISNULL SQL Server function checks the value of some expression. If it is NULL, the function returns a value which is passed as the second parameter: ISNULL(expression, value). Syntax of...