News

SELECT MAX (company) FROM Sales WHERE net_amount > 100; The MAX function is sometimes used on columns containing an auto-incremented key field to determine what the next entry’s key ID will be.
PROC SQL supports the same SAS functions as the DATA step, except for the functions LAG, DIF, and SOUND. For example, the SCAN function is used in the following query: select style, scan (street,1) ...
I’m a bit lost on this if someone can give me a hand.I have a table that has:PKEmployeeIDReviewDateReviewRatingI want to pull out the MOST RECENT review date and ...
The SUM function returns the sum of each row of the columns specified as arguments: proc sql; select min (x) as Colmin_x, min (y) as Colmin_y, max (z) as Colmax_z, sum (x,y,z) as Rowsum from summary; ...
After my post about Encrypting Rich Text fields in Power Apps that store their data in SQL server now the promised decryption code in this post as well.
T-SQL isn't particularly well suited to advanced string manipulation. I have found that small CLR functions that perform string manipulation and substring extraction perform very well in SQL Server.
I’ve created a script that monitors a table in a SQL Server database. I’m only interested in one column in the table: TimeStamp. If the maximum (newest) value in TimeStamp is more than 30 ...