Hello! i used left join on 2 tables and i obteined a third one with the value NULL where the rows didn`t match:
ID: 1, 2, 3, 4
VALA:2000, 3000, 4000, 5000
RATA:100, 200, NULL, NULL
SOLD: 1900, 2800, 0, 0
(if u don`t understant from the example above i uploded the excel file)
The column SOLD is calculated as (VALA-RATE). For Id=1 and ID=2 it`s calculated ok but for ID=3 and ID=4 it returns 0 and I want to have the value from VALA column.
how can i do this?
ID: 1, 2, 3, 4
VALA:2000, 3000, 4000, 5000
RATA:100, 200, NULL, NULL
SOLD: 1900, 2800, 0, 0
(if u don`t understant from the example above i uploded the excel file)
The column SOLD is calculated as (VALA-RATE). For Id=1 and ID=2 it`s calculated ok but for ID=3 and ID=4 it returns 0 and I want to have the value from VALA column.
how can i do this?