How to make a string out of a list (or a set of rows) MS SQL
How to make a string out of a list (or a set of rows) MS SQL
View ArticleCool way to calculate inline MAX of two values in MS SQL
— The following expression calculates ==> max(@val1, @val2) SELECT 0.5 * ((@val1 + @val2) + ABS(@val1 – @val2)) Kudos to splattne.
View ArticleGetting the first day of the next six months – using DATEFROMPARTS
It is always tempting just to MONTH(GETDATE())+1 – but then there’s the end of the year to consider. DECLARE @ThisMonth DATE = (SELECT DATEFROMPARTS(YEAR(GETDATE()),MONTH(GETDATE()),1)); DECLARE...
View ArticleConsolidating several Syspro (V6) companies into one Syspro (V7) company.
I was tasked to project manage the consolidation of 13 x Syspro (V6) companies into one Syspro (V7) company in 2015. The first phase was a master file cleanup, standardisation and setup check. The...
View ArticleCool way to add a leading zero to a single digit integer
As long as n is strictly less than 100: RIGHT(100+n,2) (Yes, now it seems obvious.. 🙂 Kudos to Steve Kass
View ArticleSyspro 7 Assets: Tips and tricks
I’ve recently implemented Assets in Syspro 7 and would like to share some of what I learnt: Start with Branches, Cost Centers and Asset Groups If you need to produce financial statements for various...
View ArticleSimple way to monitor Rack and/or Bin progress in Excel during a Syspro Stock...
Generally, I found that it is difficult to answer the question: “How far are we with the stock take?” The most commonly used, quick-and-dirty measures are to Look at the bottom-line value (or unit)...
View ArticleHow to flatten (or ‘explode’) a Syspro Bill Of Material (BOM): recursive loop...
Presenting Syspro’s BOMs in a ‘flattened’ (or ‘exploded’) format in Excel or in SQL Server is very handy for doing/checking Costings or doing Advanced Trail Kits. My initial attempt at flattening BOMs...
View ArticleMigration and consolidation of Pastel Evolution to Syspro (v7)
I was tasked to project manage the incorporation of a newly acquired company into our group. Apart from arranging the infrastructure changes, systems setup and training required, I wrote the SQL (Jobs)...
View ArticleSimple Stock Description (string) comparison on Syspro data, using MS SQL Server
Using a 'word match and scoring' technique because of the programming simplicity and (small) size of my data set
View Article