Show all dates between date range (time Dimension is left outer join)
All,I did some research on this issue, but in all positions on date variables, date prompts and date filtering I have not seen one exactly to my question (perhaps that they are and I don't have my head around it properly yet).
My requirement of report is to allow a user to select a start date and an end of day. The report is expected to show the activity of these two days - AND display 0/null on days where there is no activity. This second part is where I am getting hung up.
The paintings in question are:
Timedim
EventFact
CustomerDim
My MDB is configured as follows:
Left outer join of Timedim EventFact
Inner join CustomerDim EventFact
If I run a report by selecting the DAYS of Timedim and an EventFact measure1 with range day 01/01/2010-31/12/2010... A record for each day and it looks perfect because of the left outer join between Timedim and CustomerDim.
But... If I add a CustomerDim field, Select TimeDim.DAY, CustomerDim.CUSTNAME, EventFact.MEASURE1, OBIEE returns only records for the days that have record EventFact.
This is due to the fact that the Timedim is always external joined in EventFact, but adding in fact CustomerDim OBIEE set up an inner join between tables that will only return data where there are data EventFact.
There is a way around it in this simple case, and that is to define the relationship between CustomerDim and EventFact as an outer join as well. This will give the desired effect (but an outer join between the two tables is not the real relationship) and I have add an extra dimension and add additional sources of logic to a single dimension in MDB it becomes complicated and messy.
Also, ive ruined with the definition of the conduct in the relationship table, etc... but he gave not the desired effect.
Has anyone ever met the need for force display all dates within a range specified with a fact table that does not have an entry for each date?
Thanks in advance.
K
Published by: user_K on April 27, 2010 11:32
Hi there, the easiest way is to the LTS himself. Double-click your LTS, go to the tab with the column mappings. Make sure you have checked "show no mapped" column.
You should see your new dummy column in the list, in the central part of mapping (IE not the right) just enter 0, or launch the expression editor and enter 0 in there.
simple!
Tags: Business Intelligence
Similar Questions
-
Left outer join without data in a table
I have two tables defined (see below). Emp table has given, and there is still no data in the table of Emp_Type! Now it is empty.
I want to write a query that returns the data from the tables, even if there is no data in the Emp_type table. I use a left outer join but it return nothing. Can anyone help?
create table EMP ( EMPID NUMBER(10,2), EMPNAME VARCHAR2(100) ); INSERT INTO emp (empid,empname) values (1, 'Mark'); INSERT INTO emp (empid,empname) values (2, 'Jason'); INSERT INTO emp (empid,empname) values (3, 'Kevin'); INSERT INTO emp (empid,empname) values (4, 'Drew'); INSERT INTO emp (empid,empname) values (5, 'Jessica'); INSERT INTO emp (empid,empname) values (6, 'Pena'); INSERT INTO emp (empid,empname) values (7, 'Roxanne'); create table EMP_Type ( ID NUMBER(10,2), EMPID NUMBER(10,2), TYPE_ID NUMBER(10,2), END_DATE DATE ); No data select * from emp e left outer join emp_Type t on e.empid = t.empid WHERE t.type_id = 1 and t.end_date is null;
WHERE t.type_id = 1
will be ever true when table has no rows (or t.type_id is NULL?)
-
I have a macbook pro and airport Time capsule and want to delate all data on Time capsule. How this is done
Open Airport utility, select the Time Capsule and then use the option erase to erase its contents.
How to check or erase a disc AirPort Time Capsule - Apple Support
-
Oracle: Use LEFT OUTER JOIN, but convert the data to an external list
Hello, all,.
I know it can be done; I just don't remember how I got it done, oh there are so many years.
Assumes that the tables exist for groups and individuals. People can belong to several groups.
SELECT g.groupName, p.lastName || ', ' || p.firstName as fullName FROM groups g LEFT OUTER JOIN groupPersonAssociation gpa ON gpa.groupID = g.groupID LEFT OUTER JOIN person p ON p.personID = gpa.personID ORDER BY g.groupName, fullName
This gives us:
Group One Alpha, Daniel Group One Bravo, Charles Group One Charlie, Chuck Group Two Beta, Alpha Group Two Delta, Bonnie Group Three Echo, Bunny Group Three Golf, Samuel Group Three November, Stan
How word the SQL to get the data as:
Group One Alpha, Daniel | Bravo, Charles | Charlie, Chuck Group Two Beta, Alpha | Delta, Bonnie Group Three Echo, Bunny | Golf, Samuel | November, Stan
V/r,
^_^
I finally thought to it. I was using incorrect keywords on Google.
SELECT g.groupName, LISTAGG(p.lastName || ', ' || p.firstName,' | ') WITHIN GROUP (ORDER BY g.groupName) "fullName" FROM groups g LEFT OUTER JOIN groupPersonAssociation gpa ON ggpa.groupID = g.groupID LEFT OUTER JOIN person p ON p.personID = gpa.personID GROUP BY g.groupName ORDER BY g.groupName, fullName
Just in case someone else is going through this same desire.
HTH,
^_^
-
What is the difference between NOT IN and LEFT OUTER JOIN
Hello
I searched the difference between everywhere. But his powerlessness.
Please tell me the differences.
Thanks in advance
KVBIt's like comparing apples and oranges.
NOT IN - exclude all lines matching the condition NOT IN (beware of NULL values).
JOIN EXTERNAL - return of rows from the inner table even if there is no corresponding row in the outer table.
SQL> -- NOT IN SQL> with x as 2 (select 1 col1 from dual union all 3 select 2 col1 from dual union all 4 select 3 col1 from dual) 5 , y as 6 (select 1 col1 from dual) 7 select * 8 from x 9 where col1 not in (1,2); COL1 ---------- 3 SQL> -- NOT IN (subquery) SQL> SQL> with x as 2 (select 1 col1 from dual union all 3 select 2 col1 from dual union all 4 select 3 col1 from dual) 5 , y as 6 (select 1 col1 from dual) 7 select * 8 from x 9 where col1 not in (select col1 from y); COL1 ---------- 2 3 SQL> -- OUTER JOIN SQL> with x as 2 (select 1 col1 from dual union all 3 select 2 col1 from dual union all 4 select 3 col1 from dual) 5 , y as 6 (select 1 col1 from dual) 7 select * 8 from x 9 left outer join 10 y 11 on x.col1 = y.col1; COL1 COL1 ---------- ---------- 1 1 3 2 SQL> -- Maybe it helps to contrast LOJ with just JOIN? SQL> with x as 2 (select 1 col1 from dual union all 3 select 2 col1 from dual union all 4 select 3 col1 from dual) 5 , y as 6 (select 1 col1 from dual) 7 select * 8 from x 9 join y 10 on x.col1 = y.col1; COL1 COL1 ---------- ---------- 1 1 SQL>
-
Z10 Z10 My BlackBerry automatically deletes all data every time I restart phone
I don't know what the problem with my Z10 since last weekend, I noticed that any time my phone restarts all my data are deleted. I thought it was a minor problem new Apps I downloaded and deleted but there are still the stills. So I decided to delete my phone to factory settings and restore from a previous backup dated (02/02/2015) that i made before I upgraded to OS 10.3.1.2243. It has now got worse I can't even restore my previous backup as my phone, that's why, when the phone restarts after backup restoration as it does normally goes back to factory settings. I tried following the education provided by Blackberry to fix the bug in this link http://btsc.webapps.blackberry.com/btsc/viewdocument.do;jsessionid=42944EB3464C0DAD08639BF5A8C876B0?... .
Yet he said that "the solution is not applicable to this device. Pls I need urgent help because it is obvious that the new OS 10.3 has problems, can't use my phone at all so no contacts on the left
Yes everything works perfectly now and hope that it works for you. Check what blackberry support asked me to (see link)http://btsc.webapps.blackberry.com/btsc/viewdocument.do?externalId=KB36747&sliceId=2&cmd=displayKC&d which did not work so I continued to audit information on this forum who directed me to this site http://supportforums.blackberry.com/t5/BlackBerry-10-OS-Device-Software/Upgrading-OS10-devices-using... the idea here is to go back to the old OS) in order to go down and my phone is on the right track. what I did was run a full backup first, demote to 10.2 from the link above that he's clear all data and install a new OS, so I restored my files back. It takes a long time to download and install, but I'm happy, its working now (about 3 hours in total).
The good funny thing is that I downloaded the version 10.2.1.3253 of the software , but for some reason any post-installation he became 10.3.1565 and works perfectly. for installation, I followed the instructions on this site checking a link http://www.blackberryos.com/blackberry-10-os/37518-how-install-leaked-os-onto-your-blackberry-10-sma...
Hope this helps, and make sure you follow each step by step.
the next time that I will be very careful before putting him give at least 4 months before so I can assure people that an update is bug free
-
Hello
I'm having a problem with my laptop. It does not shows date and the correct time. I put it to update manually, and every time I restart or turn off my laptop and reopen it shows as in the year 2007. Please help me... And when I scroll a page, it will slow real lines showing a... As half page goes up. My touchpad is not working properly it's button are good work. I've updated with synaptic driver, but it displays error as there are two or more materialsHello
-What is the limited issue with scrolling of Web pages or all Microsoft-related applications (Excel, Word, One notes, etc...)?-What version of Internet Explorer is installed on your computer?-You are aware of any changes made on the computer before this problem?Step 1: For the synchronization of the clock of your computer problem, I suggest to return the article mentioned below and check if the problem persists.Synchronizing your computer clock
http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/windows_date_it_overview.mspx?mfr=trueLoss of the time in a computer settings might also be due to some problems in the system (Input Output) BIOS of a computer database. You can also check with your computer manufacturer to see if there is no updated BIOS for your computer model.Warning of the BIOS:BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.
Step 2: For the problem with scrolling of Web pages, I suggest to see the link below and check if the problem persists.The problems with the mouse button or scroll the parametersStep 3: Run the Microsoft FIXIT from the link below and check if the problem persists.Difficulty of broken desktop shortcuts and common system maintenance tasksHope this information helps. -
I can around the current datetime object to the the last quarter of an hour and show all dates for last year, but I'm looking for all the 15 minutes for each day of '1 October 13' to the current date.
Here's what I have so far:
SELECT
trunc (sysdate, 'mi')-
NUMTODSINTERVAL (mod (to_char (sysdate, 'mi'), 15), 'minute') as Quarter_Hr,
(sysdate-365 (LEVEL-1)) AS DATES
FROM DUAL connect by level < = (sysdate-(sysdate-365))
Any help would be appreciated. I use that as a dimension table to evaluate performance on a base quarter of an hour.
ALTER session set nls_date_format = "hh24:mi:ss dd/mm/yyyy '.
/
Select date "'2013-10-1 + (level - 1) / 96 dt"
of the double
connect by level<= trunc((sysdate="" -="" date="" '2013-10-1')="" *="" 96)="" +="">=>
/DT
-------------------
01/10/2013 00:00:00
01/10/2013 00:15:00
01/10/2013 00:30:00
01/10/2013 00:45:00
01/10/2013-01:00
01/10/2013-01:15
01/10/2013-01:30
01/10/2013-01:45
01/10/2013-02:00
01/10/2013-02:15
01/10/2013-02:30DT
-------------------
01/10/2013-02:45
01/10/2013-03:00
01/10/2013-03:15
01/10/2013-03:30
01/10/2013 03:45
01/10/2013 04:00
01/10/2013-04:15
01/10/2013-04:30
01/10/2013-04:45
01/10/2013-05:00
01/10/2013-05:15.
.
.
DT
-------------------
06/08/2014-11:45
06/08/2014-12:00
06/08/2014-12:15
06/08/2014-12:30
06/08/2014-12:4529716 selected lines.
SQL >
SY.
-
Display of blackBerry Smartphones 'sent' date and time, not "received".
The problem:
When I got my BB 8830 leave for some time (for example during a flight) or been out of coverage, messages accumulate on the server. When I log back, it retrieves all the (I'm mostly concerned about e-mail via BIS) and they all have the date & time that my BlackBerry has come online. In addition, the chronological order is not preserved, (esp. with multiple e-mail accounts). This makes it very difficult to scan my Inbox and understand what I missed and when. It is ridiculous to have 20 messages all with exactly the same date and time.
The Question:
Can I have my inbox show is the "sent" date and time or (even better) the data and time, were received by my mail server? Would it not different with BES?
Thanks in advance,
Ian
It only shows the date and time when the message received on the device, this is normal. You can check that your messages the individual icons for your BIS BIS accounts e-mail.
-
Find (weekly) missing date ranges based on the Date of submission
Nice day:
I have a table that contains the data with a date of presentation of the report column. If the requirements are that each employee must submit at least 1 weekly report beginning January 1, 2015, how can I find the weekly reports missing, based on the date of submission of reports.
The ideas that I had:
- Left join by partition by date (range between)
- Create a date dimension view?
Of course, I'm not sure how to approach this dilemma without creating a query of Monster. Sometimes the simplest queries mistake me...
Thank you, Aqua
Here are the DDL for the table with the information from the presentation report (example):
--------------------------------------------------------
-The DOF for Table DTS_FORM_SAMPLE
--------------------------------------------------------
CREATE TABLE 'DTS_FORM_SAMPLE '.
(NUMBER OF 'ID',
VARCHAR2 (20) "CLOCK_NUMBER."
NUMBER OF 'EMP_ID,'
NUMBER OF "REPORT_TYPE."
DATE OF THE "SUB_DATE.
) ;
/
INSERTION of REM in DTS_FORM_SAMPLE
TOGETHER TO DEFINE
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2896, 'XX2444', 12810,1, to_date('02-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2897, 'XX2444', 12810,1, to_date('09-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2898, 'XX2444', 12810,1, to_date('16-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2899, 'XX2444', 12810,1, to_date('23-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2900, 'XX2444', 12810,1, to_date('30-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2901, 'XX2444', 12810,1, to_date('05-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2902, 'XX2444', 12810,1, to_date('12-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2903, 'XX2444', 12810,1, to_date('19-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2904, 'XX2444', 12810,1, to_date('26-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2920, 'XX2444', 12810,1, to_date('19-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2921, 'XX2444', 12810,1, to_date('22-JAN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2922, 'XX2444', 12810,1, to_date('05-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2923, 'XX2444', 12810,1, to_date('26-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2924, 'XX2444', 12810,1, to_date('29-JAN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2925, 'XX2444', 12810,1, to_date('12-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (2965, 'XX2444', 12810,1, to_date('30-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6970, 'XX2444', 12810,1, to_date('18-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6971, 'XX2444', 12810,1, to_date('25-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6972, 'XX2444', 12810,1, to_date('04-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6973, 'XX2444', 12810,1, to_date('11-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6978, 'XX2444', 12810,1, to_date('14-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6979, 'XX2444', 12810,1, to_date('21-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6980, 'XX2444', 12810,1, to_date('28-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6981, 'XX2444', 12810,1, to_date('07-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6948, 'XX2444', 12810,1, to_date('06-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6957, 'XX2444', 12810,1, to_date('09-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6958, 'XX2444', 12810,1, to_date('16-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6959, 'XX2444', 12810,1, to_date('23-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6960, 'XX2444', 12810,1, to_date('02-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8938, 'XX2444', 12810,1, to_date('14-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8939, 'XX2444', 12810,1, to_date('21-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8940, 'XX2444', 12810,1, to_date('28-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8941, 'XX2444', 12810,1, to_date('07-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8942, 'XX2444', 12810,1, to_date('14-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8943, 'XX2444', 12810,1, to_date('21-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8977, 'XX2444', 12810,1, to_date('04-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8978, 'XX2444', 12810,1, to_date('11-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8979, 'XX2444', 12810,1, to_date('11-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8980, 'XX2444', 12810,1, to_date('18-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8981, 'XX2444', 12810,1, to_date('18-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8982, 'XX2444', 12810,1, to_date('25-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8983, 'XX2444', 12810,1, to_date('25-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8984, 'XX2444', 12810,1, to_date('02-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8985, 'XX2444', 12810,1, to_date('02-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8953, 'XX2444', 12810,1, to_date('19-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9824, 'XX2444', 12810,1, to_date('20-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9825, 'XX2444', 12810,1, to_date('20-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9826, 'XX2444', 12810,1, to_date('20-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8972, 'XX2444', 12810,1, to_date('30-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8973, 'XX2444', 12810,1, to_date('30-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8974, 'XX2444', 12810,1, to_date('07-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8975, 'XX2444', 12810,1, to_date('28-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8951, 'XX2444', 12810,1, to_date('12-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8952, 'XX2444', 12810,1, to_date('19-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8954, 'XX2444', 12810,1, to_date('26-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8955, 'XX2444', 12810,1, to_date('26-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8956, 'XX2444', 12810,1, to_date('05-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8957, 'XX2444', 12810,1, to_date('05-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8958, 'XX2444', 12810,1, to_date('12-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8959, 'XX2444', 12810,1, to_date('12-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8960, 'XX2444', 12810,1, to_date('19-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8961, 'XX2444', 12810,1, to_date('19-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8962, 'XX2444', 12810,1, to_date('26-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8963, 'XX2444', 12810,1, to_date('26-MAR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8964, 'XX2444', 12810,1, to_date('02-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8965, 'XX2444', 12810,1, to_date('02-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8966, 'XX2444', 12810,1, to_date('09-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8967, 'XX2444', 12810,1, to_date('09-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8968, 'XX2444', 12810,1, to_date('16-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8969, 'XX2444', 12810,1, to_date('16-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8970, 'XX2444', 12810,1, to_date('23-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8971, 'XX2444', 12810,1, to_date('23-APR-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8976, 'XX2444', 12810,1, to_date('04-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8986, 'XX2444', 12810,1, to_date('09-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8987, 'XX2444', 12810,1, to_date('09-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9041, 'XX2444', 12810,1, to_date('16-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9042, 'XX2444', 12810,1, to_date('16-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9043, 'XX2444', 12810,1, to_date('23-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9044, 'XX2444', 12810,1, to_date('23-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9045, 'XX2444', 12810,1, to_date('30-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9046, 'XX2444', 12810,1, to_date('30-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9047, 'XX2444', 12810,1, to_date('06-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9048, 'XX2444', 12810,1, to_date('06-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8944, 'XX2444', 12810,1, to_date('22-JAN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8945, 'XX2444', 12810,1, to_date('22-JAN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8946, 'XX2444', 12810,1, to_date('29-JAN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8947, 'XX2444', 12810,1, to_date('29-JAN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8948, 'XX2444', 12810,1, to_date('05-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8949, 'XX2444', 12810,1, to_date('05-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (8950, 'XX2444', 12810,1, to_date('12-FEB-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9527, 'XX2444', 12810,1, to_date('13-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9528, 'XX2444', 12810,1, to_date('13-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (9529, 'XX2444', 12810,1, to_date('13-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6739, 'YY7223', 11093,8, to_date('15-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6740, 'YY7223', 11093,8, to_date('21-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6741, 'YY7223', 11093,8, to_date('22-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6742, 'YY7223', 11093,8, to_date('25-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6743, 'YY7223', 11093,8, to_date('26-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6744, 'YY7223', 11093,8, to_date('27-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6745, 'YY7223', 11093,1, to_date('04-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6746, 'YY7223', 11093,1, to_date('11-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6747, 'YY7223', 11093,1, to_date('18-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6748, 'YY7223', 11093,1, to_date('25-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6749, 'YY7223', 11093,11, to_date('01-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6750, 'YY7223', 11093,11, to_date('15-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (6751, 'YY7223', 11093,10, to_date('01-JUL-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (11017, 'YY7223', 11093,1, to_date('07-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (11018, 'YY7223', 11093,1, to_date('14-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (11019, 'YY7223', 11093,1, to_date('21-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (11020, 'YY7223', 11093,1, to_date('28-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (11021, 'YY7223', 11093,1, to_date('04-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (11022, 'YY7223', 11093,1, to_date('11-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (11023, 'YY7223', 11093,1, to_date('18-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (11024, 'YY7223', 11093,1, to_date('25-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (11025, 'YY7223', 11093,10, to_date('31-MAY-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (11026, 'YY7223', 11093,10, to_date('30-JUN-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13115, 'YY7223', 11093,1, to_date('13-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13201, 'YY7223', 11093,1, to_date('20-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13287, 'YY7223', 11093,1, to_date('27-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13373, 'YY7223', 11093,10, to_date('08-SEP-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13489, 'YY7223', 11093,8, to_date('01-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13490, 'YY7223', 11093,8, to_date('02-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13491, 'YY7223', 11093,8, to_date('03-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13492, 'YY7223', 11093,8, to_date('04-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13493, 'YY7223', 11093,8, to_date('05-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13494, 'YY7223', 11093,8, to_date('06-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13495, 'YY7223', 11093,8, to_date('07-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13496, 'YY7223', 11093,8, to_date('08-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13497, 'YY7223', 11093,8, to_date('09-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13498, 'YY7223', 11093,8, to_date('10-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13499, 'YY7223', 11093,8, to_date('11-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13500, 'YY7223', 11093,8, to_date('12-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13501, 'YY7223', 11093,8, to_date('13-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13502, 'YY7223', 11093,8, to_date('14-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13503, 'YY7223', 11093,8, to_date('15-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13504, 'YY7223', 11093,8, to_date('16-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13505, 'YY7223', 11093,8, to_date('17-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13506, 'YY7223', 11093,8, to_date('18-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13507, 'YY7223', 11093,8, to_date('19-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13508, 'YY7223', 11093,8, to_date('20-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13509, 'YY7223', 11093,8, to_date('21-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13510, 'YY7223', 11093,8, to_date('22-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13511, 'YY7223', 11093,8, to_date('23-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13512, 'YY7223', 11093,8, to_date('24-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13513, 'YY7223', 11093,8, to_date('25-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13514, 'YY7223', 11093,8, to_date('26-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13515, 'YY7223', 11093,8, to_date('27-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13516, 'YY7223', 11093,8, to_date('28-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13517, 'YY7223', 11093,8, to_date('29-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13518, 'YY7223', 11093,8, to_date('30-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13519, 'YY7223', 11093,8, to_date('31-AUG-15','DD-MON-RR'));
Insert into DTS_FORM_SAMPLE (ID, CLOCK_NUMBER, EMP_ID, REPORT_TYPE, SUB_DATE) values (13030, 'YY7223', 11093,1, to_date('06-AUG-15','DD-MON-RR'));
--------------------------------------------------------
-Table DTS_FORM_SAMPLE constraints
--------------------------------------------------------
CHANGE ALTER TABLE 'DTS_FORM_SAMPLE' ('ID' ENABLE NOT NULL);
/
Or more simple:
Select emp_id, w.wk, to_char (wk, 'ww') x
from (select trunc (date ' 2015-01-01' + 7 * (level - 1), 'ww') wk)
of the double
connect by level<=>=>
) o
left outer join
s dts_form_sample
by (emp_id) partition
We trunc (s.sub_date, 'ww') = w.wk
where sub_date is null
order to emp_id,
x
/
EMP_ID WK X
---------- --------- --
11093 1ST JANUARY 15 01
11093 8 JANUARY 15 02
11093 15 JANUARY 15 03
11093 22 JANUARY 15 04
11093 29 JANUARY 15 05
11093 5 FEBRUARY 15 06
11093 12 FEBRUARY 15 07
11093 19 FEBRUARY 15 08
11093 26 FEBRUARY 15 09
11093 5 MARCH 15 10
11093 12 MARCH 15 11EMP_ID WK X
---------- --------- --
11093 19 MARCH 15 12
11093 26 MARCH 15 13
11093 2 APRIL 15 14
11093 9 APRIL 15 15
11093 16 APRIL 15 16
11093 23 APRIL 15 17
11093 30 APRIL 15 18
11093 37 15 - SEP - 10
17-SEVEN 11093.-15 38
24-SEVEN 11093.-15 39
11093 1 OCTOBER 15 40EMP_ID WK X
---------- --------- --
11093 8 OCTOBER 15 41
11093 15 OCTOBER 15 42
11093 22 OCTOBER 15 43
11093 29 OCTOBER 15 44
11093 5 NOVEMBER 15 45
11093 12 NOVEMBER 15 46
11093 19 NOVEMBER 15 47
11093 26 NOVEMBER 15 48
11093 3 DECEMBER 15 49
11093 10 DECEMBER 15 50
11093 17 DECEMBER 15 51EMP_ID WK X
---------- --------- --
11093 24 DECEMBER 15 52
11093 31 DECEMBER 15 53
12810 1ST JANUARY 15 01
12810 8 JANUARY 15 02
12810 15 JANUARY 15 03
12810 27 AUGUST 15 35
12810 15 - SEP - 03 36
12810 37 15 - SEP - 10
17-SEVEN 12810.-15 38
24-SEVEN 12810.-15 39
12810 1 OCTOBER 15 40EMP_ID WK X
---------- --------- --
12810 8 OCTOBER 15 41
12810 15 OCTOBER 15 42
12810 22 OCTOBER 15 43
12810 29 OCTOBER 15 44
12810 5 NOVEMBER 15 45
12810 12 NOVEMBER 15 46
12810 19 NOVEMBER 15 47
12810 26 NOVEMBER 15 48
12810 3 DECEMBER 15 49
12810 10 DECEMBER 15 50
12810 17 DECEMBER 15 51EMP_ID WK X
---------- --------- --
12810 24 DECEMBER 15 52
12810 31 DECEMBER 15 5357 selected lines.
SQL >
However OP question must answer is start of week date.
SY.
-
How to see the date and time on your images?
I use camcorder Sony HXR-NX5U to shoot my video which I then edit in Premiere Pro. How can I record the date and time based on actually recorded video? Is a function that I need to set up on the camera or these data incorporated into each HD clip and all I have to do is just to change some settings in Premier Pro, as well as the date and time appear magically on my video?
He is a third-party software which costs $80 to show the date and time. This is not an option.
Can I ask you why you do this? It of a unique client work, a curiosity or are you in the business of generating media for legal needs? Adobe has access to view the metadata of the files in the metadata panels, however, source time is not available in timecode effects and overlays customized (via the program monitor tools). It will be manual labor, which is ok if it is the specific need. However, if it is a constant for your business, you must consider the types of tools that apply best practices (as the camera that allows you to record recovery /) or by using a third party tool like the one I mentioned. No free lunch. This has been a feature of the long and often requested.
-
Date.MinValue to format date and time in the MAF
Hello
For the amx:inputdate component, I want to display the date and time format. I need to be able to select the date and time.
Can someone help me please in obtaining it. If items available, please share me.
Thank you
Rita
If you just want to show the date or time, or both, then you change the attribute 'type' to date. MinValue
To date. MinValue on iOS, a native component selector is used for this purpose. On Android, there is a date component. MinValue AMX used.
You can check the link below for how it will look like
https://wikis.Oracle.com/display/ADFMobileDesign/component+-+input+date
-
Recover data to leave the date range Table
Hi all
We leave detail table for each employee contains information of beach to leave as follows.
EmpID, leaveFromDt, leaveToDt
We must identify no.. sheets for each employee from the date of the day & current date + group 2 weeks per each week.
If data should look like,
Name of the EMP of leaves
Week 1 semaine2
0 5 emp1
3 2 EMP2
How can this be achieved?
Here are the possible scenarios assuming
Date of the day = 10 may 2012
Current date plus 2 weeks is 24 may 2012
(1) absent from = 20 may 2012
Missing = may 25, 2012
(2) absent from = May 16, 2012
Missing = may 20, 2012
(3) = 6 may 2012 absent
Absent to = 30 may 2012
(4) missing = may 8, 2012
Absent in = 12 may 2012Hello
The preliminary motion should be changed to the definitions of the new week.
The main request must add the number of days, rather than counting sheets.
To include employees who did not leave during these 2 weeks, you should do an outer join:WITH got_weeks AS ( SELECT 1 AS week_num, TRUNC (SYSDATE) AS from_dt, TRUNC (SYSDATE) + 6 AS to_dt FROM dual UNION ALL SELECT 2, TRUNC (SYSDATE) + 7, TRUNC (SYSDATE) + 13 FROM dual ) SELECT e.emp_id , SUM ( CASE WHEN w.week_num = 1 THEN 1 + LEAST (w.to_dt, e.leave_to_dt) - GREATEST (w.from_dt, e.leave_from_dt) ELSE 0 END ) AS &week_1 , SUM ( CASE WHEN w.week_num = 2 THEN 1 + LEAST (w.to_dt, e.leave_to_dt) - GREATEST (w.from_dt, e.leave_from_dt) ELSE 0 END ) AS &week_1 FROM empleavedtls e LEFT OUTER JOIN got_weeks w ON w.from_dt <= e.leave_to_dt AND w.to_dt >= e.leave_from_dt GROUP BY e.emp_id ORDER BY e.emp_id ;
Instead to make 2 essentially the same CASE expressions, with FEWER and more calculations in each of them, you could do that once, in a subquery, and then, since you have Oracle 11, you can use SELECT... PIVOT function to get the totals in two columns. This would make it easier to add additional weeks. This is another good exercise.
-
Hello
I have a requirement where I need to calculate the value of average purchase order based on the month. The problem I have here is that the custom time Dimension table that I have in my RPD has dates only until 2011 and not beyond. I downloaded this table via BI tutorials oracle schema EXAMPLE.
I've looked everywhere on the internet for a time dimension table, but I'm unable to find it. Can someone please help me find a way to insert the time dimension table?
Thank you
Nicole Shepherd
Hi Anthony,.
You can change the SQL code to insert new rows into your table.
Example:
INSERT INTO your_table (your_field)
SELECT TO_DATE('31/12/2010','DD/MM/YYYY') + NUMTODSINTERVAL (n, 'day') AS Full_Date
FROM (SELECT level n FROM dual connect by level)<>
The foregoing will insert lines starting at 01/01/2011 and until the 01/01/2011 + 4000 days (over 10 years).
Of course, you must extend the code to calculate all the fields in your time dimension.
Concerning
Federico
-
Above is the application and I need to make small changes asSelect ENTITLEMENT_APPROVER.ENTITLEMENT_ID, (SELECT APPLICATION.EXTRA_FIELD_2 FROM APPLICATION APPLICATION WHERE APPLICATION.APPLICATION_NAME=ENTITLEMENT.APPLICATION_NAME) as APPLICATION_NAME, ENTITLEMENT.MODULE_NAME, ENTITLEMENT.SITE_NAME, ENTITLEMENT.ENTITLEMENT_NAME, ENTITLEMENT_APPROVER.APPROVER_LEVEL, ENTITLEMENT_APPROVER.APROVER_TYPE, ENTITLEMENT_APPROVER.APRROVER_DETAIL, USR.USR_DISPLAY_NAME AS APRROVER_NAME from EC_ADMIN.ENTITLEMENT_APPROVER ENTITLEMENT_APPROVER, EC_ADMIN.ENTITLEMENT ENTITLEMENT, DEVT_OIM.USR USR where ENTITLEMENT_APPROVER.ENTITLEMENT_ID like NVL (:entitlementID, '%') and ENTITLEMENT_APPROVER.ENTITLEMENT_ID = ENTITLEMENT.ENTITLEMENT_ID and upper(ENTITLEMENT_APPROVER.APRROVER_DETAIL) like upper(NVL(:approverID, '%')) and upper(ENTITLEMENT.ENTITLEMENT_NAME) like upper(NVL(:entitlementName, '%')) and upper (ENTITLEMENT.APPLICATION_NAME) like upper (NVL(:applicationName,'%')) and upper (ENTITLEMENT.SITE_NAME) like upper (NVL(:site,'%')) and upper (ENTITLEMENT.MODULE_NAME) like upper (NVL(:module,'%')) and upper (ENTITLEMENT.IT_PROCESSOR_GROUP) like upper (NVL(:itprocessor,'%')) and upper (ENTITLEMENT.ENTITLEMENT_OWNER_GID) like upper (NVL(:owner,'%')) AND USR.USR_LOGIN = ENTITLEMENT_APPROVER.APRROVER_DETAIL
I need display all rights, regardless of the fact that there are approvers. Currently, it does not diplay records where there is no approver.
This is the structure of the table
desc ENTITLEMENT_APPROVER Name Null Type ------------------------------ -------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ENTITLEMENT_ID NUMBER APPROVER_LEVEL NUMBER APROVER_TYPE VARCHAR2(200) APRROVER_DETAIL VARCHAR2(200) EXTRA_FIELD_1 VARCHAR2(200) EXTRA_FIELD_2 VARCHAR2(200)
desc ENTITLEMENT Name Null Type ------------------------------ -------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ENTITLEMENT_ID NOT NULL NUMBER APPLICATION_ID NOT NULL NUMBER APPLICATION_NAME VARCHAR2(200) ERP_ENTITLEMENT_ID VARCHAR2(200) MODULE_ID NOT NULL NUMBER MODULE_NAME NOT NULL VARCHAR2(200) SITE_ID NOT NULL NUMBER SITE_NAME NOT NULL VARCHAR2(200) ENTITLEMENT_NAME NOT NULL VARCHAR2(200) IS_ENTITLEMENT_REQUESTABLE VARCHAR2(20) SERVICE_ACCOUNT_FLAG VARCHAR2(20) DESCRIPTION VARCHAR2(200) TECHNICAL_DESCRIPTION VARCHAR2(200) COMPLIANCE_SENSITIVITY VARCHAR2(20) DATA_CLASSIFICATION VARCHAR2(200) INISIDER_TRADING_LIST VARCHAR2(20) IT_PROCESSOR_GROUP VARCHAR2(200) IT_USE_ONLY VARCHAR2(20) PROVISIONING_FLAG VARCHAR2(20) IT_SUPPORT_PERSON_GID VARCHAR2(200) REVIEW_CYCLE NUMBER LAST_REVIEWED_ON NOT NULL DATE LAST_REVIEWED_BY VARCHAR2(200) ENTITLEMENT_OWNER_GID VARCHAR2(200) LIST_OF_APPROVERS VARCHAR2(200) PERIMETER_ACCESS VARCHAR2(20) ROLE_ASSOCIATION VARCHAR2(4000) AUTOMATIC_PROVISIONING VARCHAR2(20) ON_DEMAND_ENTITLEMENT VARCHAR2(200) ON_DEMAND_ENTITLEMENT_PERIOD NUMBER COMMENTS VARCHAR2(4000) LAST_UPDATED_BY VARCHAR2(200) LAST_UPDATED NOT NULL DATE CREATED NOT NULL DATE RATIONALE_FOR_ACCESS VARCHAR2(20) EXTRA_FIELD_1 VARCHAR2(200) EXTRA_FIELD_2 VARCHAR2(200) LAST_REVIEWED_NAME VARCHAR2(200)
outer join?
select * from EC_ADMIN.ENTITLEMENT ENTITLEMENT left outer join EC_ADMIN.ENTITLEMENT_APPROVER ENTITLEMENT_APPROVER on ENTITLEMENT_APPROVER.ENTITLEMENT_ID = ENTITLEMENT.ENTITLEMENT_ID and upper(ENTITLEMENT_APPROVER.APRROVER_DETAIL) like upper(NVL(:approverID, '%')) left outer join DEVT_OIM.USR USR on USR.USR_LOGIN = ENTITLEMENT_APPROVER.APRROVER_DETAIL where upper (ENTITLEMENT.ENTITLEMENT_NAME) like upper(NVL(:entitlementName, '%')) and upper (ENTITLEMENT.APPLICATION_NAME) like upper (NVL(:applicationName,'%')) and upper (ENTITLEMENT.SITE_NAME) like upper (NVL(:site,'%')) and upper (ENTITLEMENT.MODULE_NAME) like upper (NVL(:module,'%')) and upper (ENTITLEMENT.IT_PROCESSOR_GROUP) like upper (NVL(:itprocessor,'%')) and upper (ENTITLEMENT.ENTITLEMENT_OWNER_GID) like upper (NVL(:owner,'%'))
Published by: chris227 on 27.06.2012 01:24
correctionPublished by: chris227 on 27.06.2012 03:02
fixPublished by: chris227 on 29.06.2012 06:16
Sorry, last necessary correction but I am confused with copy & paste, I do not really often write statements without trying (lack of testdata):
and the top (ENTITLEMENT_APPROVER. APRROVER_DETAIL) as superior (NVL (: approverID, ' %'))))
must be in the first join condition.
In addition, all predicates on PAYMENT must follow the join predicates in a where clause clause.
Maybe you are looking for
-
Wed Jul 27 13:17:38 2016 Panic report *. panic (cpu 0 0xffffff8018416f72 appellant): Kernel trap at 0xffffff80187e3d94, type 14 = page fault, registers: CR0: 0 X 0000000080010033, CR2: 0 X 0000000000000008, CR3: 0X0000000133A1A055 CR4: 0X000000000016
-
I have an iPhone 6 which is two years old. I downloaded the program "security and information" on the Apple store, and when he ran he finds two injected library. They are in/System/Library/AccessibilityBundles/I can delete these or should I take in?
-
Matrix of cross product on a HP 50 g
I'm doing a cross product of a vector. -30k 0.1I + 0,173j When I have this entry in the matrix and then drive choose the vector product out VECTOR - CROSS menu, I get "cross error: bad Argument Type. What I am doing wrong? I tried to go through the
-
Often when I need to type in a box, my MacBook Pro types in direction opposite. For example, my name, Miller, will appear as relliM. It drives me crazy! I went to the language and I do not have a language like Arabic listed. Another aspect of this pr
-
Your Player (10)) Windows Media is not installed correctly.
I got several emails today with links and when I click on the links and download video from topic I get this sign that appears saying that WMP10 is not installed correctly. I have not had any problems with him later than yesterday afternoon. Today, o