I am trying to implement some logic in my SQL tables using formulas.
In this case, I am trying to do two comparison, neither of which seem to work:
1. I would like to test for a Non-Null Date field. I'm using Not IsNull(DatePaid), but it doesn't seem to work.
2. I would like to test for a text field equal to a value. I'm using [JobType] = 'Partner', but that doesn't seem to work either.
Here is the syntax of my whole statement currently (but it doesn't work):
convert(money, (case when ([JobType] = 'Partner Plus' and Not IsNull([DateCompleted])) then round(([TotalAmount] * [PartnerPlusPercent]),2) else 0 end),2)
Is this even possible? I can't find much on what is possible in these computed field formulas. Do I need to set up a trigger instead?
Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.
SQL Server Integration Services can read XML files, that’s known by every BI developer. (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.)
But how far can you go? When does the XML Source component become …
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables.
Make a table:
Update a specific column given a specific row using the UPDATE statement:
Remove a set of values using the DELETE s…