<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-87743367395938458</id><updated>2012-02-02T11:08:04.037-08:00</updated><title type='text'>IBM MAXIMO</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>35</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-2932674141852455762</id><published>2009-06-08T21:25:00.001-07:00</published><updated>2009-06-08T21:25:33.158-07:00</updated><title type='text'>Birt material</title><content type='html'>http://www.birt-exchange.org/documentation/BIRT_231/wwhelp/wwhimpl/js/html/wwhelp.htm#href=multipage.18.3.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-2932674141852455762?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/2932674141852455762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/06/birt-material.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/2932674141852455762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/2932674141852455762'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/06/birt-material.html' title='Birt material'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-1962928230475024655</id><published>2009-06-02T21:06:00.000-07:00</published><updated>2009-06-02T21:07:12.176-07:00</updated><title type='text'>Birt demo links</title><content type='html'>http://www.birt-exchange.com/be/demos/birt-report-designers/#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-1962928230475024655?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/1962928230475024655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/06/birt-demo-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/1962928230475024655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/1962928230475024655'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/06/birt-demo-links.html' title='Birt demo links'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-9069329796326868808</id><published>2009-06-02T19:44:00.000-07:00</published><updated>2009-06-02T19:45:44.346-07:00</updated><title type='text'>Birt Reporting useful links</title><content type='html'>http://download.birt-exchange.com/products/demos/birt/birt2_2/birt_2.2_index_small.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://www.birt-exchange.org/wiki/Connecting_to_Data_in_the_BIRT_Designer/&lt;br /&gt;&lt;br /&gt;http://www.birt-exchange.com/be/products/birt-report-designers/birt-report-designer-options/&lt;br /&gt;&lt;br /&gt;http://www.birt-exchange.org/forum/designing-birt-reports/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://www.eclipse.org/birt/phoenix/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-9069329796326868808?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/9069329796326868808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/06/birt-reporting-useful-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/9069329796326868808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/9069329796326868808'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/06/birt-reporting-useful-links.html' title='Birt Reporting useful links'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-5798583546999564836</id><published>2009-04-19T20:58:00.000-07:00</published><updated>2009-04-19T21:00:31.630-07:00</updated><title type='text'>Default value in Select Value in Oracle database</title><content type='html'>create table &lt;tablename&gt; (id number,crdate date default sysdate)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-5798583546999564836?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/5798583546999564836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/04/default-value-in-select-value-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/5798583546999564836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/5798583546999564836'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/04/default-value-in-select-value-in-oracle.html' title='Default value in Select Value in Oracle database'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-1025334531310496065</id><published>2009-04-12T18:19:00.000-07:00</published><updated>2009-04-12T18:21:09.948-07:00</updated><title type='text'>Assigning a default value to an attribute in Applcation Designer</title><content type='html'>To define a field default value using the Default Value control:&lt;br /&gt;1 In the Application Designer, open an application in the Workspace tab.&lt;br /&gt;2 Open the Control Palette.&lt;br /&gt;Defining a Default Filter for a Table&lt;br /&gt;20 Application Developer Guide&lt;br /&gt;3 Drag the Default Value control into the section that contains the field for&lt;br /&gt;which you want to assign a default value.&lt;br /&gt;If you do not see the Default Value control in the section, click Select Action &gt;&lt;br /&gt;Toggle Show All Controls.&lt;br /&gt;4 Open Control Properties for the control, and perform the following actions:&lt;br /&gt;a Enter the name of the attribute bound to the field to which you are&lt;br /&gt;assigning the default value.&lt;br /&gt;b Enter the desired default value in the Value field.&lt;br /&gt;c Select Insert for the Default Type&lt;br /&gt;5 Click Save.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-1025334531310496065?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/1025334531310496065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/04/assigning-default-value-to-attribute-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/1025334531310496065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/1025334531310496065'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/04/assigning-default-value-to-attribute-in.html' title='Assigning a default value to an attribute in Applcation Designer'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-3789807973119061412</id><published>2009-04-09T22:14:00.000-07:00</published><updated>2009-04-09T22:15:15.109-07:00</updated><title type='text'>Stored Procedure using Ref Cursor --02</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Package Body&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CREATE OR REPLACE PACKAGE BODY NET_TOT_CAL&lt;br /&gt;IS&lt;br /&gt; procedure NET_TOT_TICKET(p_start_date in date&lt;br /&gt;                         ,p_end_date in date&lt;br /&gt;                         ,p_ownerposition in varchar2&lt;br /&gt;                         ,p_owner in varchar2&lt;br /&gt;                         ,resultset in out nocopy ticket_out)&lt;br /&gt; is&lt;br /&gt;  --p_ticketid  varchar2(200):='SRQ16237';&lt;br /&gt;  t_start_date date;&lt;br /&gt;  t_end_date   date;&lt;br /&gt;  --p_owner    varchar2(200):='E003738';&lt;br /&gt;  i      number;&lt;br /&gt;  v_net_date varchar2(200):=0;&lt;br /&gt;  v_time  varchar2(200);&lt;br /&gt;  v_hours  varchar2(20);&lt;br /&gt;  v_minutes  varchar2(20);&lt;br /&gt;  v_seconds  varchar2(20);&lt;br /&gt;  v_mseconds varchar2(20);&lt;br /&gt;  v_check_date number;&lt;br /&gt;  v_hours_tot varchar2(20);&lt;br /&gt;  v_minutes_tot varchar2(20);&lt;br /&gt;  v_seconds_tot varchar2(20);&lt;br /&gt;  v_mseconds_tot number;&lt;br /&gt;  v_tot_date varchar2(200):=0;&lt;br /&gt;  --v_display_name varchar2(200);&lt;br /&gt;  Tab   NET_TOT_CAL.TABLE1;&lt;br /&gt;  Tab1   NET_TOT_CAL.TABLE1;  &lt;br /&gt;  v_workhours number;&lt;br /&gt;  v_workdate  date;&lt;br /&gt;  v_starttime date;&lt;br /&gt;  v_display_name varchar2(200);&lt;br /&gt;  v_endtime   date;&lt;br /&gt;  t_stmt   number;  &lt;br /&gt;  v_workhours1 number;&lt;br /&gt;  v_workdate1  date;&lt;br /&gt;  v_starttime1 date;&lt;br /&gt;  v_endtime1   date;&lt;br /&gt;  v_display    number;&lt;br /&gt;  v_changedate_next varchar2(200);&lt;br /&gt;begin&lt;br /&gt; i:=0;&lt;br /&gt; t_stmt:=1;&lt;br /&gt; v_display:=0;&lt;br /&gt; delete from test_ticket;&lt;br /&gt; commit;&lt;br /&gt; for main_rec in (select xt.*&lt;br /&gt;                        ,xp.displayname&lt;br /&gt;   ,xpc.shiftnum&lt;br /&gt;   ,xpc.calnum    &lt;br /&gt;                    from ticket xt&lt;br /&gt;   ,xx_person xp&lt;br /&gt;   ,xx_personcal xpc      &lt;br /&gt;  where xt.status='CLOSED' &lt;br /&gt;        and to_date(trunc(actualfinish),'DD-MON-RRRR') between to_date(p_start_date,'DD-MON-RRRR') and to_date(p_end_date,'DD-MON-RRRR')&lt;br /&gt;     and xt.owner=xp.personid&lt;br /&gt;     and xp.personid=xpc.personid&lt;br /&gt;--     and ticketid=t_ticketid  &lt;br /&gt;     and actualfinish is not null&lt;br /&gt;     and NVL(xt.ownergroup,'X')= Coalesce(p_ownerposition,xt.ownergroup,'X')&lt;br /&gt;     and xp.displayname=nvl(p_owner,xp.displayname) &lt;br /&gt;        )&lt;br /&gt; Loop        &lt;br /&gt;  t_stmt:=2;&lt;br /&gt;  v_net_date:=0;&lt;br /&gt;  v_tot_date:=0;    &lt;br /&gt;/* for rec in (select e.status&lt;br /&gt;                   ,e.tkstatusid&lt;br /&gt;       ,e.changedate&lt;br /&gt;       ,e.ticketid&lt;br /&gt;       ,(select min(d.status) &lt;br /&gt;           from tkstatus d       &lt;br /&gt;      where d.tkstatusid &gt; e.tkstatusid&lt;br /&gt;        and e.ticketid = d.ticketid&lt;br /&gt;        and d.tkstatusid = ((select min(d.tkstatusid) &lt;br /&gt;                               from tkstatus d&lt;br /&gt;                    where d.tkstatusid &gt; e.tkstatusid&lt;br /&gt;            and e.ticketid = d.ticketid))) next_status&lt;br /&gt;       ,(select min(d.tkstatusid) &lt;br /&gt;           from tkstatus d&lt;br /&gt;         where d.tkstatusid &gt; e.tkstatusid&lt;br /&gt;        and e.ticketid = d.ticketid) next_tkstatusid&lt;br /&gt;       ,(select min(d.changedate) &lt;br /&gt;           from tkstatus d&lt;br /&gt;      where d.tkstatusid&gt;e.tkstatusid&lt;br /&gt;        and e.ticketid=d.ticketid) changedate_next&lt;br /&gt;       ,xp.shiftnum&lt;br /&gt;       ,xp.calnum&lt;br /&gt;      from tkstatus e&lt;br /&gt;       ,xx_personcal xp&lt;br /&gt;             where e.ticketid=main_rec.ticketid&lt;br /&gt;      and e.owner=main_rec.owner&lt;br /&gt;      and e.owner=xp.personid      &lt;br /&gt;             order by 2&lt;br /&gt;            )*/&lt;br /&gt;   for rec in (select e.status&lt;br /&gt;                     ,e.tkstatusid&lt;br /&gt;      ,e.changedate changedate&lt;br /&gt;      ,e.ticketid&lt;br /&gt;      ,lead(status) over (order by tkstatusid) next_status&lt;br /&gt;      ,lead(tkstatusid) over(order by tkstatusid) next_tkstatusid&lt;br /&gt;      ,lead(changedate) over(order by tkstatusid) changedate_next&lt;br /&gt;        from tkstatus e&lt;br /&gt;               where e.ticketid=main_rec.ticketid&lt;br /&gt;               order by 2&lt;br /&gt;     )&lt;br /&gt;  Loop&lt;br /&gt;      Tab.delete;&lt;br /&gt;      Tab1.delete;&lt;br /&gt;    --------------for calculating Net time--------------------&lt;br /&gt;   t_stmt:=3;&lt;br /&gt;    if rec.status in ('INPROG','QUEUED') then&lt;br /&gt;     t_stmt:=4; &lt;br /&gt; --v_changedate_next:=to_char(rec.changedate_next,'DD-MON-RRRR HH:MI:SS PM');     &lt;br /&gt;        NET_TOT_CAL.date_cal(TO_DATE(rec.changedate,'DD-MON-RRRR HH:MI:SS PM'),TO_DATE(rec.changedate_next,'DD-MON-RRRR HH:MI:SS PM'),Tab);&lt;br /&gt;     if tab.count&gt;0 then&lt;br /&gt;   t_stmt:=5;&lt;br /&gt;   For k in tab.first..tab.last&lt;br /&gt;   Loop&lt;br /&gt;    if tab(k).next_date is not null then&lt;br /&gt;     t_stmt:=6;&lt;br /&gt;   Begin&lt;br /&gt;     select workhours&lt;br /&gt;        ,to_date(workdate,'DD-MON-RRRR HH:MI:SS AM')&lt;br /&gt;     ,starttime&lt;br /&gt;     ,endtime&lt;br /&gt;    into v_workhours&lt;br /&gt;        ,v_workdate&lt;br /&gt;        ,v_starttime&lt;br /&gt;     ,v_endtime&lt;br /&gt;    from xx_workperiod&lt;br /&gt;     where calnum=main_rec.calnum &lt;br /&gt;    and shiftnum=main_rec.shiftnum&lt;br /&gt;    and trunc(workdate)=trunc(TO_DATE(tab(k).next_date,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;   Exception&lt;br /&gt;     when no_data_found then&lt;br /&gt;    dbms_output.put_line('No data exists in work period table for :'||main_rec.calnum||' and '||main_rec.shiftnum||' for the date :'||tab(k).next_date);    &lt;br /&gt;     when too_many_rows then&lt;br /&gt;      dbms_output.put_line('Multiple data exists in work period table for :'||main_rec.calnum||' and '||main_rec.shiftnum||' for the date :'||tab(k).next_date);&lt;br /&gt;   End;&lt;br /&gt;   &lt;br /&gt;    t_stmt:=7;&lt;br /&gt;--   dbms_output.put_line(tab(k).next_date);&lt;br /&gt;    t_stmt:=8;&lt;br /&gt;   if v_workhours&lt;&gt;0 then&lt;br /&gt;    t_stmt:=9;&lt;br /&gt;    if to_date(v_workdate,'DD-MON-RRRR HH:MI:SS AM')-to_date(tab(k).next_date,'DD-MON-RRRR HH:MI:SS PM')=0 then&lt;br /&gt;     v_net_date:=v_net_date+v_workhours;--((to_date(tab(k).next_date,'DD-MON-RRRR HH:MI:SS PM')-to_date(v_workdate,'DD-MON-RRRR HH:MI:SS AM'))*24);&lt;br /&gt;--     dbms_output.put_line('v_net_date if : '||v_net_date||'---------'||v_workdate||'---------------'||tab(K).next_date);     &lt;br /&gt;    else&lt;br /&gt;     v_net_date:=v_net_date+((to_date(v_workdate,'DD-MON-RRRR HH:MI:SS AM')-to_date(tab(k).next_date,'DD-MON-RRRR HH:MI:SS PM'))*24);&lt;br /&gt;--     dbms_output.put_line('v_net_date else : '||v_net_date||'---------'||v_workdate);     &lt;br /&gt;    end if; &lt;br /&gt;   end if;     &lt;br /&gt;    else&lt;br /&gt;      v_net_date:=v_net_date+((tab(k).next_hrs)*24);&lt;br /&gt;--   dbms_output.put_line('v_net_date final : '||v_net_date||'---------'||v_workdate);&lt;br /&gt;    end if;  &lt;br /&gt;   End Loop;&lt;br /&gt;  End If;&lt;br /&gt;    End If;     &lt;br /&gt; &lt;br /&gt;    --------------for calculating total time--------------------&lt;br /&gt;&lt;br /&gt;    if rec.status in ('OPEN','PENDING','RESOLVED','SCHEDULED','INPROG','QUEUED','NEW') and  rec.next_status&lt;&gt;'CLOSED' and rec.changedate_next is not null then&lt;br /&gt;&lt;br /&gt;     t_stmt:=10;      &lt;br /&gt;     --v_changedate_next:=to_char(rec.changedate_next,'DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt;            NET_TOT_CAL.date_cal(TO_DATE(rec.changedate,'DD-MON-RRRR HH:MI:SS PM'),TO_DATE(rec.changedate_next,'DD-MON-RRRR HH:MI:SS PM'),Tab1);&lt;br /&gt;     if Tab1.count&gt;0 then&lt;br /&gt;   t_stmt:=11;&lt;br /&gt;   For k in Tab1.first..Tab1.last&lt;br /&gt;   Loop&lt;br /&gt;    if Tab1(k).next_date is not null then&lt;br /&gt;     t_stmt:=12;&lt;br /&gt;   Begin&lt;br /&gt;     select workhours&lt;br /&gt;        ,to_date(workdate,'DD-MON-RRRR HH:MI:SS AM')&lt;br /&gt;     ,starttime&lt;br /&gt;     ,endtime&lt;br /&gt;    into v_workhours1&lt;br /&gt;        ,v_workdate1&lt;br /&gt;        ,v_starttime1&lt;br /&gt;     ,v_endtime1&lt;br /&gt;    from xx_workperiod&lt;br /&gt;     where calnum=main_rec.calnum &lt;br /&gt;    and shiftnum=main_rec.shiftnum&lt;br /&gt;    and trunc(workdate)=trunc(TO_DATE(Tab1(k).next_date,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;   Exception&lt;br /&gt;     when no_data_found then&lt;br /&gt;    dbms_output.put_line('No data exists in work period table for :'||main_rec.calnum||' and '||main_rec.shiftnum||' for the date :'||Tab1(k).next_date);    &lt;br /&gt;     when too_many_rows then&lt;br /&gt;      dbms_output.put_line('Multiple data exists in work period table for :'||main_rec.calnum||' and '||main_rec.shiftnum||' for the date :'||Tab1(k).next_date);&lt;br /&gt;   End;&lt;br /&gt;   &lt;br /&gt;    t_stmt:=13;&lt;br /&gt;--   dbms_output.put_line(tab(k).next_date);&lt;br /&gt;    t_stmt:=14;&lt;br /&gt;   if v_workhours1&lt;&gt;0 then&lt;br /&gt;    t_stmt:=15;&lt;br /&gt;    if to_date(v_workdate1,'DD-MON-RRRR HH:MI:SS AM')-to_date(Tab1(k).next_date,'DD-MON-RRRR HH:MI:SS PM')=0 then&lt;br /&gt;     v_tot_date:=v_tot_date+v_workhours1;--((to_date(tab(k).next_date,'DD-MON-RRRR HH:MI:SS PM')-to_date(v_workdate,'DD-MON-RRRR HH:MI:SS AM'))*24);&lt;br /&gt;--     dbms_output.put_line('v_net_date if : '||v_net_date||'---------'||v_workdate||'---------------'||tab(K).next_date);     &lt;br /&gt;    else&lt;br /&gt;     v_tot_date:=v_tot_date+((to_date(v_workdate1,'DD-MON-RRRR HH:MI:SS AM')-to_date(Tab1(k).next_date,'DD-MON-RRRR HH:MI:SS PM'))*24);&lt;br /&gt;--     dbms_output.put_line('v_net_date else : '||v_net_date||'---------'||v_workdate);     &lt;br /&gt;    end if; &lt;br /&gt;   end if;     &lt;br /&gt;    else&lt;br /&gt;      v_tot_date:=v_tot_date+((Tab1(k).next_hrs)*24);&lt;br /&gt;&lt;br /&gt;    end if;  &lt;br /&gt;   End Loop;&lt;br /&gt;  End If;&lt;br /&gt;    End If;     &lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------------------------------------------------ &lt;br /&gt; &lt;br /&gt; End Loop;&lt;br /&gt;   v_net_date:=v_net_date/24;&lt;br /&gt;   v_tot_date:=v_tot_date/24;   &lt;br /&gt;   select days&lt;br /&gt;         ,TRUNC(A*24) Hours&lt;br /&gt;         ,TRUNC(A*24*60 - 60*TRUNC(A*24)) Minutes&lt;br /&gt;   ,TRUNC(A*24*60*60 - 60*TRUNC(A*24*60)) Seconds&lt;br /&gt;--   ,TRUNC(A*24*60*60*100 - 100*TRUNC(A*24*60*60)) mSeconds&lt;br /&gt;  into v_mseconds &lt;br /&gt;      ,v_hours&lt;br /&gt;      ,v_minutes&lt;br /&gt;   ,v_seconds&lt;br /&gt;--   ,v_mseconds  &lt;br /&gt;  from&lt;br /&gt;      (&lt;br /&gt;    select&lt;br /&gt;      trunc(v_net_date)  Days,&lt;br /&gt;   v_net_date - trunc(v_net_date) A&lt;br /&gt;   from dual&lt;br /&gt;      );&lt;br /&gt;   &lt;br /&gt;   select decode(length(v_hours),2,v_hours&lt;br /&gt;                                ,'0'||v_hours)&lt;br /&gt;   ,decode(length(v_minutes),2,v_minutes&lt;br /&gt;                            ,'0'||v_minutes)&lt;br /&gt;      ,decode(length(v_seconds),2,v_seconds&lt;br /&gt;                            ,'0'||v_seconds)                &lt;br /&gt;        into v_hours&lt;br /&gt;      ,v_minutes&lt;br /&gt;   ,v_seconds&lt;br /&gt;  from dual;           &lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;   select days&lt;br /&gt;         ,TRUNC(A*24) Hours&lt;br /&gt;         ,TRUNC(A*24*60 - 60*TRUNC(A*24)) Minutes&lt;br /&gt;   ,TRUNC(A*24*60*60 - 60*TRUNC(A*24*60)) Seconds&lt;br /&gt;--   ,TRUNC(A*24*60*60*100 - 100*TRUNC(A*24*60*60)) mSeconds&lt;br /&gt;  into v_mseconds_tot &lt;br /&gt;      ,v_hours_tot&lt;br /&gt;      ,v_minutes_tot&lt;br /&gt;   ,v_seconds_tot&lt;br /&gt;--   ,v_mseconds  &lt;br /&gt;  from&lt;br /&gt;      (&lt;br /&gt;    select&lt;br /&gt;      trunc(v_tot_date)  Days,&lt;br /&gt;   v_tot_date - trunc(v_tot_date) A&lt;br /&gt;   from dual&lt;br /&gt;      );&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   select decode(length(v_hours_tot),2,v_hours_tot&lt;br /&gt;                                ,'0'||v_hours_tot)&lt;br /&gt;   ,decode(length(v_minutes_tot),2,v_minutes_tot&lt;br /&gt;                            ,'0'||v_minutes_tot)&lt;br /&gt;      ,decode(length(v_seconds_tot),2,v_seconds_tot&lt;br /&gt;                            ,'0'||v_seconds_tot)                &lt;br /&gt;        into v_hours_tot&lt;br /&gt;      ,v_minutes_tot&lt;br /&gt;   ,v_seconds_tot&lt;br /&gt;  from dual;           &lt;br /&gt;&lt;br /&gt; -----------------------------queries for displaying other attributes---------------------------------------------&lt;br /&gt;  --selecting display name&lt;br /&gt;  Begin&lt;br /&gt;    select displayname&lt;br /&gt;   into v_display_name&lt;br /&gt;   from xx_person&lt;br /&gt; where personid=main_rec.owner;&lt;br /&gt;  Exception&lt;br /&gt;   when no_data_found then&lt;br /&gt;    v_display_name:=null;&lt;br /&gt;  End; &lt;br /&gt;/*&lt;br /&gt;  if v_display=0 then&lt;br /&gt;   dbms_output.put_line(' SR#              NetTime          TotalTime     Last Name     Userid     Location     Call Type     Status     Priority     Created Date     Status Date     Created By     ');&lt;br /&gt;   dbms_output.put_line('------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------');&lt;br /&gt;   v_display:=2;&lt;br /&gt;  end if;  &lt;br /&gt;   dbms_output.put_line(main_rec.ticketid||'     '||v_mseconds||'D'||v_hours||':'||v_minutes||':'||v_seconds||'     '||v_mseconds_tot||'D'||v_hours_tot||':'||v_minutes_tot||':'||v_seconds_tot||'     '||main_rec.displayname||'     '||main_rec.affectedperson||'     '||main_rec.location||'     '||main_rec.externalsystem||'     '||main_rec.status||'     '||main_rec.internalpriority||'     '||main_rec.creationdate||'     '||main_rec.statusdate||'     '||main_rec.createdby);&lt;br /&gt;*/&lt;br /&gt; insert into TEST_TICKET&lt;br /&gt; values(main_rec.ticketid,v_mseconds||'D'||v_hours||':'||v_minutes||':'||v_seconds,v_mseconds_tot||'D'||v_hours_tot||':'||v_minutes_tot||':'||v_seconds_tot,v_display_name,main_rec.affectedperson,main_rec.location,main_rec.externalsystem,main_rec.status,main_rec.internalpriority,main_rec.creationdate,main_rec.statusdate,main_rec.createdby);&lt;br /&gt; &lt;br /&gt; End Loop;  &lt;br /&gt; commit;&lt;br /&gt; OPEN RESULTSET FOR&lt;br /&gt;   SELECT * from TEST_TICKET;     &lt;br /&gt; &lt;br /&gt;exception&lt;br /&gt; when others then&lt;br /&gt;  dbms_output.put_line('Error at stmt: '|| t_stmt||Sqlerrm);End NET_TOT_TICKET; &lt;br /&gt;&lt;br /&gt;PROCEDURE DATE_CAL( P_DATE1 IN DATE&lt;br /&gt;     ,P_DATE2 IN DATE&lt;br /&gt;     ,P_TAB OUT TABLE1&lt;br /&gt;    )&lt;br /&gt;IS&lt;br /&gt;/*-- date1 date:=to_date('11-MAR-2009 08.35.15 PM','DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt;-- date2 date:=to_date('24-MAR-2009 09.34.15 PM','DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt; day1  varchar2(20);&lt;br /&gt; date3 date;&lt;br /&gt; date4 number;&lt;br /&gt; v_check number:=0;&lt;br /&gt; k number;&lt;br /&gt; j number;&lt;br /&gt;Begin&lt;br /&gt; j:=0;&lt;br /&gt; LOOP&lt;br /&gt;   if v_check=0 and p_date2-p_date1&gt;=1 then &lt;br /&gt;     date3:=p_date1;&lt;br /&gt;     --DBMS_OUTPUT.PUT_LINE('DATE3 IS:'||to_char(DATE3,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;     j:=j+1;&lt;br /&gt;     P_TAB(j).Next_Date:=to_char(date3,'DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt;  v_check:=1;&lt;br /&gt;   end if;&lt;br /&gt; if p_date2-nvl(date3,p_date1)&lt;1 then&lt;br /&gt;  if nvl(date3,p_date1)-p_date2&lt;0 then&lt;br /&gt;    date4:=p_date2-nvl(date3,p_date1);&lt;br /&gt;  else &lt;br /&gt;   date4:=nvl(date3,p_date1)-p_date2;&lt;br /&gt;  end if; &lt;br /&gt;  --dbms_output.put_line('date4 is:'||date4);&lt;br /&gt; j:=j+1;&lt;br /&gt;    P_TAB(j).Next_Hrs:=date4;&lt;br /&gt; else &lt;br /&gt;  DATE3:=nvl(date3,p_date1)+1;&lt;br /&gt;  --DBMS_OUTPUT.PUT_LINE('DATE3 IS:'||to_char(DATE3,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;  j:=j+1;&lt;br /&gt;  P_TAB(j).Next_Date:=to_char(date3,'DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt; end if; &lt;br /&gt; exit when date4&gt;0 or date3-p_date2=0;&lt;br /&gt; END LOOP; &lt;br /&gt;/* &lt;br /&gt; for k in p_tab.first..p_tab.last&lt;br /&gt; loop&lt;br /&gt;  DBMS_OUTPUT.PUT_LINE('Date is:'||p_tab(k).next_date);&lt;br /&gt; end loop;&lt;br /&gt;*/ &lt;br /&gt;/*&lt;br /&gt; Type rec is record&lt;br /&gt; (Next_Date varchar2(200),&lt;br /&gt;  Next_Hrs  Number&lt;br /&gt; );&lt;br /&gt; Type Table1 is Table&lt;br /&gt; of rec index by Binary_integer;&lt;br /&gt; &lt;br /&gt; p_TAB  Table1;&lt;br /&gt;&lt;br /&gt; p_date1 date:=to_date('11-MAR-2009 08.35.15 PM','DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt; p_date2 date:=to_date('24-MAR-2009 08.55.15 PM','DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt;*/ &lt;br /&gt; day1  varchar2(20);&lt;br /&gt; date3 date;&lt;br /&gt; date4 number;&lt;br /&gt; v_check number:=0;&lt;br /&gt; k number;&lt;br /&gt; j number;&lt;br /&gt; v_exit number:=0;&lt;br /&gt;Begin&lt;br /&gt; j:=0;&lt;br /&gt; LOOP&lt;br /&gt;   if v_check=0 and p_date2-p_date1&gt;=1 then &lt;br /&gt;     date3:=trunc(p_date1)+1;&lt;br /&gt;--     DBMS_OUTPUT.PUT_LINE('DATE3 IS:'||to_char(DATE3,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;--     j:=j+1;&lt;br /&gt;--     TAB(j).Next_Date:=to_char(date3,'DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt;  v_check:=1;&lt;br /&gt;    if date3&gt;p_date1 then&lt;br /&gt;  date4:=date3-p_date1;&lt;br /&gt;  --dbms_output.put_line('DATE4 is:'||date4);&lt;br /&gt;     j:=j+1;&lt;br /&gt;     P_TAB(j).Next_Hrs:=date4;&lt;br /&gt;  &lt;br /&gt; end if; &lt;br /&gt;   end if;&lt;br /&gt;   &lt;br /&gt; if p_date2-nvl(date3,p_date1)&lt;1 then&lt;br /&gt;  if nvl(date3,p_date1)-p_date2&lt;0 then&lt;br /&gt;    date4:=p_date2-nvl(date3,p_date1);&lt;br /&gt; v_exit:=1;&lt;br /&gt;  else &lt;br /&gt;   date4:=nvl(date3,p_date1)-p_date2;&lt;br /&gt;   v_exit:=1;&lt;br /&gt;  end if; &lt;br /&gt;--  dbms_output.put_line('date4 is:'||date4);&lt;br /&gt; j:=j+1;&lt;br /&gt;    P_TAB(j).Next_Hrs:=date4;&lt;br /&gt; else &lt;br /&gt;  DATE3:=nvl(date3,p_date1)+1;&lt;br /&gt;  --DBMS_OUTPUT.PUT_LINE('DATE3 IS:'||to_char(DATE3,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;  j:=j+1;&lt;br /&gt;  P_TAB(j).Next_Date:=to_char(date3,'DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt; end if; &lt;br /&gt; exit when v_exit=1;&lt;br /&gt; END LOOP; &lt;br /&gt;/*&lt;br /&gt; for k in p_tab.first..tab.last&lt;br /&gt; loop&lt;br /&gt;  DBMS_OUTPUT.PUT_LINE('Date is:'||p_tab(k).next_date||'---------------'||p_tab(k).next_hrs);&lt;br /&gt; end loop;&lt;br /&gt;*/&lt;br /&gt;end date_cal;&lt;br /&gt;&lt;br /&gt;END NET_TOT_CAL;&lt;br /&gt;/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-3789807973119061412?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/3789807973119061412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/04/stored-procedure-using-ref-cursor-02.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/3789807973119061412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/3789807973119061412'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/04/stored-procedure-using-ref-cursor-02.html' title='Stored Procedure using Ref Cursor --02'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-6980181366953481026</id><published>2009-04-09T22:13:00.000-07:00</published><updated>2009-04-09T22:14:10.298-07:00</updated><title type='text'>Stored Procedure using Ref cursor  --01</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Normal Table:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE TABLE TEST_TICKET&lt;br /&gt;   ( SR_NO       VARCHAR2(240),&lt;br /&gt;     NET_TIME   VARCHAR2(240),&lt;br /&gt;  TOTAL_TIME   VARCHAR2(240),&lt;br /&gt;  LAST_NAME   VARCHAR2(240),&lt;br /&gt;  USERID    VARCHAR2(240),&lt;br /&gt;  LOCATION   VARCHAR2(240),&lt;br /&gt;  CALLTYPE   VARCHAR2(240),&lt;br /&gt;  STATUS    VARCHAR2(240),&lt;br /&gt;  PRIORITY   VARCHAR2(240),&lt;br /&gt;  CREATEDDATE  VARCHAR2(240),&lt;br /&gt;  STATUSDATE   VARCHAR2(240),&lt;br /&gt;  CREATEDBY   VARCHAR2(240)&lt;br /&gt;      )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Droping a table :&lt;br /&gt;&lt;br /&gt;drop table  TEST_TICKET&lt;br /&gt;&lt;br /&gt;select * from TEST_TICKET&lt;br /&gt;&lt;br /&gt;truncate table test_ticket.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Package specification...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CREATE OR REPLACE PACKAGE NET_TOT_CAL&lt;br /&gt;IS&lt;br /&gt;&lt;br /&gt;TYPE TICKET_OUT IS REF CURSOR RETURN TEST_TICKET%ROWTYPE;                                      &lt;br /&gt;&lt;br /&gt; TYPE REC IS RECORD&lt;br /&gt; (NEXT_DATE VARCHAR2(200),&lt;br /&gt;  NEXT_HRS  NUMBER&lt;br /&gt; );&lt;br /&gt; TYPE TABLE1 IS TABLE&lt;br /&gt; OF REC INDEX BY BINARY_INTEGER;&lt;br /&gt;&lt;br /&gt;PROCEDURE NET_TOT_TICKET (P_START_DATE IN DATE&lt;br /&gt;                         ,P_END_DATE IN DATE&lt;br /&gt;                         ,P_OWNERPOSITION IN VARCHAR2&lt;br /&gt;                         ,P_OWNER IN VARCHAR2&lt;br /&gt;                         ,RESULTSET IN OUT NOCOPY TICKET_OUT);&lt;br /&gt;&lt;br /&gt;PROCEDURE DATE_CAL( P_DATE1 IN DATE&lt;br /&gt;           ,P_DATE2 IN DATE&lt;br /&gt;           ,P_TAB OUT TABLE1&lt;br /&gt;          );&lt;br /&gt;&lt;br /&gt;END NET_TOT_CAL;&lt;br /&gt;/&lt;br /&gt;SHOW ERR;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Procedure to display output:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE OR REPLACE PACKAGE NET_TOT_CAL&lt;br /&gt;IS&lt;br /&gt;&lt;br /&gt;TYPE TICKET_OUT IS REF CURSOR RETURN TEST_TICKET%ROWTYPE;                                      &lt;br /&gt;&lt;br /&gt; TYPE REC IS RECORD&lt;br /&gt; (NEXT_DATE VARCHAR2(200),&lt;br /&gt;  NEXT_HRS  NUMBER&lt;br /&gt; );&lt;br /&gt; TYPE TABLE1 IS TABLE&lt;br /&gt; OF REC INDEX BY BINARY_INTEGER;&lt;br /&gt;&lt;br /&gt;PROCEDURE NET_TOT_TICKET (P_START_DATE IN DATE&lt;br /&gt;                         ,P_END_DATE IN DATE&lt;br /&gt;                         ,P_OWNERPOSITION IN VARCHAR2&lt;br /&gt;                         ,P_OWNER IN VARCHAR2&lt;br /&gt;                         ,RESULTSET IN OUT NOCOPY TICKET_OUT);&lt;br /&gt;&lt;br /&gt;PROCEDURE DATE_CAL( P_DATE1 IN DATE&lt;br /&gt;           ,P_DATE2 IN DATE&lt;br /&gt;           ,P_TAB OUT TABLE1&lt;br /&gt;          );&lt;br /&gt;&lt;br /&gt;END NET_TOT_CAL;&lt;br /&gt;/&lt;br /&gt;SHOW ERR;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-6980181366953481026?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/6980181366953481026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/04/stored-procedure-using-ref-cursor-01.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/6980181366953481026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/6980181366953481026'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/04/stored-procedure-using-ref-cursor-01.html' title='Stored Procedure using Ref cursor  --01'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-8508097084746096734</id><published>2009-04-06T19:59:00.000-07:00</published><updated>2009-04-06T20:04:20.318-07:00</updated><title type='text'>Asterick next to a field.</title><content type='html'>Go to application designer Application and select the application(Eg: Asset) where you wanna change the settings of the fields and there select the fields and in the properties keep Required = true.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-8508097084746096734?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/8508097084746096734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/04/asterick-next-to-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8508097084746096734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8508097084746096734'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/04/asterick-next-to-field.html' title='Asterick next to a field.'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-7841311376447500828</id><published>2009-04-06T18:46:00.000-07:00</published><updated>2009-04-06T18:51:31.992-07:00</updated><title type='text'>Path to check the settings that control the size of the fields in Appication (Application Designer)</title><content type='html'>The settings are kept in the file:&lt;br /&gt;&lt;root&gt;\applications\maximo\maximouiweb\webmodule&lt;br /&gt;\webclient\common\fieldsizegroups.jsp&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For string fields (ALN, UPPER, LOWER), the defined sizes are:&lt;br /&gt;􀁔 If the database size is 1 or 2 characters, then the field length displayed on a&lt;br /&gt;screen is 2.&lt;br /&gt;􀁔 If the database size is 3 through 30 characters, then the field length&lt;br /&gt;displayed on a screen is 10.&lt;br /&gt;􀁔 If the database size is greater than 30 characters, then the field length&lt;br /&gt;displayed on a screen is 40.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-7841311376447500828?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/7841311376447500828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/04/path-to-check-settings-that-control.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/7841311376447500828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/7841311376447500828'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/04/path-to-check-settings-that-control.html' title='Path to check the settings that control the size of the fields in Appication (Application Designer)'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-8838540076934436136</id><published>2009-04-06T18:30:00.000-07:00</published><updated>2009-04-06T18:32:22.741-07:00</updated><title type='text'>Deleting an User Created Application in Application Desginer</title><content type='html'>To delete an application, open a database editor and complete the following steps:&lt;br /&gt;1 Login as an administrator.&lt;br /&gt;2 Type the following commands, and replace the variable &lt;APPLICATION NAME&gt;&lt;br /&gt;with the name of the application you want to delete.&lt;br /&gt;Enter the application name in all uppercase. For example, if the name of the&lt;br /&gt;application you want to delete is Test, replace APPLICATION NAME with TEST&lt;br /&gt;in all the commands.&lt;br /&gt;delete from maxapps where app='&lt;APPLICATION NAME&gt;';&lt;br /&gt;delete from maxpresentation where app='&lt;APPLICATION NAME&gt;';&lt;br /&gt;delete from sigoption where app='&lt;APPLICATION NAME&gt;';&lt;br /&gt;delete from applicationauth where app='&lt;APPLICATION NAME&gt;';&lt;br /&gt;delete from maxlabels where app='&lt;APPLICATION NAME&gt;';&lt;br /&gt;delete from maxmenu where moduleapp='&lt;APPLICATION NAME&gt;' and menutype&lt;br /&gt;!='Module';&lt;br /&gt;delete from maxmenu where moduleapp='&lt;Module Name&gt;' and&lt;br /&gt;elementtype='APP' and keyvalue='&lt;APPLICATION NAME&gt;';&lt;br /&gt;delete from appdoctype where app= '&lt;APPLICATION NAME&gt;;&lt;br /&gt;3 Logout of the database editor.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-8838540076934436136?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/8838540076934436136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/04/deleting-user-created-application-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8838540076934436136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8838540076934436136'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/04/deleting-user-created-application-in.html' title='Deleting an User Created Application in Application Desginer'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-8233369436583118357</id><published>2009-04-05T21:26:00.001-07:00</published><updated>2009-04-05T21:26:44.126-07:00</updated><title type='text'>Path to Open class files in Cron task</title><content type='html'>path to open class files  in cron task :   C:\IBM\SMP\maximo\applications\maximo\businessobjects\classes\psdi\app&lt;br /&gt;&lt;br /&gt;http://10.10.110.24:9080/maximo&lt;br /&gt;http://10.10.110.25:9060/console&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-8233369436583118357?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/8233369436583118357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/04/path-to-open-class-files-in-cron-task.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8233369436583118357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8233369436583118357'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/04/path-to-open-class-files-in-cron-task.html' title='Path to Open class files in Cron task'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-2161561274009172989</id><published>2009-03-29T22:19:00.000-07:00</published><updated>2009-03-29T22:20:46.232-07:00</updated><title type='text'>My Final Version Code</title><content type='html'>CREATE OR REPLACE PACKAGE XX_NET_TOT_CAL&lt;br /&gt;IS&lt;br /&gt;PROCEDURE NET_TOT_TICKET (P_START_DATE IN DATE&lt;br /&gt;                         ,P_END_DATE IN DATE&lt;br /&gt;                         ,P_OWNER IN VARCHAR2);&lt;br /&gt; TYPE REC IS RECORD&lt;br /&gt; (NEXT_DATE VARCHAR2(200),&lt;br /&gt;  NEXT_HRS  NUMBER&lt;br /&gt; );&lt;br /&gt; TYPE TABLE1 IS TABLE&lt;br /&gt; OF REC INDEX BY BINARY_INTEGER;&lt;br /&gt;&lt;br /&gt;PROCEDURE DATE_CAL( P_DATE1 IN DATE&lt;br /&gt;     ,P_DATE2 IN DATE&lt;br /&gt;     ,P_TAB OUT TABLE1&lt;br /&gt;    );&lt;br /&gt;&lt;br /&gt;END XX_NET_TOT_CAL;&lt;br /&gt;/&lt;br /&gt;SHOW ERR;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Next Execute the following code...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE OR REPLACE PACKAGE BODY XX_NET_TOT_CAL&lt;br /&gt;IS&lt;br /&gt; procedure NET_TOT_TICKET(p_start_date in date&lt;br /&gt;                         ,p_end_date in date&lt;br /&gt;                         ,p_owner in varchar2)&lt;br /&gt; is&lt;br /&gt;  --p_ticketid  varchar2(200):='SRQ16237';&lt;br /&gt;  t_start_date date;&lt;br /&gt;  t_end_date   date;&lt;br /&gt;  --p_owner    varchar2(200):='E003738';&lt;br /&gt;  i      number;&lt;br /&gt;  v_net_date varchar2(200):=0;&lt;br /&gt;  v_time  varchar2(200);&lt;br /&gt;  v_hours  number;&lt;br /&gt;  v_minutes  number;&lt;br /&gt;  v_seconds  number;&lt;br /&gt;  v_mseconds number;&lt;br /&gt;  v_check_date number;&lt;br /&gt;  v_hours_tot number;&lt;br /&gt;  v_minutes_tot number;&lt;br /&gt;  v_seconds_tot number;&lt;br /&gt;  v_mseconds_tot number;&lt;br /&gt;  v_tot_date varchar2(200):=0;&lt;br /&gt;  Tab   XX_NET_TOT_CAL.TABLE1;&lt;br /&gt;  Tab1   XX_NET_TOT_CAL.TABLE1;  &lt;br /&gt;  v_workhours number;&lt;br /&gt;  v_workdate  date;&lt;br /&gt;  v_starttime date;&lt;br /&gt;  v_display_name varchar2(200);&lt;br /&gt;  v_display_name1  varchar2(200);&lt;br /&gt;  v_endtime   date;&lt;br /&gt;  t_stmt   number;  &lt;br /&gt;  v_workhours1 number;&lt;br /&gt;  v_workdate1  date;&lt;br /&gt;  v_starttime1 date;&lt;br /&gt;  v_endtime1   date;&lt;br /&gt;  v_display    number;&lt;br /&gt;begin&lt;br /&gt; i:=0;&lt;br /&gt; t_stmt:=1;&lt;br /&gt; v_display:=0;&lt;br /&gt; for main_rec in (select * &lt;br /&gt;                    from ticket&lt;br /&gt;      where status='CLOSED' &lt;br /&gt;        and to_date(trunc(actualfinish),'DD-MON-RRRR') between to_date(p_start_date,'DD-MON-RRRR') and to_date(p_end_date,'DD-MON-RRRR')&lt;br /&gt;     and owner=nvl(p_owner,owner)&lt;br /&gt;     and actualfinish is not null&lt;br /&gt;--     and ticketid=t_ticketid     &lt;br /&gt;        )&lt;br /&gt; Loop        &lt;br /&gt;  t_stmt:=2;&lt;br /&gt;  v_net_date:=0;&lt;br /&gt;  v_tot_date:=0;    &lt;br /&gt;/* for rec in (select e.status&lt;br /&gt;                   ,e.tkstatusid&lt;br /&gt;       ,e.changedate&lt;br /&gt;       ,e.ticketid&lt;br /&gt;       ,(select min(d.status) &lt;br /&gt;           from tkstatus d       &lt;br /&gt;      where d.tkstatusid &gt; e.tkstatusid&lt;br /&gt;        and e.ticketid = d.ticketid&lt;br /&gt;        and d.tkstatusid = ((select min(d.tkstatusid) &lt;br /&gt;                               from tkstatus d&lt;br /&gt;                    where d.tkstatusid &gt; e.tkstatusid&lt;br /&gt;            and e.ticketid = d.ticketid))) next_status&lt;br /&gt;       ,(select min(d.tkstatusid) &lt;br /&gt;           from tkstatus d&lt;br /&gt;         where d.tkstatusid &gt; e.tkstatusid&lt;br /&gt;        and e.ticketid = d.ticketid) next_tkstatusid&lt;br /&gt;       ,(select min(d.changedate) &lt;br /&gt;           from tkstatus d&lt;br /&gt;      where d.tkstatusid&gt;e.tkstatusid&lt;br /&gt;        and e.ticketid=d.ticketid) changedate_next&lt;br /&gt;       ,xp.shiftnum&lt;br /&gt;       ,xp.calnum&lt;br /&gt;      from tkstatus e&lt;br /&gt;       ,xx_personcal xp&lt;br /&gt;             where e.ticketid=main_rec.ticketid&lt;br /&gt;      and e.owner=main_rec.owner&lt;br /&gt;      and e.owner=xp.personid      &lt;br /&gt;             order by 2&lt;br /&gt;            )*/&lt;br /&gt;   for rec in (select e.status&lt;br /&gt;                     ,e.tkstatusid&lt;br /&gt;      ,e.changedate&lt;br /&gt;      ,e.ticketid&lt;br /&gt;      ,lead(status) over (order by tkstatusid) next_status&lt;br /&gt;      ,lead(tkstatusid) over(order by tkstatusid) next_tkstatusid&lt;br /&gt;      ,lead(changedate) over(order by tkstatusid) changedate_next&lt;br /&gt;      ,xp.shiftnum&lt;br /&gt;      ,xp.calnum   &lt;br /&gt;        from tkstatus e&lt;br /&gt;       ,xx_personcal xp&lt;br /&gt;               where e.ticketid=main_rec.ticketid&lt;br /&gt;        and e.owner=main_rec.owner&lt;br /&gt;        and e.owner=xp.personid      &lt;br /&gt;               order by 2&lt;br /&gt;     )&lt;br /&gt;  Loop&lt;br /&gt;      Tab.delete;&lt;br /&gt;      Tab1.delete;&lt;br /&gt;    --------------for calculating Net time--------------------&lt;br /&gt;   t_stmt:=3;&lt;br /&gt;    if rec.status = 'INPROG' then&lt;br /&gt;     t_stmt:=4;      &lt;br /&gt;        XX_NET_TOT_CAL.date_cal(TO_DATE(rec.changedate,'DD-MON-RRRR HH:MI:SS PM'),TO_DATE(rec.changedate_next,'DD-MON-RRRR HH:MI:SS PM'),Tab);&lt;br /&gt;     if tab.count&gt;0 then&lt;br /&gt;   t_stmt:=5;&lt;br /&gt;   For k in tab.first..tab.last&lt;br /&gt;   Loop&lt;br /&gt;    if tab(k).next_date is not null then&lt;br /&gt;     t_stmt:=6;&lt;br /&gt;   Begin&lt;br /&gt;     select workhours&lt;br /&gt;        ,to_date(workdate,'DD-MON-RRRR HH:MI:SS AM')&lt;br /&gt;     ,starttime&lt;br /&gt;     ,endtime&lt;br /&gt;    into v_workhours&lt;br /&gt;        ,v_workdate&lt;br /&gt;        ,v_starttime&lt;br /&gt;     ,v_endtime&lt;br /&gt;    from xx_workperiod&lt;br /&gt;     where calnum=rec.calnum &lt;br /&gt;    and shiftnum=rec.shiftnum&lt;br /&gt;    and trunc(workdate)=trunc(TO_DATE(tab(k).next_date,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;   Exception&lt;br /&gt;     when no_data_found then&lt;br /&gt;    dbms_output.put_line('No data exists in work period table for :'||rec.calnum||' and '||rec.shiftnum||' for the date :'||tab(k).next_date);    &lt;br /&gt;     when too_many_rows then&lt;br /&gt;      dbms_output.put_line('Multiple data exists in work period table for :'||rec.calnum||' and '||rec.shiftnum||' for the date :'||tab(k).next_date);&lt;br /&gt;   End;&lt;br /&gt;   &lt;br /&gt;    t_stmt:=7;&lt;br /&gt;--   dbms_output.put_line(tab(k).next_date);&lt;br /&gt;    t_stmt:=8;&lt;br /&gt;   if v_workhours&lt;&gt;0 then&lt;br /&gt;    t_stmt:=9;&lt;br /&gt;    if to_date(v_workdate,'DD-MON-RRRR HH:MI:SS AM')-to_date(tab(k).next_date,'DD-MON-RRRR HH:MI:SS PM')=0 then&lt;br /&gt;     v_net_date:=v_net_date+v_workhours;--((to_date(tab(k).next_date,'DD-MON-RRRR HH:MI:SS PM')-to_date(v_workdate,'DD-MON-RRRR HH:MI:SS AM'))*24);&lt;br /&gt;--     dbms_output.put_line('v_net_date if : '||v_net_date||'---------'||v_workdate||'---------------'||tab(K).next_date);     &lt;br /&gt;    else&lt;br /&gt;     v_net_date:=v_net_date+((to_date(v_workdate,'DD-MON-RRRR HH:MI:SS AM')-to_date(tab(k).next_date,'DD-MON-RRRR HH:MI:SS PM'))*24);&lt;br /&gt;--     dbms_output.put_line('v_net_date else : '||v_net_date||'---------'||v_workdate);     &lt;br /&gt;    end if; &lt;br /&gt;   end if;     &lt;br /&gt;    else&lt;br /&gt;      v_net_date:=v_net_date+((tab(k).next_hrs)*24);&lt;br /&gt;--   dbms_output.put_line('v_net_date final : '||v_net_date||'---------'||v_workdate);&lt;br /&gt;    end if;  &lt;br /&gt;   End Loop;&lt;br /&gt;  End If;&lt;br /&gt;    End If;     &lt;br /&gt; &lt;br /&gt;    --------------for calculating total time--------------------&lt;br /&gt;&lt;br /&gt;    if rec.status in ('OPEN','PENDING','RESOLVED','SCHEDULED','INPROG','QUEUED','NEW') and  rec.changedate_next is not null then&lt;br /&gt;&lt;br /&gt;     t_stmt:=10;      &lt;br /&gt;            XX_NET_TOT_CAL.date_cal(TO_DATE(rec.changedate,'DD-MON-RRRR HH:MI:SS PM'),TO_DATE(rec.changedate_next,'DD-MON-RRRR HH:MI:SS PM'),Tab1);&lt;br /&gt;     if Tab1.count&gt;0 then&lt;br /&gt;   t_stmt:=11;&lt;br /&gt;   For k in Tab1.first..Tab1.last&lt;br /&gt;   Loop&lt;br /&gt;    if Tab1(k).next_date is not null then&lt;br /&gt;     t_stmt:=12;&lt;br /&gt;   Begin&lt;br /&gt;     select workhours&lt;br /&gt;        ,to_date(workdate,'DD-MON-RRRR HH:MI:SS AM')&lt;br /&gt;     ,starttime&lt;br /&gt;     ,endtime&lt;br /&gt;    into v_workhours1&lt;br /&gt;        ,v_workdate1&lt;br /&gt;        ,v_starttime1&lt;br /&gt;     ,v_endtime1&lt;br /&gt;    from xx_workperiod&lt;br /&gt;     where calnum=rec.calnum &lt;br /&gt;    and shiftnum=rec.shiftnum&lt;br /&gt;    and trunc(workdate)=trunc(TO_DATE(Tab1(k).next_date,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;   Exception&lt;br /&gt;     when no_data_found then&lt;br /&gt;    dbms_output.put_line('No data exists in work period table for :'||rec.calnum||' and '||rec.shiftnum||' for the date :'||Tab1(k).next_date);    &lt;br /&gt;     when too_many_rows then&lt;br /&gt;      dbms_output.put_line('Multiple data exists in work period table for :'||rec.calnum||' and '||rec.shiftnum||' for the date :'||Tab1(k).next_date);&lt;br /&gt;   End;&lt;br /&gt;   &lt;br /&gt;    t_stmt:=13;&lt;br /&gt;--   dbms_output.put_line(tab(k).next_date);&lt;br /&gt;    t_stmt:=14;&lt;br /&gt;   if v_workhours1&lt;&gt;0 then&lt;br /&gt;    t_stmt:=15;&lt;br /&gt;    if to_date(v_workdate1,'DD-MON-RRRR HH:MI:SS AM')-to_date(Tab1(k).next_date,'DD-MON-RRRR HH:MI:SS PM')=0 then&lt;br /&gt;     v_tot_date:=v_tot_date+v_workhours1;--((to_date(tab(k).next_date,'DD-MON-RRRR HH:MI:SS PM')-to_date(v_workdate,'DD-MON-RRRR HH:MI:SS AM'))*24);&lt;br /&gt;--     dbms_output.put_line('v_net_date if : '||v_net_date||'---------'||v_workdate||'---------------'||tab(K).next_date);     &lt;br /&gt;    else&lt;br /&gt;     v_tot_date:=v_tot_date+((to_date(v_workdate1,'DD-MON-RRRR HH:MI:SS AM')-to_date(Tab1(k).next_date,'DD-MON-RRRR HH:MI:SS PM'))*24);&lt;br /&gt;--     dbms_output.put_line('v_net_date else : '||v_net_date||'---------'||v_workdate);     &lt;br /&gt;    end if; &lt;br /&gt;   end if;     &lt;br /&gt;    else&lt;br /&gt;      v_tot_date:=v_tot_date+((Tab1(k).next_hrs)*24);&lt;br /&gt;&lt;br /&gt;    end if;  &lt;br /&gt;   End Loop;&lt;br /&gt;  End If;&lt;br /&gt;    End If;     &lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------------------------------------------------ &lt;br /&gt; &lt;br /&gt; End Loop;&lt;br /&gt;   v_net_date:=v_net_date/24;&lt;br /&gt;   v_tot_date:=v_tot_date/24;   &lt;br /&gt;   select days&lt;br /&gt;         ,TRUNC(A*24) Hours&lt;br /&gt;         ,TRUNC(A*24*60 - 60*TRUNC(A*24)) Minutes&lt;br /&gt;   ,TRUNC(A*24*60*60 - 60*TRUNC(A*24*60)) Seconds&lt;br /&gt;--   ,TRUNC(A*24*60*60*100 - 100*TRUNC(A*24*60*60)) mSeconds&lt;br /&gt;  into v_mseconds &lt;br /&gt;      ,v_hours&lt;br /&gt;      ,v_minutes&lt;br /&gt;   ,v_seconds&lt;br /&gt;--   ,v_mseconds  &lt;br /&gt;  from&lt;br /&gt;      (&lt;br /&gt;    select&lt;br /&gt;      trunc(v_net_date)  Days,&lt;br /&gt;   v_net_date - trunc(v_net_date) A&lt;br /&gt;   from dual&lt;br /&gt;      );&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;   select days&lt;br /&gt;         ,TRUNC(A*24) Hours&lt;br /&gt;         ,TRUNC(A*24*60 - 60*TRUNC(A*24)) Minutes&lt;br /&gt;   ,TRUNC(A*24*60*60 - 60*TRUNC(A*24*60)) Seconds&lt;br /&gt;--   ,TRUNC(A*24*60*60*100 - 100*TRUNC(A*24*60*60)) mSeconds&lt;br /&gt;  into v_mseconds_tot &lt;br /&gt;      ,v_hours_tot&lt;br /&gt;      ,v_minutes_tot&lt;br /&gt;   ,v_seconds_tot&lt;br /&gt;--   ,v_mseconds  &lt;br /&gt;  from&lt;br /&gt;      (&lt;br /&gt;    select&lt;br /&gt;      trunc(v_tot_date)  Days,&lt;br /&gt;   v_tot_date - trunc(v_tot_date) A&lt;br /&gt;   from dual&lt;br /&gt;      );&lt;br /&gt;&lt;br /&gt; -----------------------------queries for displaying other attributes---------------------------------------------&lt;br /&gt;  --selecting display name&lt;br /&gt;  Begin&lt;br /&gt;    select displayname&lt;br /&gt;   into v_display_name&lt;br /&gt;   from xx_person&lt;br /&gt; where personid=main_rec.owner;&lt;br /&gt;  Exception&lt;br /&gt;   when no_data_found then&lt;br /&gt;    v_display_name:=null;&lt;br /&gt;  End; &lt;br /&gt;Begin&lt;br /&gt;    select displayname&lt;br /&gt;   into v_display_name1&lt;br /&gt;   from xx_person&lt;br /&gt; where personid=main_rec.createdby;&lt;br /&gt;  Exception&lt;br /&gt;   when no_data_found then&lt;br /&gt;    v_display_name:=null;&lt;br /&gt;  End;&lt;br /&gt;&lt;br /&gt;  if v_display=0 then&lt;br /&gt;   dbms_output.put_line(' SR#              NetTime          TotalTime     Last Name     Userid     Location     Call Type     Status     Priority     Created Date     Status Date     Created By       Created By Name   ');&lt;br /&gt;   dbms_output.put_line('------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------');&lt;br /&gt;   v_display:=2;&lt;br /&gt;  end if;  &lt;br /&gt;   dbms_output.put_line(main_rec.ticketid||'     '||v_mseconds||'D'||v_hours||':'||v_minutes||':'||v_seconds||'     '||v_mseconds_tot||'D'||v_hours_tot||':'||v_minutes_tot||':'||v_seconds_tot||'     '||v_display_name||'     '||main_rec.affectedperson||'     '||main_rec.location||'     '||main_rec.externalsystem||'     '||main_rec.status||'     '||main_rec.internalpriority||'     '||main_rec.creationdate||'     '||main_rec.statusdate||'     '||main_rec.createdby||'              '||'v_display_name1');&lt;br /&gt; End Loop;  &lt;br /&gt;exception&lt;br /&gt; when others then&lt;br /&gt;  dbms_output.put_line('Error at stmt: '|| t_stmt||Sqlerrm);End NET_TOT_TICKET; &lt;br /&gt;&lt;br /&gt;PROCEDURE DATE_CAL( P_DATE1 IN DATE&lt;br /&gt;     ,P_DATE2 IN DATE&lt;br /&gt;     ,P_TAB OUT TABLE1&lt;br /&gt;    )&lt;br /&gt;IS&lt;br /&gt;/*-- date1 date:=to_date('11-MAR-2009 08.35.15 PM','DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt;-- date2 date:=to_date('24-MAR-2009 09.34.15 PM','DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt; day1  varchar2(20);&lt;br /&gt; date3 date;&lt;br /&gt; date4 number;&lt;br /&gt; v_check number:=0;&lt;br /&gt; k number;&lt;br /&gt; j number;&lt;br /&gt;Begin&lt;br /&gt; j:=0;&lt;br /&gt; LOOP&lt;br /&gt;   if v_check=0 and p_date2-p_date1&gt;=1 then &lt;br /&gt;     date3:=p_date1;&lt;br /&gt;     --DBMS_OUTPUT.PUT_LINE('DATE3 IS:'||to_char(DATE3,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;     j:=j+1;&lt;br /&gt;     P_TAB(j).Next_Date:=to_char(date3,'DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt;  v_check:=1;&lt;br /&gt;   end if;&lt;br /&gt; if p_date2-nvl(date3,p_date1)&lt;1 then&lt;br /&gt;  if nvl(date3,p_date1)-p_date2&lt;0 then&lt;br /&gt;    date4:=p_date2-nvl(date3,p_date1);&lt;br /&gt;  else &lt;br /&gt;   date4:=nvl(date3,p_date1)-p_date2;&lt;br /&gt;  end if; &lt;br /&gt;  --dbms_output.put_line('date4 is:'||date4);&lt;br /&gt; j:=j+1;&lt;br /&gt;    P_TAB(j).Next_Hrs:=date4;&lt;br /&gt; else &lt;br /&gt;  DATE3:=nvl(date3,p_date1)+1;&lt;br /&gt;  --DBMS_OUTPUT.PUT_LINE('DATE3 IS:'||to_char(DATE3,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;  j:=j+1;&lt;br /&gt;  P_TAB(j).Next_Date:=to_char(date3,'DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt; end if; &lt;br /&gt; exit when date4&gt;0 or date3-p_date2=0;&lt;br /&gt; END LOOP; &lt;br /&gt;/* &lt;br /&gt; for k in p_tab.first..p_tab.last&lt;br /&gt; loop&lt;br /&gt;  DBMS_OUTPUT.PUT_LINE('Date is:'||p_tab(k).next_date);&lt;br /&gt; end loop;&lt;br /&gt;*/ &lt;br /&gt;/*&lt;br /&gt; Type rec is record&lt;br /&gt; (Next_Date varchar2(200),&lt;br /&gt;  Next_Hrs  Number&lt;br /&gt; );&lt;br /&gt; Type Table1 is Table&lt;br /&gt; of rec index by Binary_integer;&lt;br /&gt; &lt;br /&gt; p_TAB  Table1;&lt;br /&gt;&lt;br /&gt; p_date1 date:=to_date('11-MAR-2009 08.35.15 PM','DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt; p_date2 date:=to_date('24-MAR-2009 08.55.15 PM','DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt;*/ &lt;br /&gt; day1  varchar2(20);&lt;br /&gt; date3 date;&lt;br /&gt; date4 number;&lt;br /&gt; v_check number:=0;&lt;br /&gt; k number;&lt;br /&gt; j number;&lt;br /&gt; v_exit number:=0;&lt;br /&gt;Begin&lt;br /&gt; j:=0;&lt;br /&gt; LOOP&lt;br /&gt;   if v_check=0 and p_date2-p_date1&gt;=1 then &lt;br /&gt;     date3:=trunc(p_date1)+1;&lt;br /&gt;--     DBMS_OUTPUT.PUT_LINE('DATE3 IS:'||to_char(DATE3,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;--     j:=j+1;&lt;br /&gt;--     TAB(j).Next_Date:=to_char(date3,'DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt;  v_check:=1;&lt;br /&gt;    if date3&gt;p_date1 then&lt;br /&gt;  date4:=date3-p_date1;&lt;br /&gt;  --dbms_output.put_line('DATE4 is:'||date4);&lt;br /&gt;     j:=j+1;&lt;br /&gt;     P_TAB(j).Next_Hrs:=date4;&lt;br /&gt;  &lt;br /&gt; end if; &lt;br /&gt;   end if;&lt;br /&gt;   &lt;br /&gt; if p_date2-nvl(date3,p_date1)&lt;1 then&lt;br /&gt;  if nvl(date3,p_date1)-p_date2&lt;0 then&lt;br /&gt;    date4:=p_date2-nvl(date3,p_date1);&lt;br /&gt; v_exit:=1;&lt;br /&gt;  else &lt;br /&gt;   date4:=nvl(date3,p_date1)-p_date2;&lt;br /&gt;   v_exit:=1;&lt;br /&gt;  end if; &lt;br /&gt;--  dbms_output.put_line('date4 is:'||date4);&lt;br /&gt; j:=j+1;&lt;br /&gt;    P_TAB(j).Next_Hrs:=date4;&lt;br /&gt; else &lt;br /&gt;  DATE3:=nvl(date3,p_date1)+1;&lt;br /&gt;  --DBMS_OUTPUT.PUT_LINE('DATE3 IS:'||to_char(DATE3,'DD-MON-RRRR HH:MI:SS PM'));&lt;br /&gt;  j:=j+1;&lt;br /&gt;  P_TAB(j).Next_Date:=to_char(date3,'DD-MON-RRRR HH:MI:SS PM');&lt;br /&gt; end if; &lt;br /&gt; exit when v_exit=1;&lt;br /&gt; END LOOP; &lt;br /&gt;/*&lt;br /&gt; for k in p_tab.first..tab.last&lt;br /&gt; loop&lt;br /&gt;  DBMS_OUTPUT.PUT_LINE('Date is:'||p_tab(k).next_date||'---------------'||p_tab(k).next_hrs);&lt;br /&gt; end loop;&lt;br /&gt;*/&lt;br /&gt;end date_cal;&lt;br /&gt;&lt;br /&gt;END XX_NET_TOT_CAL;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Final execution code to get output:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;XX_NET_TOT_CAL.NET_TOT_TICKET(p_start_date =&gt;to_date('11-MAR-09','DD-MON-RRRR')&lt;br /&gt;                         ,p_end_date  =&gt;to_date('27-MAR-09','DD-MON-RRRR')&lt;br /&gt;                        ,p_owner =&gt;null);&lt;br /&gt;exception&lt;br /&gt; when others then&lt;br /&gt;  dbms_output.put_line(sqlerrm);&lt;br /&gt;end;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-2161561274009172989?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/2161561274009172989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/my-final-version-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/2161561274009172989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/2161561274009172989'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/my-final-version-code.html' title='My Final Version Code'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-466843712586977255</id><published>2009-03-28T17:14:00.000-07:00</published><updated>2009-03-28T17:16:57.165-07:00</updated><title type='text'>Rename a Table Name</title><content type='html'>rename table1 to table2;( renaming a table1 name to table2).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-466843712586977255?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/466843712586977255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/rename-table-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/466843712586977255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/466843712586977255'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/rename-table-name.html' title='Rename a Table Name'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-962022381975451985</id><published>2009-03-26T22:25:00.002-07:00</published><updated>2009-03-26T22:26:13.767-07:00</updated><title type='text'>My Stored procedure</title><content type='html'>declare&lt;br /&gt;  t_ticketid  varchar2(200):='SRQ15654';&lt;br /&gt;  i number;&lt;br /&gt;  v_net_date varchar2(200):=0;&lt;br /&gt;  v_time  varchar2(200);&lt;br /&gt;  v_hours  number;&lt;br /&gt;  v_minutes  number;&lt;br /&gt;  v_seconds  number;&lt;br /&gt;  v_mseconds number;&lt;br /&gt;begin&lt;br /&gt; i:=0;&lt;br /&gt; for rec in (select e.status&lt;br /&gt;                   ,e.tkstatusid&lt;br /&gt;       ,e.changedate&lt;br /&gt;       ,e.ticketid&lt;br /&gt;       ,(select min(d.status) &lt;br /&gt;           from xx_tkstatus d       &lt;br /&gt;      where d.tkstatusid &gt; e.tkstatusid&lt;br /&gt;        and e.ticketid = d.ticketid&lt;br /&gt;        and d.tkstatusid = ((select min(d.tkstatusid) &lt;br /&gt;                               from xx_tkstatus d&lt;br /&gt;                    where d.tkstatusid &gt; e.tkstatusid&lt;br /&gt;            and e.ticketid = d.ticketid))) next_status&lt;br /&gt;       ,(select min(d.tkstatusid) &lt;br /&gt;           from xx_tkstatus d&lt;br /&gt;         where d.tkstatusid &gt; e.tkstatusid&lt;br /&gt;        and e.ticketid = d.ticketid) next_tkstatusid&lt;br /&gt;       ,(select min(d.changedate) &lt;br /&gt;           from xx_tkstatus d&lt;br /&gt;      where d.tkstatusid&gt;e.tkstatusid&lt;br /&gt;        and e.ticketid=d.ticketid) changedate_next&lt;br /&gt;      from xx_tkstatus e,xx_ticket x&lt;br /&gt;             where e.ticketid=x.ticketid&lt;br /&gt;      and e.ticketid=t_ticketid&lt;br /&gt;      and x.actualfinish is not null&lt;br /&gt;      and x.owner is not null      &lt;br /&gt;             order by 2&lt;br /&gt;            )&lt;br /&gt;  loop     &lt;br /&gt;   if rec.status = 'INPROG' then&lt;br /&gt;     select (to_date(nvl(rec.changedate_next,sysdate),'DD-MON-RRRR HH:MI:SS PM')-to_date(rec.changedate,'DD-MON-RRRR HH:MI:SS PM')+1)-&lt;br /&gt;      (SELECT COUNT(DAYS) FROM (SELECT TO_CHAR(TO_DATE(rec.changedate,'DD-MON-RRRR HH:MI:SS PM')+LEVEL ,'D') DAYS &lt;br /&gt;         FROM DUAL CONNECT BY LEVEL &lt; (to_date(nvl(rec.changedate_next,sysdate),'DD-MON-RRRR HH:MI:SS PM')-to_date(rec.changedate,'DD-MON-RRRR HH:MI:SS PM'))) &lt;br /&gt;       WHERE DAYS IN ('7' ,'1')) DAY&lt;br /&gt;   INTO V_TIME &lt;br /&gt;      FROM DUAL; &lt;br /&gt;--   dbms_output.put_line('v_time is:'||v_time);&lt;br /&gt; V_NET_DATE:=V_NET_DATE+V_TIME; &lt;br /&gt;   end if; &lt;br /&gt;--   dbms_output.put_line(tab(i).tkstatusid||'-'||tab(i).tkstatusid_next||'---'||tab(i).changedate||'----'||tab(i).changedate_next||tab(i).status||'----'||tab(i).status_next);&lt;br /&gt; end loop;&lt;br /&gt;&lt;br /&gt;   select days&lt;br /&gt;         ,TRUNC(A*24) Hours&lt;br /&gt;         ,TRUNC(A*24*60 - 60*TRUNC(A*24)) Minutes&lt;br /&gt;   ,TRUNC(A*24*60*60 - 60*TRUNC(A*24*60)) Seconds&lt;br /&gt;--   ,TRUNC(A*24*60*60*100 - 100*TRUNC(A*24*60*60)) mSeconds&lt;br /&gt;  into v_mseconds &lt;br /&gt;      ,v_hours&lt;br /&gt;      ,v_minutes&lt;br /&gt;   ,v_seconds&lt;br /&gt;--   ,v_mseconds  &lt;br /&gt;  from&lt;br /&gt;      (&lt;br /&gt;    select&lt;br /&gt;      trunc(v_net_date)  Days,&lt;br /&gt;   v_net_date - trunc(v_net_date) A&lt;br /&gt;   from dual&lt;br /&gt;      );&lt;br /&gt;   &lt;br /&gt;   dbms_output.put_line('Days:'||v_mseconds||' Hours :'||v_hours||' Minutes :'||v_minutes||' Seconds :'||v_seconds);&lt;br /&gt;   &lt;br /&gt;exception&lt;br /&gt; when others then&lt;br /&gt;  dbms_output.put_line(Sqlerrm);&lt;br /&gt;end;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-962022381975451985?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/962022381975451985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/my-stored-procedure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/962022381975451985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/962022381975451985'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/my-stored-procedure.html' title='My Stored procedure'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-4592605297312557664</id><published>2009-03-26T22:25:00.001-07:00</published><updated>2009-03-26T22:25:33.164-07:00</updated><title type='text'>Mycode2</title><content type='html'>CREATE OR REPLACE PROCEDURE F1&lt;br /&gt;               (&lt;br /&gt;                  I_FUND_NO    IN VARCHAR2,&lt;br /&gt;                   I_FUND_NAME  IN VARCHAR2,&lt;br /&gt;                   O_FUND  OUT OBJ_FUND_A,&lt;br /&gt;                   O_FUND1 OUT OBJ_FUND&lt;br /&gt;                )&lt;br /&gt;                  &lt;br /&gt;                  IS&lt;br /&gt;                 V_FUND OBJ_FUND;&lt;br /&gt;               &lt;br /&gt;               COUNT1 NUMBER; &lt;br /&gt;            &lt;br /&gt;            CURSOR C1 IS&lt;br /&gt;               &lt;br /&gt;                SELECT FUND_NO,FUND_NAME&lt;br /&gt;              FROM FUND&lt;br /&gt;           WHERE (FUND_NO= I_FUND_NO OR FUND_NAME=I_FUND_NAME) OR (I_FUND_NO IS NULL AND I_FUND_NA&lt;br /&gt;ME IS NULL) ; &lt;br /&gt;             &lt;br /&gt;           BEGIN&lt;br /&gt;             &lt;br /&gt;              O_FUND:= OBJ_FUND_A();&lt;br /&gt;           &lt;br /&gt;              COUNT1:= 0;&lt;br /&gt;                FOR FUNDINFO IN C1&lt;br /&gt;            LOOP&lt;br /&gt;               &lt;br /&gt;              --CREATE AN OBJECT&lt;br /&gt;              &lt;br /&gt;             V_FUND:= NEW OBJ_FUND(NULL,NULL);&lt;br /&gt;                COUNT1:=COUNT1+1;&lt;br /&gt;            &lt;br /&gt;            --SET VALUES TO EMPTY OBJECT&lt;br /&gt;          &lt;br /&gt;              V_FUND.FUND_NO:= FUNDINFO.FUND_NO;&lt;br /&gt;              V_FUND.FUND_NAME:=FUNDINFO.FUND_NAME;&lt;br /&gt;             O_FUND1:=V_FUND;&lt;br /&gt;             &lt;br /&gt;            --SET OBJECT INTO COLLECTION&lt;br /&gt;              &lt;br /&gt;               O_FUND.EXTEND;&lt;br /&gt;                 O_FUND(COUNT1):=V_FUND;&lt;br /&gt;              &lt;br /&gt;               END LOOP;&lt;br /&gt;            &lt;br /&gt;                END;&lt;br /&gt;           &lt;br /&gt;              /&lt;br /&gt;&lt;br /&gt;Procedure created.&lt;br /&gt;&lt;br /&gt; DECLARE&lt;br /&gt;                            I_FUND_NO  VARCHAR2(15);&lt;br /&gt;                            I_FUND_NAME VARCHAR2(15);&lt;br /&gt;                             O_FUND OBJ_FUND_A;&lt;br /&gt;             O_FUND1 OBJ_FUND;&lt;br /&gt;                      BEGIN&lt;br /&gt;                              I_FUND_NO:='&amp;FUND_NO';&lt;br /&gt;                              I_FUND_NAME:='&amp;FUND_NAME';&lt;br /&gt;            &lt;br /&gt;          &lt;br /&gt;                    SCOTT.F1(I_FUND_NO,I_FUND_NAME,O_FUND,O_FUND1);&lt;br /&gt;        &lt;br /&gt;          IF O_FUND IS NOT NULL AND I_FUND_NO IS NOT NULL OR I_FUND_NAME IS NOT NULL THEN&lt;br /&gt;   DBMS_OUTPUT.PUT_LINE('FUNDDETAILS::' ||O_FUND1.FUND_NO || '-'||O_FUND1.FUND_NAME);&lt;br /&gt;             END IF;&lt;br /&gt;                IF  O_FUND IS NOT NULL AND I_FUND_NO IS NULL AND I_FUND_NAME IS NULL THEN&lt;br /&gt;                  BEGIN&lt;br /&gt;                   FOR I IN 1..O_FUND.COUNT&lt;br /&gt;                  LOOP&lt;br /&gt;                      DBMS_OUTPUT.PUT_LINE('FUNDDETAILS::' ||O_FUND(I).FUND_NO ||'-'||O_FUND(I).FU&lt;br /&gt;ND_NAME);&lt;br /&gt;                   END LOOP;&lt;br /&gt;                 END;&lt;br /&gt;                    END IF;&lt;br /&gt;                END;&lt;br /&gt;       /&lt;br /&gt;Enter value for fund_no: FNO2&lt;br /&gt;old   7:                           I_FUND_NO:='&amp;FUND_NO';&lt;br /&gt;new   7:                           I_FUND_NO:='FNO2';&lt;br /&gt;Enter value for fund_name: &lt;br /&gt;old   8:                           I_FUND_NAME:='&amp;FUND_NAME';&lt;br /&gt;new   8:                           I_FUND_NAME:='';&lt;br /&gt;FUNDDETAILS::FNO2-FNAME2&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;SQL&gt; /&lt;br /&gt;Enter value for fund_no: &lt;br /&gt;old   7:                           I_FUND_NO:='&amp;FUND_NO';&lt;br /&gt;new   7:                           I_FUND_NO:='';&lt;br /&gt;Enter value for fund_name: FNAME3&lt;br /&gt;old   8:                           I_FUND_NAME:='&amp;FUND_NAME';&lt;br /&gt;new   8:                           I_FUND_NAME:='FNAME3';&lt;br /&gt;FUNDDETAILS::FNO3-FNAME3&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;SQL&gt; /&lt;br /&gt;Enter value for fund_no: &lt;br /&gt;old   7:                           I_FUND_NO:='&amp;FUND_NO';&lt;br /&gt;new   7:                           I_FUND_NO:='';&lt;br /&gt;Enter value for fund_name: &lt;br /&gt;old   8:                           I_FUND_NAME:='&amp;FUND_NAME';&lt;br /&gt;new   8:                           I_FUND_NAME:='';&lt;br /&gt;FUNDDETAILS::FNO1-FNAME1&lt;br /&gt;FUNDDETAILS::FNO2-FNAME2&lt;br /&gt;FUNDDETAILS::FNO4-FNAME4&lt;br /&gt;FUNDDETAILS::FNO5-FNAME5&lt;br /&gt;FUNDDETAILS::FNO6-FNAME6&lt;br /&gt;FUNDDETAILS::FNO3-FNAME3&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-4592605297312557664?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/4592605297312557664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/mycode2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/4592605297312557664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/4592605297312557664'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/mycode2.html' title='Mycode2'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-5644811414339731782</id><published>2009-03-26T22:24:00.001-07:00</published><updated>2009-03-26T22:24:45.117-07:00</updated><title type='text'>Mycode1</title><content type='html'>CREATE OR REPLACE PROCEDURE ERWP_LOAD_TIME IS&lt;br /&gt;&lt;br /&gt;   start_dt DATE;&lt;br /&gt;   current_dt DATE;&lt;br /&gt;   end_dt DATE;&lt;br /&gt;&lt;br /&gt;   n_days number;&lt;br /&gt;   n_hours number;&lt;br /&gt;&lt;br /&gt;   YEAR number;&lt;br /&gt;   QUARTER number;&lt;br /&gt;   MONTH number;&lt;br /&gt;   MONTH_NAME varchar(50);&lt;br /&gt;   WEEK number;&lt;br /&gt;   DAY_OF_WEEK number;&lt;br /&gt;   DAY_OF_MONTH number;&lt;br /&gt;   DAY_NAME varchar(50);&lt;br /&gt;   DATE_ID NUMBER;&lt;br /&gt;   hh varchar2(6) := '00';&lt;br /&gt;   mm varchar2(6) := '00';&lt;br /&gt;   this_date_string_v varchar2(64) := null;&lt;br /&gt;   this_date_v date := null;&lt;br /&gt;   time_format_mask varchar2(64) := 'YYYYMMDD HH24MISS';&lt;br /&gt;   hour_name_mask varchar2(64) := 'HH24';&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;-- set start at today - (2*366), end = today + 10*366 &lt;br /&gt;   start_dt := to_date('2006-01-01', 'YYYY-MM-DD'); &lt;br /&gt;   end_dt   := to_date('2025-12-31', 'YYYY-MM-DD');&lt;br /&gt;&lt;br /&gt;   current_dt :=  TRUNC(start_dt);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   n_days := end_dt - start_dt;&lt;br /&gt;&lt;br /&gt;   for m in  0 .. n_days&lt;br /&gt;   loop&lt;br /&gt;&lt;br /&gt; YEAR := TO_CHAR(current_dt, 'yyyy');&lt;br /&gt;&lt;br /&gt; QUARTER := TO_CHAR(current_dt, 'Q');&lt;br /&gt;&lt;br /&gt; MONTH :=  TO_CHAR(current_dt, 'MM');&lt;br /&gt;&lt;br /&gt; MONTH_NAME := TO_CHAR(current_dt, 'MON');&lt;br /&gt;&lt;br /&gt; WEEK := TO_CHAR(current_dt, 'WW'); -- week of year&lt;br /&gt;&lt;br /&gt; DAY_OF_WEEK :=  TO_CHAR(current_dt, 'D');&lt;br /&gt;&lt;br /&gt; DAY_OF_MONTH :=  TO_CHAR(current_dt, 'DD');&lt;br /&gt;&lt;br /&gt; DAY_NAME :=  TO_CHAR(current_dt, 'DAY');&lt;br /&gt;&lt;br /&gt; DATE_ID := YEAR*10000+MONTH*100+DAY_OF_MONTH;&lt;br /&gt;  &lt;br /&gt; EXECUTE IMMEDIATE 'INSERT INTO ERW_DATE (ID, YEAR, QUARTER,  MONTH, MONTH_NAME, WEEK, DAY_OF_WEEK, DAY_OF_MONTH, DAY_NAME, ORACLE_DATE) ' || &lt;br /&gt;  ' values (:DATE_ID, :YEAR, :QUARTER,  :MONTH, :MONTH_NAME, :WEEK, :DAY_OF_WEEK, :DAY_OF_MONTH, :DAY_NAME, :ORACLE_DATE) ' &lt;br /&gt;  USING DATE_ID, YEAR, QUARTER, MONTH, MONTH_NAME, WEEK, DAY_OF_WEEK, DAY_OF_MONTH, DAY_NAME, current_dt;&lt;br /&gt;&lt;br /&gt; current_dt := TRUNC (current_dt + INTERVAL '1' DAY);&lt;br /&gt;   end loop;&lt;br /&gt;&lt;br /&gt;   for i in 0..23 loop&lt;br /&gt;     mm := '00';&lt;br /&gt;     for j in 0..59 loop&lt;br /&gt;        insert into ERW_TIME (id, TIME_OF_DAY, TIME_TYPE, MINUTE, HOUR, TIME_NAME)&lt;br /&gt;          values(to_number(hh||mm),to_number(hh||mm),'24HHMM',mm,hh,hh||':'||mm);&lt;br /&gt;&lt;br /&gt;         mm := to_char((to_number(mm)+1));&lt;br /&gt;         if (to_number(mm) &lt; 10) then mm := '0'||mm; end if;&lt;br /&gt;     end loop;  --end minute loop&lt;br /&gt;     commit;&lt;br /&gt;     hh := to_char(hh+1);&lt;br /&gt;     if (hh &lt; 10) then hh := '0'||hh; end if;&lt;br /&gt;     dbms_output.put_line('hh = ' || hh);&lt;br /&gt;   end loop;  --end hour loop&lt;br /&gt;commit;&lt;br /&gt;&lt;br /&gt;END; &lt;br /&gt;&lt;br /&gt;/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-5644811414339731782?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/5644811414339731782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/mycode1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/5644811414339731782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/5644811414339731782'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/mycode1.html' title='Mycode1'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-8095844499924730156</id><published>2009-03-26T22:22:00.000-07:00</published><updated>2009-03-26T22:23:47.985-07:00</updated><title type='text'>Mycode</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Csuresh%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Csuresh%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Csuresh%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;   &lt;/w:Compatibility&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Courier; 	panose-1:2 7 4 9 2 2 5 2 4 4; 	mso-font-alt:"Courier New"; 	mso-font-charset:0; 	mso-generic-font-family:modern; 	mso-font-format:other; 	mso-font-pitch:fixed; 	mso-font-signature:3 0 0 0 1 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;declare&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;t_ticketid&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;varchar2&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;200&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;):=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'SRQ15654'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;type&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; rec &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;is&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;record&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tkstatusid &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;number&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;tkstatusid_next &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;number&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;ticketid&lt;span style=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;varchar2&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;200&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;),&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;status&lt;span style=""&gt;   &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;varchar2&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;20&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;),&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;status_next &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;varchar2&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;20&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;),&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;changedate &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;varchar2&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;200&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;),&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;changedate_next &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;varchar2&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;200&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;);&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;type&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; tab1 &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;is&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;table&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;of&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;rec &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;index&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;by&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;binary_integer&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;Tab tab1&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;i &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;number&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;v_net_date &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;varchar2&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;200&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;);&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;v_time&lt;span style=""&gt;    &lt;/span&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;varchar2&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;200&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;);&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;begin&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt; &lt;/span&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;:=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;0&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;for&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; rec &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;in&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(select&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; a&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.*&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;from&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: olive;"&gt;TKSTATUS&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; a &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;where&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; ticketid&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;t_ticketid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style=""&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;order&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;by&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; tkstatusid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;                  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;loop&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;for&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; rec1 &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;in&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(select&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;*&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;from&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: olive;"&gt;tkstatus&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; a &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;where&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; ticketid&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;rec&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;ticketid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;and&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; tkstatusid&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;rec&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tkstatusid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;                        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;order&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;by&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; tkstatusid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;                  &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;loop&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;                  &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;:=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;+&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;1&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tkstatusid&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;:=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;rec&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tkstatusid&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;              &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tkstatusid_next&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;:=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;rec1&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tkstatusid&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;ticketid&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;:=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;rec&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;ticketid&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;status&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;:=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;rec&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;status&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;status_next&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;:=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;rec1&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;status&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;changedate&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;:=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;rec&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;changedate&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;changedate_next&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;:=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;rec1&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;changedate&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;exit;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;end&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;loop;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;end&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;loop;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt; &lt;/span&gt;v_net_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;:=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;0&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;for&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; i &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;in&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;first&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;..&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;last&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;loop&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;if&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;status &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'INPROG'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;then&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;     &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;select&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;changedate_next&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS PM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)-&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;changedate&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS PM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)+&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;1&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)-&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(SELECT&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; COUNT&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;DAYS&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;FROM&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(SELECT&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; TO_CHAR&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;TO_DATE&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;changedate&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS PM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)+LEVEL&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'D'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; DAYS &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;FROM&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; DUAL &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;CONNECT&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;BY&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;LEVEL&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;&lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; round&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;changedate_next&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS PM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)-&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;tab&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;i&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;).&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;changedate&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS PM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)))&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;       &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;WHERE&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; DAYS &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;IN&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'7'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'1'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;))&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;DAY&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;INTO&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; V_TIME &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;FROM&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; DUAL&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;V_NET_DATE&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;:=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;V_NET_DATE&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;+&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;V_TIME&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;end&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;if;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: green;"&gt;--dbms_output.put_line(tab(i).tkstatusid||'-'||tab(i).tkstatusid_next||'---'||tab(i).changedate||'----'||tab(i).changedate_next||tab(i).status||'----'||tab(i).status_next);&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;end&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;loop;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;dbms_output&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;put_line&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;v_net_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;);&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;exception&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;when&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;others&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;then&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;  &lt;/span&gt;dbms_output&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;put_line&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(Sqlerrm);&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;end;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;select&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'24-MAR-09 12.00.00 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)-&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'11-MAR-09 12.00.00 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)+&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: maroon;"&gt;1&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)-&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(SELECT&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; COUNT&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;DAYS&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;FROM&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(SELECT&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; TO_CHAR&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;TO_DATE&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'11-MAR-09 12.00.00 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)+LEVEL&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'D'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; DAYS &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;FROM&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; DUAL &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;CONNECT&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;BY&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;LEVEL&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;&lt;=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'24-MAR-09 12.00.00 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)-&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'11-MAR-09 12.00.00 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;))&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;WHERE&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; DAYS &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;IN&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'7'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'1'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;))&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;DAY&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;FROM&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; DUAL&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;select&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; to_char&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'11-MAR-09 12.00.00 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS PM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)+LEVEL,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'D'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; t&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_char&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'11-MAR-09 12.00.00 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)+LEVEL,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DAY'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; d&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;to_char&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'11-MAR-09 12.00.00 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)+LEVEL,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; date1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;FROM&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; DUAL &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;CONNECT&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;BY&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;LEVEL&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;&lt;=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; ROUND&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'24-MAR-09 12.00.00 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)-&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'11-MAR-09 12.00.00 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;);&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;select&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; round&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'24-MAR-09 11.56.26 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS PM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;)-&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;to_date&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;(&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'11-MAR-09 08.35.15 AM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;,&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: red;"&gt;'DD-MON-RRRR HH:MI:SS PM'&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;))&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: rgb(0, 0, 240);"&gt;from&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt; dual&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: Courier; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-8095844499924730156?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/8095844499924730156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/mycode.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8095844499924730156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8095844499924730156'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/mycode.html' title='Mycode'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-2645975699509833277</id><published>2009-03-23T21:45:00.000-07:00</published><updated>2009-03-23T21:46:09.224-07:00</updated><title type='text'>Tab name in Workflow</title><content type='html'>To determine a tab identifier, complete the followings steps:&lt;br /&gt;1 Navigate to the following directory:&lt;br /&gt;&lt;maximo&gt;\resources\presentations&lt;br /&gt;2 Using a text editor, open the XML file for the application.&lt;br /&gt;3 Search for the following phrase "tab id=" until you locate the appropriate&lt;br /&gt;tab identifier, for example:&lt;br /&gt;&lt;tab id="relatedrec" label="Related Records"&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-2645975699509833277?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/2645975699509833277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/tab-name-in-workflow.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/2645975699509833277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/2645975699509833277'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/tab-name-in-workflow.html' title='Tab name in Workflow'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-5180363709234218222</id><published>2009-03-23T21:01:00.000-07:00</published><updated>2009-03-23T21:02:51.305-07:00</updated><title type='text'>Path to Check Java Classes in Maximo</title><content type='html'>IBM/SMP/MAXIMO/Applications/maximo/BusinessObjects/classes/psdi/app&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-5180363709234218222?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/5180363709234218222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/path-to-check-java-classes-in-maximo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/5180363709234218222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/5180363709234218222'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/path-to-check-java-classes-in-maximo.html' title='Path to Check Java Classes in Maximo'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-8199635107985601973</id><published>2009-03-22T22:22:00.000-07:00</published><updated>2009-03-22T22:23:21.888-07:00</updated><title type='text'>Inserting Hyperlinks in Maximo</title><content type='html'>You can insert a hyperlink to a Maximo record within the body of your&lt;br /&gt;communication template message that includes the application name and&lt;br /&gt;record ID.&lt;br /&gt;To insert a hyperlink in a Workflow communication template, insert the&lt;br /&gt;following link into the body of your message:&lt;br /&gt;http://:HOSTNAME/maximo/ui/&lt;br /&gt;maximo.jsp?event=loadapp&amp;amp;value=:APP&amp;amp;uniqueid=:OWNERID&lt;br /&gt;where HOSTNAME is the name or IP address of the MXServer.&lt;br /&gt;When Maximo generates a notification, the application name and record ID&lt;br /&gt;appear in the message as a hyperlink that leads directly to the record.&lt;br /&gt;NOTE In order to be able to view the record, the e-mail recipient must be a Maximo&lt;br /&gt;user with security permission to the specified application.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-8199635107985601973?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/8199635107985601973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/inserting-hyperlinks-in-maximo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8199635107985601973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8199635107985601973'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/inserting-hyperlinks-in-maximo.html' title='Inserting Hyperlinks in Maximo'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-8026989819026595063</id><published>2009-03-22T20:20:00.000-07:00</published><updated>2009-03-22T20:21:21.594-07:00</updated><title type='text'>Sample Escalation Log Messages</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Sample Escalation Log Messages&lt;/span&gt;&lt;br /&gt;NOTE You must first enable logging.&lt;br /&gt;Escalation Start and Finish&lt;br /&gt;These messages indicate the escalations start and finish, including its name&lt;br /&gt;and time of execution.&lt;br /&gt;21 Jul 2004 13:47:23:839 [DEBUG] Started Escalation task:&lt;br /&gt;ESCALATION for instance: ESC INCID&lt;br /&gt;21 Jul 2004 13:47:23:849 [DEBUG] Finished Escalation task:&lt;br /&gt;ESCALATION for instance: ESC INCID&lt;br /&gt;These statements appear in the log file if you place this statement in the&lt;br /&gt;properties file:&lt;br /&gt;log4j.logger.Maximo.crontask.ESCALATION=DEBUG, A2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-8026989819026595063?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/8026989819026595063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/sample-escalation-log-messages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8026989819026595063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8026989819026595063'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/sample-escalation-log-messages.html' title='Sample Escalation Log Messages'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-6973566921021747296</id><published>2009-03-22T20:18:00.000-07:00</published><updated>2009-03-22T20:20:36.289-07:00</updated><title type='text'>Enabling Logging for Escalations</title><content type='html'>Time drives escalations, and log files let you check whether escalation actions&lt;br /&gt;run according to schedule.&lt;br /&gt;To enable logging on the escalation cron task, notification messages, and&lt;br /&gt;action messages, you must modify the logging.properties file. Default location:&lt;br /&gt;&lt;maximo_root&gt; applications\Maximo\properties&lt;br /&gt;where &lt;maximo_root&gt; is the folder where you installed Maximo.&lt;br /&gt;1 Append these examples to your local file:&lt;br /&gt;# Enable crontask for ESCALATION&lt;br /&gt;log4j.logger.Maximo.crontask.ESCALATION=DEBUG, A2&lt;br /&gt;# Enable the following for Notification messages on logger&lt;br /&gt;log4j.logger.Maximo.service.SYSTEM.COMMTEMPLATE=INFO, A2&lt;br /&gt;# Enable the following for Action messages on logger&lt;br /&gt;log4j.logger.Maximo.service.SYSTEM.ACTION=INFO, A2&lt;br /&gt;2 Save the modifications.&lt;br /&gt;Enabling Logging for Escalations&lt;br /&gt;Escalations 12-13&lt;br /&gt;3 Rebuild the EAR file and restart the application server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-6973566921021747296?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/6973566921021747296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/enabling-logging-for-escalations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/6973566921021747296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/6973566921021747296'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/enabling-logging-for-escalations.html' title='Enabling Logging for Escalations'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-2190129063794304035</id><published>2009-03-22T13:14:00.000-07:00</published><updated>2009-03-22T13:16:58.021-07:00</updated><title type='text'>DB config Restore Backup</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Question:  &lt;/span&gt;Error when running ConfigDB: "Tables exist that have not had their backup data restored. You must run restorefrombackup before you configure the database" But there are no backup tables to be restored. ???&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Answer:  &lt;/b&gt;This can happen if a table is manually restored via SQL rather than using restorefrombackup. A flag is left in the database that indicates restorefrombackup needs to run to restore the data from the xx&lt;i&gt;table_name &lt;/i&gt; to &lt;i&gt;table_name&lt;/i&gt;. &lt;p&gt;To correct this you need to remove these flags from the database.  To verify if these are incorrect run the following query.&lt;br /&gt;&lt;br /&gt;select restoredata from maxtable where tablename='&lt;i&gt;table_name&lt;/i&gt;'&lt;br /&gt;&lt;br /&gt;select restoredata from maxtablecfg where tablename='&lt;i&gt;table_name&lt;/i&gt;'&lt;br /&gt;&lt;br /&gt;If either of these return a value of 1 they must be changed to 0 to allow ConfigDB to run. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-2190129063794304035?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/2190129063794304035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/db-config-restore-backup.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/2190129063794304035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/2190129063794304035'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/db-config-restore-backup.html' title='DB config Restore Backup'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-8303497928937546593</id><published>2009-03-21T22:15:00.000-07:00</published><updated>2009-03-21T22:30:50.066-07:00</updated><title type='text'>Escalation : Notification when purchase contract renewal date is 30, 60, 90 days away</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_eSIEbjaBtc8/ScXM-2kEUJI/AAAAAAAAAAs/ROFrMo0jIPM/s1600-h/Commtemplate+for+Notificaton+when+purchase+renewal+date+is+30,+60,+90+way.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 96px;" src="http://3.bp.blogspot.com/_eSIEbjaBtc8/ScXM-2kEUJI/AAAAAAAAAAs/ROFrMo0jIPM/s200/Commtemplate+for+Notificaton+when+purchase+renewal+date+is+30,+60,+90+way.bmp" alt="" id="BLOGGER_PHOTO_ID_5315880315351486610" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;on&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_eSIEbjaBtc8/ScXMFOI2seI/AAAAAAAAAAk/3h7L57JWUEA/s1600-h/Notification+when+purchase+contract+renewal+date+is+30,+60,+90+days+away.bmp"&gt;&lt;img style="cursor: pointer; width: 400px; height: 199px;" src="http://2.bp.blogspot.com/_eSIEbjaBtc8/ScXMFOI2seI/AAAAAAAAAAk/3h7L57JWUEA/s400/Notification+when+purchase+contract+renewal+date+is+30,+60,+90+days+away.bmp" alt="" id="BLOGGER_PHOTO_ID_5315879325247386082" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Escalation :  Notification when purchase contract renewal date is 30, 60, 90 days away&lt;br /&gt;&lt;br /&gt;Applies To : Purchview&lt;br /&gt;&lt;br /&gt;Condition:  STATUS=(select value from synonymdomain where domainid =  'CONTRACTSTATUS' and maxvalue = 'APPR')&lt;br /&gt;&lt;br /&gt;Escalation points :&lt;br /&gt;&lt;br /&gt;Escalation point : 1&lt;br /&gt;Elapsed Time Attribute: ENDDATE      Elapsed Time Interval : -90 days&lt;br /&gt;&lt;br /&gt;Escalation point : 2&lt;br /&gt;Elapsed Time Attribute: ENDDATE      Elapsed Time Interval : -60 days&lt;br /&gt;&lt;br /&gt;Escalation point : 3&lt;br /&gt;Elapsed Time Attribute: ENDDATE      Elapsed Time Interval : -30 days&lt;br /&gt;&lt;br /&gt;Create a Notification for each Escalation point.&lt;br /&gt;&lt;br /&gt;Notificatication Commtemplate is :&lt;br /&gt;&lt;br /&gt;Applies To : &lt;img src="file:///C:/DOCUME%7E1/suresh/LOCALS%7E1/Temp/moz-screenshot-2.jpg" alt="" /&gt;&lt;img src="file:///C:/DOCUME%7E1/suresh/LOCALS%7E1/Temp/moz-screenshot-3.jpg" alt="" /&gt;PURCHVIEW&lt;br /&gt;&lt;br /&gt;ACCESSIBLE FROM : ESCALATION&lt;br /&gt;&lt;br /&gt;Commlog Entry:  check mark Yes.(right mark).&lt;br /&gt;&lt;br /&gt;Subject :    Expiration notice: Contract :contractnum&lt;br /&gt;&lt;br /&gt;Message:    Purchase contract :contractnum is expiring on :enddate .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div nowrap="" needsrefresh="false" vis="true" id="mx785_compHolder" class="bc" style="display: inline; font-style: italic;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-8303497928937546593?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/8303497928937546593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/escalation-notification-when-purchase.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8303497928937546593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8303497928937546593'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/escalation-notification-when-purchase.html' title='Escalation : Notification when purchase contract renewal date is 30, 60, 90 days away'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eSIEbjaBtc8/ScXM-2kEUJI/AAAAAAAAAAs/ROFrMo0jIPM/s72-c/Commtemplate+for+Notificaton+when+purchase+renewal+date+is+30,+60,+90+way.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-12311171978585345</id><published>2009-03-21T19:30:00.000-07:00</published><updated>2009-03-21T22:11:16.801-07:00</updated><title type='text'>Close incidents that remained in status of RESOLVED for at least 10 days.</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_eSIEbjaBtc8/ScXIZbIyFsI/AAAAAAAAAAc/8ZQa0NBJMrg/s1600-h/untitled.bmp"&gt;&lt;img style="cursor: pointer; width: 400px; height: 204px;" src="http://3.bp.blogspot.com/_eSIEbjaBtc8/ScXIZbIyFsI/AAAAAAAAAAc/8ZQa0NBJMrg/s400/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5315875274287617730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Applies To : INCIDENT&lt;br /&gt;&lt;br /&gt;Condition:  HISTORYFLAG=0 and STATUS=(select value from synonymdomain where domainid = 'INCIDENTSTATUS' and maxvalue = 'RESOLVED')&lt;br /&gt;&lt;br /&gt;Escalation Point  :   1&lt;br /&gt;Elapsed Time Attribute : TARGETFINISH.&lt;br /&gt;Elapsed time interval:  10 days.&lt;br /&gt;&lt;br /&gt;Create an action&lt;br /&gt;Action:  this should change the status to Closed.&lt;br /&gt;&lt;div nowrap="" needsrefresh="false" vis="true" id="mx786_compHolder" class="bc" style="display: inline;"&gt;   &lt;img id="mx786" src="http://209.202.129.14/maximo/webclient/images/required.gif" style="visibility: hidden; display: inline;" class="required" align="top" /&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-12311171978585345?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/12311171978585345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/close-incidents-that-remained-in-status.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/12311171978585345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/12311171978585345'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/close-incidents-that-remained-in-status.html' title='Close incidents that remained in status of RESOLVED for at least 10 days.'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eSIEbjaBtc8/ScXIZbIyFsI/AAAAAAAAAAc/8ZQa0NBJMrg/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-7088804441158426766</id><published>2009-03-21T18:53:00.000-07:00</published><updated>2009-03-21T19:23:31.073-07:00</updated><title type='text'>Escalation Sending survey to end users.</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_eSIEbjaBtc8/ScWhFpA0cYI/AAAAAAAAAAU/zGI6ovV2edQ/s1600-h/Commtemplate.bmp"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 90px;" src="http://2.bp.blogspot.com/_eSIEbjaBtc8/ScWhFpA0cYI/AAAAAAAAAAU/zGI6ovV2edQ/s200/Commtemplate.bmp" alt="" id="BLOGGER_PHOTO_ID_5315832053461447042" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_eSIEbjaBtc8/ScWexYmarHI/AAAAAAAAAAM/tePQ1GnudSA/s1600-h/Notification.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 68px;" src="http://3.bp.blogspot.com/_eSIEbjaBtc8/ScWexYmarHI/AAAAAAAAAAM/tePQ1GnudSA/s200/Notification.bmp" alt="" id="BLOGGER_PHOTO_ID_5315829506435099762" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Applies To :  PMSCMR&lt;br /&gt;&lt;br /&gt;Condition:  STATUS = (select value from synonymdomain where domainid='MRSTATUS' and maxvalue='CLOSE') AND (TRUNC(SYSDATE - CHANGEDATE) =5)&lt;br /&gt;&lt;br /&gt;Escalation point : REPORTDATE    ....   Elapsed time interval  : 24:00&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Action:                                 &lt;div nowrap="" needsrefresh="false" vis="true" id="mx1545[R:0]_compHolder" class="bc" style="display: inline;"&gt;&lt;div clicked="true" ctype="label" id="mx1545[R:0]" noclick="1" targetid="mx1545[R:0]" class="text txtbold txtbold txtbold txtbold txtbold text txtbold txtbold txtbold txtbold txtbold label" style="margin: 0px; padding: 0px 0px 0px 1px;" title="Create an action to create link between PMSCMR and survey " align="left"&gt; Description:  Create an action to create link betweenPMSCMR and survey&lt;br /&gt;&lt;br /&gt;Object : PMSCMR&lt;br /&gt;Type : Custom&lt;br /&gt;&lt;br /&gt;Notifications: Under notification tab, we define Template and Role.&lt;br /&gt;&lt;br /&gt;Role should be same as  To field in Communication Template tab.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-7088804441158426766?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/7088804441158426766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/escalation-sending-survey-to-end-users.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/7088804441158426766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/7088804441158426766'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/escalation-sending-survey-to-end-users.html' title='Escalation Sending survey to end users.'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_eSIEbjaBtc8/ScWhFpA0cYI/AAAAAAAAAAU/zGI6ovV2edQ/s72-c/Commtemplate.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-6038063797457010190</id><published>2009-03-19T18:22:00.000-07:00</published><updated>2009-03-19T18:23:18.610-07:00</updated><title type='text'>Path to Check Oracle tnsnames</title><content type='html'>C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-6038063797457010190?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/6038063797457010190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/path-to-check-oracle-tnsnames.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/6038063797457010190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/6038063797457010190'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/path-to-check-oracle-tnsnames.html' title='Path to Check Oracle tnsnames'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-2585436472644461890</id><published>2009-03-19T06:05:00.001-07:00</published><updated>2009-03-19T06:05:51.836-07:00</updated><title type='text'>commlog</title><content type='html'>select t.lastcommdate&lt;br /&gt; from&lt;br /&gt; ticket t&lt;br /&gt; where  t.lastcommdate&lt; (select max(logg.crdate)&lt;br /&gt; from   comlog logg&lt;br /&gt; where t.ticketid=logg.ownerid&lt;br /&gt; group by t.ticketid&lt;br /&gt; );&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-2585436472644461890?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/2585436472644461890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/commlog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/2585436472644461890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/2585436472644461890'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/commlog.html' title='commlog'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-7151794090663548848</id><published>2009-03-18T20:01:00.001-07:00</published><updated>2009-03-18T20:01:45.317-07:00</updated><title type='text'>NEXT_DAY and LAST_DAY functions in Oracle</title><content type='html'>&lt;h1&gt;             &lt;span lang="en-us"&gt;NEXT_DAY and LAST_DAY functions&lt;/span&gt;           &lt;/h1&gt;           &lt;blockquote&gt;             &lt;p&gt;               &lt;span lang="en-us"&gt;The NEXT_DAY and LAST_DAY functions can be used to calculate for               example «the last Saturday in any given month». You can simply get the               last day in the month, subtract 7 days from that, and then use NEXT_DAY to find the               next Saturday after that one.&lt;/span&gt;             &lt;/p&gt;           &lt;/blockquote&gt;           &lt;p class="big"&gt;             &lt;span lang="en-us"&gt;NEXT_DAY (date, char)&lt;/span&gt;           &lt;/p&gt;           &lt;blockquote&gt;             &lt;p&gt;               &lt;span lang="en-us"&gt;NEXT_DAY returns the date of the first weekday named by               &lt;i&gt;char&lt;/i&gt; that is later than &lt;i&gt;date&lt;/i&gt;. The return type is always DATE,               regardless of the datatype of &lt;i&gt;date&lt;/i&gt;. The argument char must be a day of the               week in the date language of your session, either the full name or the abbreviation.               The minimum number of letters required is the number of letters in the abbreviated               version. Any characters immediately following the valid abbreviation are ignored. The               return value has the same hours, minutes, and seconds component as the argument               date.&lt;/span&gt;             &lt;/p&gt;           &lt;/blockquote&gt;           &lt;p&gt;             &lt;span lang="en-us"&gt;Example&lt;/span&gt;           &lt;/p&gt;           &lt;blockquote&gt;             &lt;p&gt;               &lt;span lang="en-us"&gt;Return the date of the next Monday after now:&lt;/span&gt;             &lt;/p&gt;             &lt;p class="courier"&gt;               &lt;span lang="en-us"&gt;&lt;b&gt;SELECT TO_CHAR(NEXT_DAY(sysdate,'MON'),'DD.MM.YYYY') "Next               Monday from now"&lt;br /&gt;                 FROM DUAL;&lt;br /&gt;              &lt;/b&gt; &lt;span style="color:#0000ff;"&gt;&lt;br /&gt;               Next Monday&lt;br /&gt;               -----------&lt;br /&gt;                06.12.2004&lt;/span&gt;&lt;/span&gt;             &lt;/p&gt;           &lt;/blockquote&gt;           &lt;p class="big"&gt;             &lt;span lang="en-us"&gt;LAST_DAY(date)&lt;/span&gt;           &lt;/p&gt;           &lt;blockquote&gt;             &lt;p&gt;               &lt;span lang="en-us"&gt;LAST_DAY returns the date of the last day of the month that               contains &lt;i&gt;date&lt;/i&gt;. The return type is always DATE, regardless of the datatype of               date.&lt;/span&gt;             &lt;/p&gt;           &lt;/blockquote&gt;           &lt;p&gt;             &lt;span lang="en-us"&gt;Example&lt;/span&gt;           &lt;/p&gt;           &lt;blockquote&gt;             &lt;p&gt;               &lt;span lang="en-us"&gt;The following statement determines how many days are left in the               current month:&lt;/span&gt;             &lt;/p&gt;             &lt;p space="preserve" class="courier"&gt;               &lt;span lang="en-us"&gt;SELECT SYSDATE,&lt;br /&gt;                  LAST_DAY(SYSDATE) "Last",&lt;br /&gt;                  LAST_DAY(SYSDATE) - SYSDATE "Days Left"&lt;br /&gt;                  FROM DUAL;&lt;br /&gt;               &lt;br /&gt;               &lt;span style="color:#0000ff;"&gt;SYSDATE     Last                   Days Left&lt;br /&gt;               --------- --------- ----------&lt;br /&gt;               03-DEC-04 31-DEC-04         28&lt;/span&gt;&lt;/span&gt;             &lt;/p&gt;             &lt;p space="preserve"&gt;               &lt;span lang="en-us"&gt;Get the last date of a month:&lt;/span&gt;             &lt;/p&gt;             &lt;p space="preserve" class="courier"&gt;               &lt;span lang="en-us"&gt;&lt;b&gt;SELECT LAST_DAY (TO_DATE ('02','MM')) FROM dual;&lt;br /&gt;             &lt;br /&gt;              &lt;/b&gt; &lt;span style="color:#0000ff;"&gt; LAST_DAY&lt;br /&gt;               ---------&lt;br /&gt;               29-FEB-04&lt;/span&gt;&lt;/span&gt;             &lt;/p&gt;           &lt;/blockquote&gt;           &lt;p space="preserve" class="big"&gt;             &lt;span lang="en-us"&gt;Return the last Saturday of each month for a given year&lt;/span&gt;           &lt;/p&gt;           &lt;blockquote&gt;             &lt;p space="preserve"&gt;               &lt;span lang="en-us"&gt;You can simply get the last day in the month, subtract 7 days from               that, and then use NEXT_DAY to find the next Saturday after that one.&lt;/span&gt;             &lt;/p&gt;             &lt;p space="preserve" class="courier"&gt;               &lt;span lang="en-us"&gt;&lt;b&gt;DEFINE my_month = 12;&lt;/b&gt;&lt;/span&gt;             &lt;/p&gt;             &lt;p class="courier"&gt;               &lt;span lang="en-us"&gt;&lt;b&gt;SELECT TO_CHAR (&lt;br /&gt;                 NEXT_DAY (&lt;br /&gt;                    LAST_DAY (TO_DATE (&amp;amp;my_month,'MM' )) - 7,&lt;br /&gt;                    TO_CHAR (TO_DATE ('29-01-1927', 'DD-MM-YYYY' ),'DAY')&lt;br /&gt;                 ),'DD.MM.YYYY') "Last Saturday in December 2004"&lt;br /&gt;               FROM dual;&lt;/b&gt;&lt;br /&gt;             &lt;br /&gt;               &lt;span style="color:#0000ff;"&gt;Last Saturday in December 2004&lt;br /&gt;               ------------------------------&lt;br /&gt;               25.12.2004&lt;/span&gt;&lt;/span&gt;             &lt;/p&gt;             &lt;p class="normal"&gt;               &lt;span lang="en-us"&gt;Return the last Saturdays for the current year.&lt;/span&gt;             &lt;/p&gt;             &lt;p class="courier"&gt;               &lt;span lang="en-us"&gt;&lt;b&gt;SELECT TO_CHAR (&lt;br /&gt;                 NEXT_DAY (&lt;br /&gt;                   LAST_DAY (&lt;br /&gt;                       ADD_MONTHS               (TRUNC(SYSDATE,'Y'),ROWNUM-1))-7,&lt;br /&gt;                       TO_CHAR (TO_DATE('29-01-1927',               'DD-MM-YYYY'),'DAY')&lt;br /&gt;                 ), 'DD.MM.YYYY') "Last Saturdays in 2004"&lt;br /&gt;                FROM ALL_OBJECTS&lt;br /&gt;               WHERE ROWNUM &lt;= 12;&lt;br /&gt;              &lt;/b&gt;&lt;br /&gt;               &lt;span style="color:#0000ff;"&gt;Last Saturdays in 2004&lt;br /&gt;               ----------------------&lt;br /&gt;               31.01.2004&lt;br /&gt;               28.02.2004&lt;br /&gt;               27.03.2004&lt;br /&gt;               24.04.2004&lt;br /&gt;               29.05.2004&lt;br /&gt;               26.06.2004&lt;br /&gt;               31.07.2004&lt;br /&gt;               28.08.2004&lt;br /&gt;               25.09.2004&lt;br /&gt;               30.10.2004&lt;br /&gt;               27.11.2004&lt;br /&gt;               25.12.2004&lt;/span&gt;&lt;/span&gt;             &lt;/p&gt;             &lt;p&gt;               &lt;span lang="en-us"&gt;The "29-01-1927" is just a random date that we knew was a               Saturday—any Saturday would do. This is done instead of using "SAT" in the               query for international reasons, because in languages other than English, "SAT" isn't               Saturday. This query should work in any language out there.&lt;/span&gt;             &lt;/p&gt;           &lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-7151794090663548848?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/7151794090663548848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/nextday-and-lastday-functions-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/7151794090663548848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/7151794090663548848'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/nextday-and-lastday-functions-in-oracle.html' title='NEXT_DAY and LAST_DAY functions in Oracle'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-3444028158182586326</id><published>2009-03-18T19:55:00.000-07:00</published><updated>2009-03-18T20:01:16.511-07:00</updated><title type='text'>The new TIMESTAMP datatype</title><content type='html'>&lt;span lang="en-us"&gt;Oracle has expanded on the DATE datatype and has given us the               TIMESTAMP datatype which stores all the information that the DATE datatype stores,               but also includes fractional seconds.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span lang="en-us"&gt;If you want to convert a DATE datatype to a TIMESTAMP datatype               format, just use the CAST function. As you can see, there is a fractional seconds               part of '.000000' on the end of this conversion. This is only because when converting               from the DATE datatype that does not have the fractional seconds it defaults to zeros               and the display is defaulted to the default timestamp format.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span lang="en-us"&gt;CREATE TABLE date_table (&lt;br /&gt;                 date1      DATE,&lt;br /&gt;                 time1      TIMESTAMP,&lt;br /&gt;                 time2      TIMESTAMP&lt;br /&gt;               );&lt;br /&gt;             &lt;br /&gt;               INSERT INTO date_table (date1, time1, time2)&lt;br /&gt;                 VALUES (SYSDATE,&lt;br /&gt;                         &lt;b&gt;TO_TIMESTAMP               ('17.12.1980:00:00:00&lt;/b&gt;'&lt;b&gt;,'DD.MM.YYYY:HH24:MI:SS')&lt;/b&gt;,&lt;br /&gt;                         &lt;b&gt;TO_TIMESTAMP               ('03.12.2004:10:34:24','DD.MM.YYYY:HH24:MI:SS')&lt;br /&gt;                &lt;/b&gt; );&lt;br /&gt;               COMMIT;&lt;br /&gt;             &lt;br /&gt;               &lt;b&gt;SELECT CAST(date1 AS TIMESTAMP) "Date" FROM date_table;&lt;/b&gt;&lt;br /&gt;             &lt;br /&gt;               &lt;span style="color:#0000ff;"&gt;Date&lt;br /&gt;               ---------------------------------------------------------------------------&lt;br /&gt;               03-DEC-04 11.36.45.&lt;b&gt;000000 AM&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-3444028158182586326?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/3444028158182586326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/new-timestamp-datatype.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/3444028158182586326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/3444028158182586326'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/new-timestamp-datatype.html' title='The new TIMESTAMP datatype'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-8661397744395670984</id><published>2009-03-17T22:14:00.000-07:00</published><updated>2009-03-17T22:15:38.042-07:00</updated><title type='text'>Insert a hyperlink in a Workflow communication template</title><content type='html'>To insert a hyperlink in a Workflow communication template, insert the following&lt;br /&gt;link into the body of your message:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Creating Records for Workflow 29&lt;br /&gt;http://:HOSTNAME/maximo/ui/&lt;br /&gt;maximo.jsp?event=loadapp&amp;amp;value=:APP&amp;amp;uniqueid=:OWNERID&lt;br /&gt;&lt;br /&gt;where HOSTNAME is the name or IP address of the MXServer.&lt;br /&gt;When a notification is generated, the application name and record ID appear in&lt;br /&gt;the message as a hyperlink that leads directly to the record.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-8661397744395670984?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/8661397744395670984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/insert-hyperlink-in-workflow.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8661397744395670984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8661397744395670984'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/insert-hyperlink-in-workflow.html' title='Insert a hyperlink in a Workflow communication template'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-8616748647269576894</id><published>2009-03-17T21:23:00.000-07:00</published><updated>2009-03-17T21:24:41.693-07:00</updated><title type='text'>Creating Communication Templates</title><content type='html'>You use the Communication Templates application to create and manage generic&lt;br /&gt;templates to use when generating e-mail messages.&lt;br /&gt;When you create a communication template, you can specify the following&lt;br /&gt;information:&lt;br /&gt;􀁔 The business object that the template can be used for.&lt;br /&gt;􀁔 The applications where the template can be used.&lt;br /&gt;􀁔 The address that the e-mail should be sent from.&lt;br /&gt;􀁔 The address that replies should be sent to.&lt;br /&gt;􀁔 The subject line of the message.&lt;br /&gt;􀁔 The body of the message.&lt;br /&gt;􀁔 One or more recipients of the message. You can send messages to roles,&lt;br /&gt;persons, person groups, and e-mail addresses.&lt;br /&gt;􀁔 Whether each recipient should receive the message (To), a carbon copy of the&lt;br /&gt;message (CC), or a blind carbon copy of the message (BCC).&lt;br /&gt;􀁔 Documents to include as attachments when the message is generated.&lt;br /&gt;The Communication Templates application lets you use substitution variables&lt;br /&gt;when creating the subject line and body of your message. When an e-mail is&lt;br /&gt;generated using that template, it replaces the substitution&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-8616748647269576894?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/8616748647269576894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/creating-communication-templates.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8616748647269576894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/8616748647269576894'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/creating-communication-templates.html' title='Creating Communication Templates'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-6340946357340067493</id><published>2009-03-16T20:53:00.000-07:00</published><updated>2009-03-16T21:09:03.158-07:00</updated><title type='text'>Statement to retrieve time in Oracle</title><content type='html'>&lt;pre&gt;select to_char(sysdate, 'Dy DD-Mon-YYYY HH24:MI:SS')&lt;br /&gt;&lt;br /&gt;count time timestamp&lt;br /&gt;select * from ticket where s= rowstamp countstamp&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-6340946357340067493?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/6340946357340067493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/statement-to-retrieve-time-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/6340946357340067493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/6340946357340067493'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/statement-to-retrieve-time-in-oracle.html' title='Statement to retrieve time in Oracle'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-7913399301386749934</id><published>2009-03-16T20:40:00.000-07:00</published><updated>2009-03-16T20:43:20.941-07:00</updated><title type='text'>How to set default value to any field in Database Configuration application</title><content type='html'>Go to Database Conguration -&gt; Select the object(Eg Ticket) -&gt; Select the Attribute( Eg lastcommdate) then click on the dafault value property and there enter the value which you want to set it as default.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-7913399301386749934?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/7913399301386749934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/how-to-set-default-value-to-any-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/7913399301386749934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/7913399301386749934'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/how-to-set-default-value-to-any-field.html' title='How to set default value to any field in Database Configuration application'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-87743367395938458.post-5902647870458987546</id><published>2009-03-15T20:54:00.000-07:00</published><updated>2009-03-17T19:32:35.868-07:00</updated><title type='text'>Escalation Commlog</title><content type='html'>ticketid in (select ticketid from ticket where status&lt;&gt; 'CLOSED' and commlogentry is null and lastcommdate in(select lastcommdate from ticket where lastcommdate&lt;(select max(createdate) from commlog where ownerid in (select ticketuid from ticket)))&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ticketid in (select ticketid from ticket where status&lt;&gt; 'CLOSED' and  lastcommdate in(select lastcommdate from ticket where lastcommdate AND  TIMESTAM&lt;(select max(createdate and TIMESTAMP) from commlog where ownerid in  (select ticketuid from ticket)))  Escalation points  point 1  condition :   class= 'SR'  point 2: condition:     clasee = 'INCIDENT'  point 3  condition: class= 'PROBLEM'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;update ticket set lastcommdate=sysdate where ticketid in( select ticketid from ticket&lt;/div&gt;&lt;div&gt;where lastcommdate&lt;(select(max(crdate)) from comlog&lt;/div&gt;&lt;div&gt;where ownerid in (select ticketuid from ticket)))&lt;br /&gt;&lt;br /&gt;Tuesday:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select crdate, ownerid from comlog where crdate in (select max(crdate) from comlog group by own&lt;br /&gt;erid)&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/87743367395938458-5902647870458987546?l=maximosuri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maximosuri.blogspot.com/feeds/5902647870458987546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maximosuri.blogspot.com/2009/03/escalation-commlog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/5902647870458987546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/87743367395938458/posts/default/5902647870458987546'/><link rel='alternate' type='text/html' href='http://maximosuri.blogspot.com/2009/03/escalation-commlog.html' title='Escalation Commlog'/><author><name>$uri</name><uri>http://www.blogger.com/profile/00801029779013031726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
