I have the following code as part of a Script: when I run the script I get the 'Divizer is equal to zero' erro. I ran the denominator and numerato ...
I am trying to get the average occupation rate from table occu_cap but I am getting the error "ERROR: division by zero". There are 0 values in both co ...
I have a column (datatype nvarchar(max), not my choice, legacy) with various different uses to the end user dependent on other factors. I was trying ...
I have a field called Amount type of Decimal(12,2). Amount, can accept NULL and decimal value example 100.00. This cause: Error converting dat ...
I'm currently in a scenario where we have a clunky, old, monolith of a database powering one or two of our less user-friendly systems (this is control ...
I was wondering if it is possible to sum values used in coalesce even though some of them are null. Currently, if any value from coalesce returns null ...
I'm using the code below to convert an empty string to Null. I don't get an error but it remains an empty string. I suspect an incorrect use of the va ...
I try to import a csv file in a table in PostgreSQL 13 and php form (beginner). There are two foreign keys integer type in the table, one can be empty ...
I had to change my old query to a new query to get the correct results. My old query used to return a null in the denominator, so I didn't have to wor ...
Hello I am using postgres 12. I've been learning for a few days now. I wanted to know if it's possible to write into the CREATE TABLE stage: IF colum ...
I currently run this operation to convert empty strings to null. Is any way to find out the last row that has gone through NULLIF() operation or has n ...
When I run the following code, I would expect b1 and b2 to be equal, however, b2 is doubled. Am I doing something wrong? Is this a bug in the database ...
I'm trying to replace values using NULLIF() in frequently updating mysql database. In order to reduce number of records I process I want find out th ...
I am using the following query to get some tablespaces usage at a glance: however, I'm stuck with the following error: SQL0801N Division by zer ...
I have a table that contains elements. Each element has its parent instance_id, a number_of_lines of code, and a deletion_date when removed. I built ...
I'm using SQL Management Studio 2012. I'm getting a 'Divide by zero error encountered' error. I'm aware this requires the use of NULLIF but I'm unsure ...
I am trying to perform additional aggregated calculations on a field that I created and because some values are negative, it is messing with the avera ...
I am trying to do something like this: Am I doing this incorrectly? I am not getting any results back. Edit: My expected results are to get every ...
I have a following table Output: Within each Id group, if all values are @, I want to set the value for that Id to @ else if all values for Id a ...