ceceperfect10
Technical User
Hi:
I am a new babe in crystal so be gentle....Using ODBC/SQL...I have a table that has multiple datetime fields. I am trying to pull in the records for which both my create date and resolved date have a criteria set as LastFullWeek...Both dates are reporting on my entry-id field. I have tried creating formulas and have tried using the UNION to join 'cause if I do the reports separately I don't have a problem.....ex.
SELECT
SD_Problem."Entry-Id", SD_Problem."Group Assigned", SD_Problem."Region", SD_Problem."Resolved Status Date"
FROM
"SD.Problem" SD_Problem
WHERE
SD_Problem."Region" = 'North America' AND
SD_Problem."Resolved Status Date" >=
{ts '2003-10-26 00:00:00.00'} AND
SD_Problem."Resolved Status Date" <
{ts '2003-11-02 00:00:00.00'}
ORDER BY
SD_Problem."Group Assigned" ASC
UNION
SELECT
SD_Problem."Created Date", SD_Problem."Entry-Id", SD_Problem."Group Assigned", SD_Problem."Region"
FROM
"SD.Problem" SD_Problem
WHERE
SD_Problem."Region" = 'North America' AND SD_Problem."Created Date" >=
{ts '2003-10-26 00:00:00.00'} AND
SD_Problem."Created Date" <
{ts '2003-11-02 00:00:00.00'}
ORDER BY
SD_Problem."Group Assigned" ASC
Thanking you in advance for your kind assistance....
I am a new babe in crystal so be gentle....Using ODBC/SQL...I have a table that has multiple datetime fields. I am trying to pull in the records for which both my create date and resolved date have a criteria set as LastFullWeek...Both dates are reporting on my entry-id field. I have tried creating formulas and have tried using the UNION to join 'cause if I do the reports separately I don't have a problem.....ex.
SELECT
SD_Problem."Entry-Id", SD_Problem."Group Assigned", SD_Problem."Region", SD_Problem."Resolved Status Date"
FROM
"SD.Problem" SD_Problem
WHERE
SD_Problem."Region" = 'North America' AND
SD_Problem."Resolved Status Date" >=
{ts '2003-10-26 00:00:00.00'} AND
SD_Problem."Resolved Status Date" <
{ts '2003-11-02 00:00:00.00'}
ORDER BY
SD_Problem."Group Assigned" ASC
UNION
SELECT
SD_Problem."Created Date", SD_Problem."Entry-Id", SD_Problem."Group Assigned", SD_Problem."Region"
FROM
"SD.Problem" SD_Problem
WHERE
SD_Problem."Region" = 'North America' AND SD_Problem."Created Date" >=
{ts '2003-10-26 00:00:00.00'} AND
SD_Problem."Created Date" <
{ts '2003-11-02 00:00:00.00'}
ORDER BY
SD_Problem."Group Assigned" ASC
Thanking you in advance for your kind assistance....