Particular query problem SQL Server Hi, I have 2 similar tables, like these: Create Table Report(Month int, Value float) Create Table ReportCorrect(Month int, Value float) with these values: Insert Report values(1, 16), (2, 11), (3, 12), (4, 15), (5, 0), (6, 34), (7, 56 34), (7, 56), (8, 14), (9, 24), (10, 31), (11, 12), (12, 14) In the Report table, for the months 5 (May) and 10 (October), I have Value = 0. Now I third table too. But if I find two months with value = zero in the table Report, I have to sum them with the first month with non zero value. Luigi This Server 2000: SELECT month, SUM(value) AS value FROM ( SELECT R1.Month, C.Value FROM Report AS R JOIN ReportCorrect AS C ON R.Month = C.Month AND R.Value = 0 LEFT JOIN Report AS R1 ON R1.Month > R.Month AND R1.Value <> 0 AND NOT EXISTS(SELECT FROM Report AS R2 WHERE R2.Month < R1.Month AND R2.Value <> 0 AND R2.Month > R.Month) UNION ALL SELECT C.Month, C.Value FROM Report AS R JOIN ReportCorrect AS C ON R.Month = C.Month AND R.Value <> 0
SRS Report Help SQL Server Using SQL 2008 and Visual Studio 2008. Exported a .rdl file report from our Microsoft CRM application, to modify the report using Visual Studio. The intent is to use similar data from the exported report, format it differently and re-import the report back into CRM. I have text boxes that I have added to the report. In my design view of the report these text boxes appear within the top 4-5 inches of the report. Rendering this report in Landscape or normal view should not push these fields to the