• Search
The Sql Dev
Sql Development, PowerShell, and more ...
Skip to content
  • Search
Category: SQL Server
Home Archive for category "SQL Server"

Category: SQL Server

SQL Server

How to delete duplicate rows

Duplicate rows can occur for different reasons and there are a few different approaches that can be taken to delete them from a table. However, the state of the duplicate rows will determine what approach can be used to remove them. I have created a table with stock info in …

Andy Stowell 2022-11-11 2022-11-11 SQL Server
Continue reading"How to delete duplicate rows"

Random Numbers in SQL

If you need to generate random number in SQL. Sql Server has the RAND() function. The RAND() function will return a random float value. It can also take a TINYINT, SMALLINT, or INT number as a seed value. When a seed value is used, RAND() will always return the same …

Andy Stowell 2022-11-09 2022-11-11 SQL Server
Continue reading"Random Numbers in SQL"

CROSS APPLY and OUTER APPLY

SQL Server has two apply operators available. These two operators are the CROSS APPLY and OUTER APPLY. At first glance, it can seem that an APPLY and JOIN are the same. However, joins are used to combine two results sets together whereas the apply operator evaluates an expression against every …

Andy Stowell 2022-11-08 2022-11-09 SQL Server
Continue reading"CROSS APPLY and OUTER APPLY"

Posts pagination

1 2
©2020 The Sql Dev
Powered by Septera & WordPress.
Back to Top