How do I Identify Lead and Lag in consecutive dates with multiple values?

I am using:
Oracle SQL Developer (3.0.04)
Build MAin-04.34
Oracle Database 11g
Enterprise Edition 11.2.0.1.0 - 64bit Production
I would like to identify the Lead and Lags based on two groups.
The groupping is that multiple C_ID can be found in a Single W_ID
and that multiple D_VAL can be found in C_ID
So I would like to identify and mark with "Lead" and "Lag" related to the "consecutivedaysc" (this already matches the D_VAL and C_ID very well) for example W_ID 2004 has C_ID 2059 with D_VAL of 44 for April 2 & 3, the consecutive days are 2 and I would like to correctly mark April 2 as the Lead and April 3 as the lag.
Then I would like to mark the "Lead" and "Lag" independent of if there are multiple D_VAL on the same W_ID
Example that I am having trouble with:
W_ID 2285 on April 10 for C_ID 7847, I don't understand whay I can't get "Lag" in stead of a "Lead" realted to the consecutivedaysw
I would like to eventually have it that the data gets summarized based on W_ID and sinlge (non-repeating) dt with Lead and Lags.
table
with t as (
select 4592 U_KEY,0 D_VAL_PRESENT,2004 W_ID,to_date('4/1/2013','mm-dd-yyyy') dt,2059 C_ID, (null) D_VAL,0 GWID,13 GCID,1 CONSECUTIVEDAYSC,1 CONSECUTIVEDAYSW from dual union all
select 4591,1,2004,to_date('4/2/2013','mm-dd-yyyy'),2059,44,1,11,2,13 from dual union all
select 4590,1,2004,to_date('4/3/2013','mm-dd-yyyy'),2059,44,1,11,2,13 from dual union all
select 4589,1,2004,to_date('4/4/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
select 4588,1,2004,to_date('4/5/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
select 4587,1,2004,to_date('4/6/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
select 4586,1,2004,to_date('4/7/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
select 4585,1,2004,to_date('4/8/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
select 4584,1,2004,to_date('4/9/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
select 4583,1,2004,to_date('4/10/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
select 4582,1,2004,to_date('4/11/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
select 4581,1,2004,to_date('4/12/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
select 4580,1,2004,to_date('4/13/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
select 4579,1,2004,to_date('4/14/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
select 1092,0,2686,to_date('4/1/2013','mm-dd-yyyy'),7210,(null),0,11,3,3 from dual union all
select 3416,0,2686,to_date('4/1/2013','mm-dd-yyyy'),7211,(null),0,11,3,3 from dual union all
select 18118,0,2686,to_date('4/1/2013','mm-dd-yyyy'),17391,(null),0,11,3,3 from dual union all
select 1091,0,2686,to_date('4/2/2013','mm-dd-yyyy'),7210,(null),0,11,3,3 from dual union all
select 3415,0,2686,to_date('4/2/2013','mm-dd-yyyy'),7211,(null),0,11,3,3 from dual union all
select 18117,0,2686,to_date('4/2/2013','mm-dd-yyyy'),17391,(null),0,11,3,3 from dual union all
select 1090,0,2686,to_date('4/3/2013','mm-dd-yyyy'),7210,(null),0,11,3,3 from dual union all
select 3414,0,2686,to_date('4/3/2013','mm-dd-yyyy'),7211,(null),0,11,3,3 from dual union all
select 18116,0,2686,to_date('4/3/2013','mm-dd-yyyy'),17391,(null),0,11,3,3 from dual union all
select 1089,1,2686,to_date('4/4/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
select 3413,1,2686,to_date('4/4/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
select 18115,1,2686,to_date('4/4/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
select 1088,1,2686,to_date('4/5/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
select 3412,1,2686,to_date('4/5/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
select 18114,1,2686,to_date('4/5/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
select 1087,1,2686,to_date('4/6/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
select 3411,1,2686,to_date('4/6/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
select 18113,1,2686,to_date('4/6/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
select 1086,1,2686,to_date('4/7/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
select 3410,1,2686,to_date('4/7/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
select 18112,1,2686,to_date('4/7/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
select 1085,1,2686,to_date('4/8/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
select 3409,1,2686,to_date('4/8/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
select 18111,1,2686,to_date('4/8/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
select 1084,1,2686,to_date('4/9/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
select 3408,1,2686,to_date('4/9/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
select 18110,1,2686,to_date('4/9/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
select 1083,1,2686,to_date('4/10/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
select 3407,1,2686,to_date('4/10/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
select 18109,1,2686,to_date('4/10/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
select 1082,1,2686,to_date('4/11/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
select 3406,1,2686,to_date('4/11/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
select 18108,1,2686,to_date('4/11/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
select 1081,1,2686,to_date('4/12/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
select 3405,1,2686,to_date('4/12/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
select 18107,1,2686,to_date('4/12/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
select 1080,1,2686,to_date('4/13/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
select 3404,1,2686,to_date('4/13/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
select 18106,1,2686,to_date('4/13/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
select 1079,1,2686,to_date('4/14/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
select 3403,1,2686,to_date('4/14/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
select 18105,1,2686,to_date('4/14/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
select 17390,1,3034,to_date('4/1/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 17389,1,3034,to_date('4/2/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 17388,1,3034,to_date('4/3/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 17387,1,3034,to_date('4/4/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 17386,1,3034,to_date('4/5/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 7305,1,3034,to_date('4/6/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
select 17385,1,3034,to_date('4/6/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 14123,1,3034,to_date('4/6/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
select 17384,1,3034,to_date('4/7/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 17383,1,3034,to_date('4/8/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 7302,1,3034,to_date('4/9/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
select 17382,1,3034,to_date('4/9/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 14120,1,3034,to_date('4/9/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
select 7301,1,3034,to_date('4/10/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
select 17381,1,3034,to_date('4/10/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 14119,1,3034,to_date('4/10/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
select 7300,1,3034,to_date('4/11/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
select 17380,1,3034,to_date('4/11/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 14118,1,3034,to_date('4/11/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
select 7299,1,3034,to_date('4/12/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
select 17379,1,3034,to_date('4/12/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 14117,1,3034,to_date('4/12/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
select 7298,1,3034,to_date('4/13/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
select 17378,1,3034,to_date('4/13/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 14116,1,3034,to_date('4/13/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
select 7297,1,3034,to_date('4/14/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
select 17377,1,3034,to_date('4/14/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
select 14115,1,3034,to_date('4/14/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual
)the script that I am using:
select
t.*/
case
  when lag(dt) over(partition by c_id, d_val order by dt, u_key)+1 = dt
    then'Lag'
  when lead(dt) over(partition by c_id, d_val order by dt, u_key)-1 = dt
    then 'Lead_1'
  when consecutivedaysc = 1
    then'Lead_3'
  else 'wrong'
end LeadLagD_VAL,
case
  when lag(dt) over(partition by w_id, c_id, d_val_present,gwid order by dt)+1 = dt
    then'Lag'
  when lead(dt) over(partition by w_id, c_id, d_val_present, gwid order by dt)-1 = dt
    then 'Lead_A'
  when consecutivedaysw = 1
    then 'Lead_B'
  else 'wrong'
end Lead_Lag2
from t
order by
W_ID,
dt asc,
C_ID asc
;the results should look like this (but haveing issues)
u_key     D_VAL_PRESENT     W_ID     C_ID          DT          D_VAL     GWID     GCID     CONSECUTIVEDAYSC     CONSECUTIVEDAYSW     LEADLAGD_VAL     LEAD_LAG2
4592     0          2004     2059          01-APR-13          0     13     1               1               Lead_1          Lead_A
4591     1          2004     2059          02-APR-13     44     1     11     2               13               Lead_1          Lead_A
4590     1          2004     2059          03-APR-13     44     1     11     2               13               Lag          Lag
4589     1          2004     2059          04-APR-13     389     1     0     11               13               Lead_1          Lag
4588     1          2004     2059          05-APR-13     389     1     0     11               13               Lag          Lag
4587     1          2004     2059          06-APR-13     389     1     0     11               13               Lag          Lag
4586     1          2004     2059          07-APR-13     389     1     0     11               13               Lag          Lag
4585     1          2004     2059          08-APR-13     389     1     0     11               13               Lag          Lag
4584     1          2004     2059          09-APR-13     389     1     0     11               13               Lag          Lag
4583     1          2004     2059          10-APR-13     389     1     0     11               13               Lag          Lag
4582     1          2004     2059          11-APR-13     389     1     0     11               13               Lag          Lag
4581     1          2004     2059          12-APR-13     389     1     0     11               13               Lag          Lag
4580     1          2004     2059          13-APR-13     389     1     0     11               13               Lag          Lag
4579     1          2004     2059          14-APR-13     389     1     0     11               13               Lag          Lag
1092     0          2686     7210          01-APR-13          0     11     3               3               Lead_1          Lead_A
3416     0          2686     7211          01-APR-13          0     11     3               3               Lead_1          Lead_A
18118     0          2686     17391          01-APR-13          0     11     3               3               Lead_1          Lead_A
1091     0          2686     7210          02-APR-13          0     11     3               3               Lag          Lag
3415     0          2686     7211          02-APR-13          0     11     3               3               Lag          Lag
18117     0          2686     17391          02-APR-13          0     11     3               3               Lag          Lag
1090     0          2686     7210          03-APR-13          0     11     3               3               Lag          Lag
3414     0          2686     7211          03-APR-13          0     11     3               3               Lag          Lag
18116     0          2686     17391          03-APR-13          0     11     3               3               Lag          Lag
1089     1          2686     7210          04-APR-13     51     9     0     11               11               Lead_1          Lead_A
3413     1          2686     7211          04-APR-13     51     9     0     11               11               Lead_1          Lead_A
18115     1          2686     17391          04-APR-13     51     9     0     11               11               Lead_1          Lead_A
1088     1          2686     7210          05-APR-13     51     9     0     11               11               Lag          Lag
3412     1          2686     7211          05-APR-13     51     9     0     11               11               Lag          Lag
18114     1          2686     17391          05-APR-13     51     9     0     11               11               Lag          Lag
1087     1          2686     7210          06-APR-13     51     9     0     11               11               Lag          Lag
3411     1          2686     7211          06-APR-13     51     9     0     11               11               Lag          Lag
18113     1          2686     17391          06-APR-13     51     9     0     11               11               Lag          Lag
1086     1          2686     7210          07-APR-13     51     9     0     11               11               Lag          Lag
3410     1          2686     7211          07-APR-13     51     9     0     11               11               Lag          Lag
18112     1          2686     17391          07-APR-13     51     9     0     11               11               Lag          Lag
1085     1          2686     7210          08-APR-13     51     9     0     11               11               Lag          Lag
3409     1          2686     7211          08-APR-13     51     9     0     11               11               Lag          Lag
18111     1          2686     17391          08-APR-13     51     9     0     11               11               Lag          Lag
1084     1          2686     7210          09-APR-13     51     9     0     11               11               Lag          Lag
3408     1          2686     7211          09-APR-13     51     9     0     11               11               Lag          Lag
18110     1          2686     17391          09-APR-13     51     9     0     11               11               Lag          Lag
1083     1          2686     7210          10-APR-13     51     9     0     11               11               Lag          Lag
3407     1          2686     7211          10-APR-13     51     9     0     11               11               Lag          Lag
18109     1          2686     17391          10-APR-13     51     9     0     11               11               Lag          Lag
1082     1          2686     7210          11-APR-13     51     9     0     11               11               Lag          Lag
3406     1          2686     7211          11-APR-13     51     9     0     11               11               Lag          Lag
18108     1          2686     17391          11-APR-13     51     9     0     11               11               Lag          Lag
1081     1          2686     7210          12-APR-13     51     9     0     11               11               Lag          Lag
3405     1          2686     7211          12-APR-13     51     9     0     11               11               Lag          Lag
18107     1          2686     17391          12-APR-13     51     9     0     11               11               Lag          Lag
1080     1          2686     7210          13-APR-13     51     9     0     11               11               Lag          Lag
3404     1          2686     7211          13-APR-13     51     9     0     11               11               Lag          Lag
18106     1          2686     17391          13-APR-13     51     9     0     11               11               Lag          Lag
1079     1          2686     7210          14-APR-13     51     9     0     11               11               Lag          Lag
3403     1          2686     7211          14-APR-13     51     9     0     11               11               Lag          Lag
18105     1          2686     17391          14-APR-13     51     9     0     11               11               Lag          Lag
17390     1          3034     5395          01-APR-13     298     0     0     14               14               Lead_1          Lead_A
17389     1          3034     5395          02-APR-13     298     0     0     14               14               Lag          Lag
17388     1          3034     5395          03-APR-13     298     0     0     14               14               Lag          Lag
17387     1          3034     5395          04-APR-13     298     0     0     14               14               Lag          Lag
17386     1          3034     5395          05-APR-13     298     0     0     14               14               Lag          Lag
7305     1          3034     5394          06-APR-13     44     0     0     7               14               Lead_1          Lag
17385     1          3034     5395          06-APR-13     298     0     0     14               14               Lag          Lag
14123     1          3034     22421          06-APR-13     44     0     0     7               14               Lead_1          Lag
17384     1          3034     5395          07-APR-13     298     0     0     14               14               Lag          Lag
17383     1          3034     5395          08-APR-13     298     0     0     14               14               Lag          Lag
7302     1          3034     5394          09-APR-13     44     0     0     7               14               Lead_1          Lag
17382     1          3034     5395          09-APR-13     298     0     0     14               14               Lag          Lag
14120     1          3034     22421          09-APR-13     44     0     0     7               14               Lead_1          Lag
7301     1          3034     5394          10-APR-13     44     0     0     7               14               Lag          Lag
17381     1          3034     5395          10-APR-13     298     0     0     14               14               Lag          Lag
14119     1          3034     22421          10-APR-13     44     0     0     7               14               Lag          Lag
7300     1          3034     5394          11-APR-13     44     0     0     7               14               Lag          Lag
17380     1          3034     5395          11-APR-13     298     0     0     14               14               Lag          Lag
14118     1          3034     22421          11-APR-13     44     0     0     7               14               Lag          Lag
7299     1          3034     5394          12-APR-13     44     0     0     7               14               Lag          Lag
17379     1          3034     5395          12-APR-13     298     0     0     14               14               Lag          Lag
14117     1          3034     22421          12-APR-13     44     0     0     7               14               Lag          Lag
7298     1          3034     5394          13-APR-13     44     0     0     7               14               Lag          Lag
17378     1          3034     5395          13-APR-13     298     0     0     14               14               Lag          Lag
14116     1          3034     22421          13-APR-13     44     0     0     7               14               Lag          Lag
7297     1          3034     5394          14-APR-13     44     0     0     7               14               Lag          Lag
17377     1          3034     5395          14-APR-13     298     0     0     14               14               Lag          Lag
14115     1          3034     22421          14-APR-13     44     0     0     7               14               Lag          Lag     I place the "wrong" showing that neither the when conditions were no able to work.
any suggestions on a better direction for me to solve this?
Edited by: 1004407 on May 23, 2013 1:16 PM
Then I am trying to get this, not to include C_ID
u_key     D_VAL_PRESENT     W_ID          DT          CONSECUTIVEDAYSW     LEAD_LAG2
4592     0          2004          01-APR-13     1               Lead_A
4591     1          2004          02-APR-13     13               Lead_A
4590     1          2004          03-APR-13     13               Lag
4589     1          2004          04-APR-13     13               Lag
4588     1          2004          05-APR-13     13               Lag
4587     1          2004          06-APR-13     13               Lag
4586     1          2004          07-APR-13     13               Lag
4585     1          2004          08-APR-13     13               Lag
4584     1          2004          09-APR-13     13               Lag
4583     1          2004          10-APR-13     13               Lag
4582     1          2004          11-APR-13     13               Lag
4581     1          2004          12-APR-13     13               Lag
4580     1          2004          13-APR-13     13               Lag
4579     1          2004          14-APR-13     13               Lag
1092     0          2686          01-APR-13     3               Lead_A
1091     0          2686          02-APR-13     3               Lag
1090     0          2686          03-APR-13     3               Lag
1089     1          2686          04-APR-13     11               Lead_A
1088     1          2686          05-APR-13     11               Lag
1087     1          2686          06-APR-13     11               Lag
1086     1          2686          07-APR-13     11               Lag
1085     1          2686          08-APR-13     11               Lag
1084     1          2686          09-APR-13     11               Lag
1083     1          2686          10-APR-13     11               Lag
1082     1          2686          11-APR-13     11               Lag
1081     1          2686          12-APR-13     11               Lag
1080     1          2686          13-APR-13     11               Lag
1079     1          2686          14-APR-13     11               Lag
17390     1          3034          01-APR-13     14               Lead_A
17389     1          3034          02-APR-13     14               Lag
17388     1          3034          03-APR-13     14               Lag
17387     1          3034          04-APR-13     14               Lag
17386     1          3034          05-APR-13     14               Lag
7305     1          3034          06-APR-13     14               Lag
17384     1          3034          07-APR-13     14               Lag
17383     1          3034          08-APR-13     14               Lag
7302     1          3034          09-APR-13     14               Lag
7301     1          3034          10-APR-13     14               Lag
7300     1          3034          11-APR-13     14               Lag
7299     1          3034          12-APR-13     14               Lag
7298     1          3034          13-APR-13     14               Lag
7297     1          3034          14-APR-13     14               Lag     then into this (which I would use where Lead_Lag2 = "Lead_A"
u_key     D_VAL_PRESENT     W_ID          DT          CONSECUTIVEDAYSW     LEAD_LAG2
4592     0          2004          01-APR-13     1               Lead_A
4591     1          2004          02-APR-13     13               Lead_A
1092     0          2686          01-APR-13     3               Lead_A
11089     1          2686          04-APR-13     11               Lead_A
17390     1          3034          01-APR-13     14               Lead_A     but onething at a time.
Thanks for point out the errors Frank, always helpful to know what others see.
Edited by: 1004407 on May 23, 2013 2:36 PM
Edited by: 1004407 on May 23, 2013 4:01 PM

Is this the first set you expect?
SQL> with flagged as
  2  (
  3    select w_id,d_val,dt,u_key,
  4           case when lag(dt) over(partition by w_id,d_val order by dt,u_key)
  5                       in (dt,dt-1)
  6                then 0
  7                else 1
  8           end flg
  9    from t
10  ),
11  summed as
12  (
13    select w_id,d_val,dt,u_key,
14           sum(flg) over(order by w_id,d_val nulls first,dt,u_key) sm
15    from flagged
16  ),
17  day_count as
18  (
19  select  w_id,d_val,dt,u_key,count(distinct dt) over(partition by sm) cnt
20  from summed
21  )
22  select w_id,d_val,dt,u_key,cnt
23  from day_count
24  order by w_id,d_val nulls first,dt,u_key;
      W_ID      D_VAL DT             U_KEY        CNT
      2004            01-APR-13       4592          1
      2004         44 02-APR-13       4591          2
      2004         44 03-APR-13       4590          2
      2004        389 04-APR-13       4589         11
      2004        389 05-APR-13       4588         11
      2004        389 06-APR-13       4587         11
      2004        389 07-APR-13       4586         11
      2004        389 08-APR-13       4585         11
      2004        389 09-APR-13       4584         11
      2004        389 10-APR-13       4583         11
      2004        389 11-APR-13       4582         11
      2004        389 12-APR-13       4581         11
      2004        389 13-APR-13       4580         11
      2004        389 14-APR-13       4579         11
      2686            01-APR-13       1092          3
      2686            01-APR-13       3416          3
      2686            01-APR-13      18118          3
      2686            02-APR-13       1091          3
      2686            02-APR-13       3415          3
      2686            02-APR-13      18117          3
      2686            03-APR-13       1090          3
      2686            03-APR-13       3414          3
      2686            03-APR-13      18116          3
.....

Similar Messages

  • How to know the balance and validity of internet data in iPad

    How to know the balance and validity of internet data in iPad?

    Sir I m using internet in ipad4 with airtel network
    They provide me 2gb data with the amount of 255 rupees
    And now I inserted the sim in my ipad4
    And start the surfing on safari n all
    And now I wanted to know how much data is balance.

  • Question when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • HT4914 I want to transfer my entire iTunes "folder" from a newer iMac 3.06 GHz Core 2 machine running iTunes 10.7 to an older iMac running OSx 10.5.8. How best to do this and keep all my data, tags and covers in tact?

    I want to transfer my entire iTunes "folder" from a newer iMac 3.06 GHz Core 2 machine running iTunes 10.7 to an older iMac running OSx 10.5.8. How best to do this and keep all my data, tags and covers in tact?

    Firstly, time to get rid of the 2 x 512MB FBDIMMs in there, they add more heat and use more watts then they add to the system. If you need more, and 4 or 8 DIMMs is ideal, Amazon has 2x2GB sets $22 - about 1/50th what I paid for 1GB new.
    Buy a 250GB Samsung EVO SSD $129
    Pick up Carbon Copy Cloner http://www.bombich.com to clone the system to the SSD
    A sled adapter for the SSD from Icy Dock $14 Amazon.com
    7-8 years overdue for new system drive! amazed it lasted this long. An SSD plus some WD Black 2TB drives or larger should do the trick.
    you can also put the SSD in the lower optical drive bay and use one of the two ODD "spare" SATA ports for the SSD - an SSD is the best way to improve the performance of our old Mac Pro 2006-7 models.
    When you downloaded the Lion installer that was when to create a flash type installer with Lion DiskMaker.
    If you have put in a new-ish graphic card then OS X 10.6.0 may not support it.

  • How do you import jpegs and make a flip book with CC Id?

    How do you import jpegs and make a flip book with CC Id?

    You actually don't need to make a flipbook yourself. There are paid and free, ready-to-use flipbooks in Flash or HTML5 available which you just need to configure and then put all images into a specific folder and the flipbook runs them.

  • HT1539 How can a digital copy be used in a household with multiple apple ids, synced on the same computer?

    How can a digital copy be used in a household with multiple apple ids, synced on the same computer?  I want to put a digital copy on my device, and on my wife's device.
    Please help.

    you're welcome.
    actually, unless you take an extra step, the first opened swf will close.  if you want the 2nd to close, the initial receiving lc will send a message to sender that causes the sender to close.

  • How can I compare single value with multiple value...

    Hello,
    I want to compare one value with multiple values, how can it possible ?
    Here in attachment I tried to design same logic but I got problem that when I entered value in y that is compared with only minimum value of x, I don't want that I want to compare y value with all the x value and then if y is less then x while loop should be stop.
    I want to do so because in my program some time I didn't get result what I want, for example x values is 4,5,6,7,8  and y value is  suppose 6 then while loop should be stop but here it consider only minimum number and its 4 here so while loop is not stop even y is less then 7 and 8. So I want to compare y value with all the entered values of x and if y is less then any of x values then while loop should be stop and led should be ON.
    Please guide me how can I do so.....
    Solved!
    Go to Solution.
    Attachments:
    COMPARISON.vi ‏8 KB

    AnkitRamani wrote:
    Thank you very mach for your help..
    may be i have solved this ....i have made one change in my vi that instead of min. i select max and max. value is compare with the value of y and then if y is less then the max. while loop will be stop other wise its run continuously.
    this is working fine...
    any ways thanks again for your help and time...
    I have to agree with Lewis - his way is more efficient.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • OLAP on 11g and Materialised Views with Multiple Value-Based Hierarchies

    Hello OLAPians
    I am trying to setup Orable BIEE to report on an OLAP cube with pre-aggregated data. As OBIEE is not able to hook into the OLAP directly i have to create an SQL cubeview.
    Currently i am on a 10g OLAP environment and am using the oracle sample SQL cubeview generator to create an SQLview of my cube.
    The cube itself has multiple dimensions and these dimensions have multiple VALUE-based (ragged) hierarchies and dimension members can be shared across hierarchies also.
    Initially i had a problem running the view generator plugin because there is a bug within it that does not finish if there are multiple value-based hierarchies present. I was able to get around this by manually editing the limitmap for the cubeview and manually creating the SQL view.
    The question that i want to ask is how robust is the 11g materialised views with multiple value-based hierarchies and the sharing of dimension members across different hierarchies?
    Has anyone successfully been able to create a cubeview and import it into OBIEE without the hassle of manually editing the limitmap?
    A problem arises with the value-based setup whereby if the client creates a newer depth in the ragged hierarchy, i need to manually create the limitmap and the cube-view over again, and then re-map the BI Administration mappings.

    The simple answer to your question,
    how robust is the 11g materialised views with multiple value-based hierarchies...?is that materialized views are not supported on top of value-based hierarchies in 11g. The reason is that it is not possible to write a reasonable SQL statement that aggregates a fact over a value-based hierarchy. Such a SQL statement is necessary if we want to create a rewritable MV on top of the cube.
    But I suspect this is not what you are really asking. If you are trying to set up OBIEE on top of the cube in 10g using the view generator, then you will probably want to use the "ET VIEWS" that are generated automatically in 11g. These are generated whether or not you enable materialized views on top of your cube. I am not aware of any issues with the generated value-based hierarchy view support in 11g. Members may be shared between value hierarchies and you will not need to generate or modify limit maps.

  • How to compare single value with multiple values

    In my query I have something like this:
    A.SOR_CD=B.SOR_CODE where A and B are 2 different tables. This condition is in the where clause. The column in table A has single values but some values in table B have multiple comma separated values (822, 869, 811, ..).  I want to match this single
    value on the left side with each of the comma separated values. Please let me know how will I be able to do it. The number of comma separated values on the right side may vary.

    Hi MadRad123,
    According to your description, you want to compare single value with multiple values in your query. Right?
    In this scenario, the table B has comma separated values, however those comma separated values are concatenated into a string. So we can use charindex() function to return the index of the table A value. And use this index as condition in
    your where clause. See the sample below:
    CREATE TABLE #temp1(
    ID nvarchar(50),
    Name nvarchar(50))
    INSERT INTO #temp1 VALUES
    ('1','A'),
    ('2','A'),
    ('3','A'),
    ('4','A'),
    ('5','A')
    CREATE TABLE #temp2(
    ID nvarchar(50),
    Name nvarchar(50))
    INSERT INTO #temp2 VALUES
    ('1','a,A'),
    ('2','A,B'),
    ('3','c'),
    ('4','A,C'),
    ('5','d')
    select * from #temp1 a inner join #temp2 b on a.ID=b.ID
    where CHARINDEX(a.Name,b.Name)>0
    The result looks like below:
    Reference:
    CHARINDEX (Transact-SQL)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How can I create a hashmap() with multiple values for the same key?

    I am trying to write an application that will us something like a Map() with multiple values but some have the same key. Is this possible?

    i had the same question. just create a List, add all the values u want to it, and then put the List into the map like u would a normal single value. e.g.
    List list = new ArrayList();
    list.add(value1);
    list.add(value2);
    map.put(key, list);
    i bet u r doing the same course as i am =)

  • MTD(Month To Date) and YTD(Year To Date) with one example

    can any ont Explain about MTD(Month To Date) and YTD(Year To Date) with one example plz

    Hi,
    Can you please elaborate.
    MTD is from the 1st of the current month till today's date.
    YTD is from 1st Jan till today's date.
    If you trying to build this is query. Create restricted key figure and put restriction on calday with a customer exit for the same.
    Thanks,
    S

  • Hi, I have iphone 4s and is up to date with ios7 but when I change my ring tone again ring the default ring tone

    Hi, I have iphone 4s and is up to date with ios7 but when I change my ring tone again ring the default ring tone
    in the setting shows the ring tone i,ve chosen

    I have been on chat and a telephone conversation with my internet provider SHAW.CA and they cannot seem to assit.
    I do appreciate your replies. When you talk about Exchange Server, do you mean"Microsoft Exchange" because that is what I used to set up mail on iPhone? I also tried iCloud, but i did not like the way you have to choose sending  "from" each time you send an email. I currently use 2 accounts,one for business, one personal.
    In response to your above reply; I went to "mailbox" - sycronise account", but nothing happened.
    Am I missing some other setting perhaps. I did "enable mobile" on internet provider webmail.

  • Sql lead and lag / other option for conditional use

    Hi all gurus of SQL
    I want to pull previous record and subtract status_date from both the record to find the # number of days.
    Create table  temp  (o_id number , r_id number ,status_date date , status varchar2(30));
    Sample data
    i_id     r_id   status_date     status
    33493 308963 16-MAR-12 Incarcerated
    33493 308943 26-SEP-11 City/County Jail
    33493 306529 15-DEC-09 Active
    33493 295327 25-SEP-09 City/County Jail
    33493 293630 30-JUL-09 Active
    33493 292828 30-JUL-09 Active
    33493 292830 30-JUL-09 Active
    33493 292826 21-MAY-09 City/County Jail
    33493 291854 05-MAY-09 Active
    Select  I_ID, status_date, lag (R_ID, 1) over (order by status_date )
    from TEMP where I_IDin (33493) and  status_date >='01-NOV-2007
    and temp.status='Active';
    Logic I am trying to accomplish is find the incarceration status_date and then find the latest active , status_date and subtract those dates.
    for example 16-mar-12 minus 15-DEC-09
    Thanks for help..
    Pls help me brainstorm this..

    Hi,
    This definetly sounds like a job for analytic functions, but LAG might not be the best choice if you can have multiple 'Incarcerated' rows.  You might be better of with LAST_VALUE or MAX, like this:
    WITH  got_prev_active_status_date  AS
        SELECT  temp.*       -- or list whatever columns you need
        ,       MAX ( CASE
                          WHEN  status = 'Active'
                          THEN  status_date
                      END
                    ) OVER ( PARTITION BY  i_id     -- Just guessing
                             ORDER BY      status_date
                           )   AS prev_active_status_date
        FROM    temp
        WHERE   status   IN ('Active', 'Incarcerated')
    SELECT  p.*       -- or list whatever columns you need
    ,       status_date - prev_active_status_date   AS days_active
    FROM    got_prev_active_status_date
    WHERE   status  = 'Incarcerated';
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Point out where the query above is producing the wrong results, and explain, using specific examples, how you get the right results from the given data in those places.
    If you modify the query at all, post your modified version.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How do I integrate Configurator and iPad Electronic Flight Bags with applications that utilize a third-party license and subscription that is outside of iTunes?

    I am the EFB (Electronic Flight Bag) Manager for a small aviation company that are using 10 iPad with Retina Display as approved in-cockpit EFBs.  Our plan is to configure and manage these iPad EFBs with Apple Configurator 1.3.  We also use 2 third-party applications for charts, aviation weather, and other aviation functions that depend on a seperate license and subscription with the vendor outside of iTunes.  What I am finding through my new education in Configurator is that there does not seem to be a way to maintain the subscription status with those two applications.  Is there a way to isolate those two programs from Configurator control?  Better yet, is there a way to integrate them with Configurator without losing the subscription status and loss of huge amounts of data that are on a regular, FAA regulatory update schedule?  Configurator is awesome at managing iTunes managed applications and is perfect for our company.  I need to figure out how to make Configurator work with a subscription-based application.  Please help!

    Here is what is surmise reading ForeFlight web site.
    There is the app and the data.
    You manage the app through configurator or some other MDM.   The acquiring and paying for the data is independ of the configurator. You can buy the data through the app or online.  You may want to buy online. This way you can do the buying independent of the ipad. Once you have purchased, the app will download the data.  You may have to tell it to procedure with download panel.
    Some people use configurator to install mdm app then do the rest of the configuration from MDM.  This allows wifi updates of configuration.
    You end up with managing apps from MDM. You manage with your data from from the online account.  You enter appropriate password on each ipad to gain access to the data. App will download your data.  My need to tell it what to download in app.
    How do I buy a subscription?
    Purchasing a subscription is fast and easy! You can purchase a subscription online or inside the app using your iTunes account.
    To purchase a subscription inside the app, launch ForeFlight Mobile and then tap the 'Account' icon. You'll see a list of available plans to purchase in the 'Subscription Plans' table. Tap the one you want to buy. Follow the instructions for entering your email address and iTunes password. When the purchase is complete, you'll receive confirmation inside the app and immediately be able to continue using ForeFlight Mobile.
    To purchase a subscription online, visit our secure online ordering page. You'll be asked to choose a plan and enter your credit card information. After your purchase is complete, you'll receive an email with a password to sign into the app on your phone or iPad.
    http://www.foreflight.com/support/subscription#66
    How do I update charts, plates, and the airport database?
    ForeFlight Mobile has a download manager designed to make selecting, downloading, and updating your data easy- whether you like to store a little or a lot. Tap the Downloads icon from within the ForeFlight Mobile app. The Download Manager allows you to select the types of items you want to download and store on your device. ForeFlight Mobile will contact our servers and display the available updates. If you download updates that are not yet effective (future data sets) they will automatically be used by the software when they become effective. The download manager lets you pause a download and resume it later.
    http://www.foreflight.com/ipad/faqs/#11

Maybe you are looking for