This is too complicated for my SQL-foo.
What I need to do is insert a new row (which contains 3 columns), unless the row already exists, where two of these values ββare the same, and if it exists, I need to increase the third value in this row.
Imagine that two values ββare the ratio (a, b), and the third value is the strength of the relationship (which increases with each occurrence in this dependence).
Thanks in advance!
Filipe
source share