Perl Help, Integrating two tables.
CREATE TABLE TEST SELECT NUM_JOBS.DATE_FORMAT(START_DT, '%Y-%m-%d') AS DATES, NUM_JOBS.COUNT(DATE_FORMAT(START_DT, '%Y-%m-%d')) AS VAL, CALENDAR.WEEK AS WEEKS FROM NUM_JOBS, CALENDAR GROUP BY WEEKS WHERE NUM_JOBS.DATE_FORMAT(START_DT, '%Y-%m-%d') == CALENDAR.FORMAT_DATE;
I have two tables. One has
DATE, WEEK#
Another HAS DATE, VALUES
I want to group it by WEEK# and only pull values if the dates match up.
Because the DATE values from the 2nd table is whenever someone uses script so every single day isn't in there.
The other script is a calendar script, so it has a date value for every day.
So I only want to look at the week num as long as the dates match.
Sravan
Subject
Written By
Posted
Perl Help, Integrating two tables.
August 07, 2006 02:57PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.