I have one table:
cno date cname proj1 proj2 proj3
--- ----- ----- ----- ----- ----
101 01/01 john 50 60 70
101 02/01 tom 40 50 90
103 03/01 mike 30 20 10
My two keys are CNO and DATE.
I don't know how to write a query that would
perform an arithmetic fucntion of two consecutive dates or any dates, for example:
ADD proj1 of 101 (50) to proj2 of 101 OR
ADD proj1 of 101 (40) to proj3 of 101.
ON SQL Server....
cno date cname proj1 proj2 proj3
--- ----- ----- ----- ----- ----
101 01/01 john 50 60 70
101 02/01 tom 40 50 90
103 03/01 mike 30 20 10
My two keys are CNO and DATE.
I don't know how to write a query that would
perform an arithmetic fucntion of two consecutive dates or any dates, for example:
ADD proj1 of 101 (50) to proj2 of 101 OR
ADD proj1 of 101 (40) to proj3 of 101.
ON SQL Server....