Select date values

Hi,
I have the incoming data in employee table like this, which i have given below.
The column datatype is date. But i want to retrieve how many incoming data are present in between 17:00:00 and 19:59:59 from 1st august to 20th august.
Incoming
01-AUG-2007 18:01:06
01-AUG-2007 21:01:27
02-AUG-2007 00:11:38
02-AUG-2007 03:01:13
02-AUG-2007 06:01:21
02-AUG-2007 09:01:25
02-AUG-2007 12:01:33
02-AUG-2007 15:01:21
02-AUG-2007 18:01:27
02-AUG-2007 21:01:19
02-AUG-2007 23:56:55
03-AUG-2007 03:01:08
03-AUG-2007 06:01:16
03-AUG-2007 09:01:29
03-AUG-2007 12:01:12
03-AUG-2007 15:01:19
03-AUG-2007 18:01:06
03-AUG-2007 21:01:10
04-AUG-2007 03:01:04
04-AUG-2007 06:01:10
04-AUG-2007 09:01:15
04-AUG-2007 12:01:18
04-AUG-2007 15:00:53
04-AUG-2007 18:01:16
04-AUG-2007 21:01:17
05-AUG-2007 03:01:14
05-AUG-2007 06:01:17
05-AUG-2007 09:01:05
05-AUG-2007 12:02:16
05-AUG-2007 15:01:15
05-AUG-2007 18:02:02
05-AUG-2007 21:01:48
06-AUG-2007 03:01:08
06-AUG-2007 06:01:44
06-AUG-2007 09:01:19
06-AUG-2007 12:01:26
06-AUG-2007 15:01:10
06-AUG-2007 18:00:59
06-AUG-2007 21:01:03
07-AUG-2007 03:01:29
07-AUG-2007 06:01:21
07-AUG-2007 09:01:35
07-AUG-2007 12:01:24
07-AUG-2007 15:01:12
07-AUG-2007 18:01:00
07-AUG-2007 21:01:04
08-AUG-2007 03:01:00
08-AUG-2007 06:01:02
08-AUG-2007 09:01:08
08-AUG-2007 12:01:10
08-AUG-2007 15:00:59
08-AUG-2007 18:01:01
08-AUG-2007 21:01:04
09-AUG-2007 03:01:09
09-AUG-2007 06:01:15
09-AUG-2007 09:01:35
09-AUG-2007 12:01:23
09-AUG-2007 15:01:13
09-AUG-2007 18:01:16
09-AUG-2007 21:05:06
10-AUG-2007 03:01:02
10-AUG-2007 06:01:04
10-AUG-2007 09:01:26
10-AUG-2007 12:01:45
10-AUG-2007 15:01:03
10-AUG-2007 18:01:05
10-AUG-2007 20:41:19
11-AUG-2007 03:01:01
11-AUG-2007 06:01:03
11-AUG-2007 09:01:06
11-AUG-2007 12:01:27
11-AUG-2007 15:01:15
11-AUG-2007 18:00:49
11-AUG-2007 21:01:06
12-AUG-2007 03:01:00
12-AUG-2007 06:01:05
12-AUG-2007 09:01:06
12-AUG-2007 12:01:48
12-AUG-2007 15:01:12
12-AUG-2007 18:01:00
12-AUG-2007 21:01:03
13-AUG-2007 03:01:10
13-AUG-2007 06:01:14
13-AUG-2007 09:01:17
13-AUG-2007 12:04:51
13-AUG-2007 13:22:50
13-AUG-2007 13:23:45
13-AUG-2007 15:01:23
13-AUG-2007 18:01:25
13-AUG-2007 21:01:14
13-AUG-2007 22:33:05
14-AUG-2007 01:03:10
14-AUG-2007 04:11:21
14-AUG-2007 07:10:54
14-AUG-2007 10:11:00
14-AUG-2007 13:11:03
14-AUG-2007 16:10:33
14-AUG-2007 19:10:37
14-AUG-2007 23:45:23
15-AUG-2007 03:01:04
15-AUG-2007 06:01:08
15-AUG-2007 09:01:12
15-AUG-2007 12:01:17
15-AUG-2007 15:01:20
15-AUG-2007 18:01:10
15-AUG-2007 21:01:15
16-AUG-2007 20:08:00
16-AUG-2007 20:08:41
17-AUG-2007 01:11:22
17-AUG-2007 03:00:45
17-AUG-2007 06:01:11
17-AUG-2007 09:01:24
17-AUG-2007 12:01:20
17-AUG-2007 15:01:40
17-AUG-2007 18:01:09
17-AUG-2007 21:01:14
18-AUG-2007 03:01:28
18-AUG-2007 06:01:15
18-AUG-2007 09:01:19
18-AUG-2007 12:01:23
18-AUG-2007 15:01:12
18-AUG-2007 18:01:15
18-AUG-2007 21:01:37
19-AUG-2007 05:36:40
19-AUG-2007 08:36:25
19-AUG-2007 11:36:14
19-AUG-2007 14:36:17
19-AUG-2007 17:36:21
19-AUG-2007 20:36:25
20-AUG-2007 03:00:54
20-AUG-2007 06:00:56
20-AUG-2007 09:01:15
20-AUG-2007 12:01:19
20-AUG-2007 15:01:23
20-AUG-2007 18:01:33
20-AUG-2007 21:01:40
21-AUG-2007 00:06:32
21-AUG-2007 03:01:06
21-AUG-2007 06:01:10
21-AUG-2007 09:02:17
21-AUG-2007 12:03:03
21-AUG-2007 15:01:08
21-AUG-2007 18:01:14
21-AUG-2007 21:01:16
22-AUG-2007 03:01:51
22-AUG-2007 06:01:19
22-AUG-2007 09:57:23
22-AUG-2007 12:01:30
22-AUG-2007 15:01:29
22-AUG-2007 18:01:59
22-AUG-2007 21:01:20
22-AUG-2007 23:59:41
23-AUG-2007 05:56:15
23-AUG-2007 08:56:25
23-AUG-2007 11:56:18
23-AUG-2007 14:56:08
23-AUG-2007 17:56:30
23-AUG-2007 20:56:17
23-AUG-2007 23:56:21
24-AUG-2007 05:55:58
24-AUG-2007 08:56:02
24-AUG-2007 11:56:32
24-AUG-2007 14:56:01
24-AUG-2007 17:55:49
24-AUG-2007 20:56:07
24-AUG-2007 23:56:11
25-AUG-2007 05:55:48
25-AUG-2007 08:55:52
25-AUG-2007 11:56:11
25-AUG-2007 14:56:00
25-AUG-2007 17:56:03
25-AUG-2007 20:55:51
25-AUG-2007 23:55:55
26-AUG-2007 05:55:47
26-AUG-2007 08:55:50
26-AUG-2007 11:56:08
26-AUG-2007 14:56:12
26-AUG-2007 17:56:16
26-AUG-2007 20:55:50
26-AUG-2007 23:56:09
27-AUG-2007 05:55:44
27-AUG-2007 08:56:03
27-AUG-2007 11:56:08
27-AUG-2007 14:56:19
27-AUG-2007 17:56:07
27-AUG-2007 20:56:06
27-AUG-2007 23:56:10
28-AUG-2007 05:55:48
28-AUG-2007 08:56:08
28-AUG-2007 11:56:11
28-AUG-2007 14:56:00
28-AUG-2007 17:55:48
28-AUG-2007 20:56:15
28-AUG-2007 23:56:18
29-AUG-2007 05:55:51
29-AUG-2007 08:56:11
29-AUG-2007 11:56:15
29-AUG-2007 14:56:22
29-AUG-2007 17:56:11
29-AUG-2007 20:56:16
29-AUG-2007 23:56:21
30-AUG-2007 05:56:11
30-AUG-2007 08:56:41
30-AUG-2007 11:56:17
30-AUG-2007 14:56:23
30-AUG-2007 17:56:26
30-AUG-2007 20:56:16
30-AUG-2007 23:56:20
31-AUG-2007 05:56:15
31-AUG-2007 08:56:19
31-AUG-2007 11:56:42
31-AUG-2007 14:56:29
31-AUG-2007 17:56:18
Thanks,
Desis

I think you try this:
select to_char(incoming, 'DD-MON-YYYY HH24:MI:SS') from (          
select to_date(     '01-AUG-2007 18:01:06'     , 'DD-MON-YYYY HH24:MI:SS') incoming from dual union all
select to_date(     '01-AUG-2007 21:01:27'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '02-AUG-2007 00:11:38'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '02-AUG-2007 03:01:13'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '02-AUG-2007 06:01:21'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '02-AUG-2007 09:01:25'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '02-AUG-2007 12:01:33'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '02-AUG-2007 15:01:21'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '02-AUG-2007 18:01:27'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '02-AUG-2007 21:01:19'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '02-AUG-2007 23:56:55'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '03-AUG-2007 03:01:08'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '03-AUG-2007 06:01:16'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '03-AUG-2007 09:01:29'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '03-AUG-2007 12:01:12'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '03-AUG-2007 15:01:19'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '03-AUG-2007 18:01:06'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '03-AUG-2007 21:01:10'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '04-AUG-2007 03:01:04'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '04-AUG-2007 06:01:10'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '04-AUG-2007 09:01:15'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '04-AUG-2007 12:01:18'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '04-AUG-2007 15:00:53'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '04-AUG-2007 18:01:16'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '04-AUG-2007 21:01:17'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '05-AUG-2007 03:01:14'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '05-AUG-2007 06:01:17'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '05-AUG-2007 09:01:05'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '05-AUG-2007 12:02:16'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '05-AUG-2007 15:01:15'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '05-AUG-2007 18:02:02'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '05-AUG-2007 21:01:48'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '06-AUG-2007 03:01:08'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '06-AUG-2007 06:01:44'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '06-AUG-2007 09:01:19'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '06-AUG-2007 12:01:26'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '06-AUG-2007 15:01:10'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '06-AUG-2007 18:00:59'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '06-AUG-2007 21:01:03'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '07-AUG-2007 03:01:29'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '07-AUG-2007 06:01:21'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '07-AUG-2007 09:01:35'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '07-AUG-2007 12:01:24'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '07-AUG-2007 15:01:12'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '07-AUG-2007 18:01:00'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '07-AUG-2007 21:01:04'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '08-AUG-2007 03:01:00'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '08-AUG-2007 06:01:02'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '08-AUG-2007 09:01:08'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '08-AUG-2007 12:01:10'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '08-AUG-2007 15:00:59'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '08-AUG-2007 18:01:01'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '08-AUG-2007 21:01:04'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '09-AUG-2007 03:01:09'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '09-AUG-2007 06:01:15'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '09-AUG-2007 09:01:35'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '09-AUG-2007 12:01:23'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '09-AUG-2007 15:01:13'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '09-AUG-2007 18:01:16'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '09-AUG-2007 21:05:06'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '10-AUG-2007 03:01:02'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '10-AUG-2007 06:01:04'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '10-AUG-2007 09:01:26'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '10-AUG-2007 12:01:45'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '10-AUG-2007 15:01:03'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '10-AUG-2007 18:01:05'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '10-AUG-2007 20:41:19'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '11-AUG-2007 03:01:01'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '11-AUG-2007 06:01:03'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '11-AUG-2007 09:01:06'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '11-AUG-2007 12:01:27'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '11-AUG-2007 15:01:15'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '11-AUG-2007 18:00:49'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '11-AUG-2007 21:01:06'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '12-AUG-2007 03:01:00'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '12-AUG-2007 06:01:05'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '12-AUG-2007 09:01:06'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '12-AUG-2007 12:01:48'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '12-AUG-2007 15:01:12'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '12-AUG-2007 18:01:00'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '12-AUG-2007 21:01:03'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '13-AUG-2007 03:01:10'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '13-AUG-2007 06:01:14'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '13-AUG-2007 09:01:17'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '13-AUG-2007 12:04:51'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '13-AUG-2007 13:22:50'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '13-AUG-2007 13:23:45'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '13-AUG-2007 15:01:23'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '13-AUG-2007 18:01:25'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '13-AUG-2007 21:01:14'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '13-AUG-2007 22:33:05'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '14-AUG-2007 01:03:10'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '14-AUG-2007 04:11:21'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '14-AUG-2007 07:10:54'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '14-AUG-2007 10:11:00'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '14-AUG-2007 13:11:03'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '14-AUG-2007 16:10:33'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '14-AUG-2007 19:10:37'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '14-AUG-2007 23:45:23'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '15-AUG-2007 03:01:04'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '15-AUG-2007 06:01:08'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '15-AUG-2007 09:01:12'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '15-AUG-2007 12:01:17'     , 'DD-MON-YYYY HH24:MI:SS') from dual union all
select to_date(     '15-AUG-2007 15:01:20'     , 'DD-MON-YYYY HH24:MI:SS') from dual
where to_char(incoming, 'hh24:mi:ss') between '17:00:00' and '19:59:59'
and to_char(incoming, 'dd-mon-yyyy') between '03-AUG-2007' AND '12-AUG-2007'
/

Similar Messages

  • SSRS Multi Value Parameter-- though multiple checkboxes ie values are selected ,data is retrieved only from first selected checkbox

    Hello Forum Members,
    I have a Multi Valued Parameter as text field.
    Input field Sale_Month is of the type Nvarchar in the Database and has 2014.01,2014.02,2014.05 etc.
    I can multi select the values but when I run the report only values from first check box are retrieved though I have data for all.
    Please advise me.
    Sqlquery9

    Go to tablix properties, under Filter tab make sure that the Sale_Month filter expression has "IN" operator. Also make sure that the value expression has =Parameter!Sale_Month.Value
    Regards, RSingh

  • Simple Question: How to search for a date value in SELECT

    Probabily a simple question, but in a SELECT statement, how do you do a search for a date value in the WHERE clause?
    example:
    Select * From Example
    Where date = 01/01/2001
    I know its not as simple as that, but what change has to occur to make it do what that example implies?
    Thanks In Advance.

    If you want to avoid the conversion part(to_date) you will need to specify the date in the format as ur nls date format.so the same query might not work if you change ur nls date format.
    so it is advisable to give it in general format.
    ie where date_col=to_date(01-01-2000,'dd-mm-yyyy')

  • BPC NW 10.0 - Data Manager Prompt changing from SELECTINPUT to SELECT cleared values

    Dear BPC Experts,
    We recently went from SP13 patch 4 to SP19 patch 1.  When we made changes in the PROMPT values in the Data Manager Organize>Package>Modify Script>PROMPT, we experienced different behavior switching from SELECTINPUT to SELECT in our development system than we did in our production environment.  In development, when we changed the value from SELECTINPUT to SELECT, the values entered for Variable name such as %SELECTION% in Property1 and "Select the members to CLEAR" in Property2, and %DIMS% remained.  However, when we changed from SELECTINPUT to SELECT in production system, the values for Variable Names and Properties were cleared out.  Does anyone know why in our developmet system values were kept but not in our production system during this type of activity?  I would like to understand the two different behaviors and what controlled it.  We prefer not to have the values for Properties clear.
    Thank you in advance for your assistance.
    Kind regards,
    Lisa

    Hi Vadim,
    Excellent point, I should have included images as that likely would have shown this odd behavior.
    When I made the changes in our development system to a package to switch from SELECTINPUT to SELECT the values outlined in the image below were retained for Varialbe Name, Property 2, and Property 3 after we applied the SP19 patch 1.
    When I made the same change in our system to a package in our production system after we applied the SP19 patch 1, the values for Varialbe Name, Property 2, and Property 3 were cleared per the image below.  The odd thing is that initially it looked like the values stayed.  It was only after you saved and went back in did you see that the values were gone.
    Any help in understanding this behavior change would be greatly appreciated.
    Thank you,
    Lisa

  • Return all data without selecting any value in query filter

    Hi,
    I created a document with query filters(prompt, LOV). But sometimes users don't want to select any value and just want to return all data in the report.
    I can't find a way to achieve this. Does anyone know how to implement this ?
    Thanks.

    Hi,
    you can modify the "select" statement for your LOV and add an additionaly keyword like "ALL" in your list of values. Then you can modify your where-clause to handle the "ALL" keyword.
    E.g. (<your condition>=@prompt(....) or 'ALL'=@prompt(......) )
    Regards,
    Stratos

  • Error while selecting date from external table

    Hello all,
    I am getting the follwing error while selecting data from external table. Any idea why?
    SQL> CREATE TABLE SE2_EXT (SE_REF_NO VARCHAR2(255),
      2        SE_CUST_ID NUMBER(38),
      3        SE_TRAN_AMT_LCY FLOAT(126),
      4        SE_REVERSAL_MARKER VARCHAR2(255))
      5  ORGANIZATION EXTERNAL (
      6    TYPE ORACLE_LOADER
      7    DEFAULT DIRECTORY ext_tables
      8    ACCESS PARAMETERS (
      9      RECORDS DELIMITED BY NEWLINE
    10      FIELDS TERMINATED BY ','
    11      MISSING FIELD VALUES ARE NULL
    12      (
    13        country_code      CHAR(5),
    14        country_name      CHAR(50),
    15        country_language  CHAR(50)
    16      )
    17    )
    18    LOCATION ('SE2.csv')
    19  )
    20  PARALLEL 5
    21  REJECT LIMIT UNLIMITED;
    Table created.
    SQL> select * from se2_ext;
    SQL> select count(*) from se2_ext;
    select count(*) from se2_ext
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04043: table column not found in external source: SE_REF_NO
    ORA-06512: at "SYS.ORACLE_LOADER", line 19

    It would appear that you external table definition and the external data file data do not match up. Post a few input records so someone can duplicate the problem and determine the fix.
    HTH -- Mark D Powell --

  • DECODE function to validate date value and sort the records

    Hi Friends,
    I am looking for some query which can give me the required output,
    I need to do this using SQL query only and I have tried using the MIN() and MAX() functions it was working fine with limited data, now after inserting the last record(in the below table) which has date for start_range and end_range in(mm/dd/yyyy hh24:mi:ss) format.
    Because the data type is VARCHAR2 if I am using the MIN() function it is sorting as a string value, hence the min date is incorrect. I tried using validating the value to date or non date and tried to using MIN() and MAX() functions using the DECODE function, I am getting this error "ORA-01840: input value not long enough for date format".
    select table_name,
    DECODE(substr(START_RANGE,3,1)||substr(START_RANGE,6,1)||substr(START_RANGE,11,1)||substr(START_RANGE,14,1)||substr(START_RANGE,17,1),'// ::',
    to_char(min(to_date(start_range,'mm/dd/yyyy hh24:mi:ss')),'MM/DD/YYYY HH24:MI:SS'),min(start_range)) MIN_RUNS_START_RANGE,
    DECODE(substr(END_RANGE,3,1)||substr(A.END_RANGE,6,1)||substr(END_RANGE,11,1)||substr(END_RANGE,14,1)||substr(END_RANGE,17,1),'// ::',
    to_char(max(to_date(END_RANGE,'mm/dd/yyyy hh24:mi:ss')),'MM/DD/YYYY HH24:MI:SS'),max(END_RANGE)) MAX_RUNS_END_RANGE
    from MY_TABLE
    GROUP BY table_name,
    (substr(START_RANGE,3,1)||substr(START_RANGE,6,1)||substr(START_RANGE,11,1)||substr(START_RANGE,14,1)||substr(START_RANGE,17,1)),
    (substr(END_RANGE,3,1)||substr(END_RANGE,6,1)||substr(END_RANGE,11,1)||substr(END_RANGE,14,1)||substr(END_RANGE,17,1))
    Can sombody please advise what is the best way I can query this data with the required output.
    The following are the source table and records and the out put records using the sql query.
    MY_TABLE
    TABLE_NAME(VARCHAR2),START_RANGE(VARCHAR2),END_RANGE(VARCHAR2)
    TABLE1,1000,10000
    TABLE2,ABCD,EEEE
    TABLE3,01/12/2010 00:00:00,12/31/2010 23:59:59
    TABLE1,10001,20000
    TABLE2,EEEF,GGGG
    TABLE3,01/01/2011 00:00:00,01/31/2011 23:59:59
    OUTPUT :
    TABLE_NAME,MIN(START_RANGE),MAX(END_RANGE)
    TABLE1,1000,20000
    TABLE2,ABCD,GGGG
    TABLE3,01/12/2010 00:00:00,01/31/2011 23:59:59
    Thanks
    Kalycs

    i also think this is a very bad table design ...
    but if you are not able to change it, you could split the select (date and non-date data) and combine the result with UNION like this:
    with t as
    SELECT 'TABLE1' table_name,'1000' start_range,'10000' end_range FROM dual UNION
    SELECT 'TABLE2','ABCD','EEEE' FROM dual UNION
    SELECT 'TABLE3','01/12/2010 00:00:00','12/31/2010 23:59:59' FROM dual UNION
    SELECT 'TABLE1','10001','20000' FROM dual UNION
    SELECT 'TABLE2','EEEF','GGGG' FROM dual UNION
    SELECT 'TABLE3','01/01/2011 00:00:00','01/31/2011 23:59:59' FROM dual
    SELECT table_name,
           TO_CHAR(MIN(TO_DATE(start_range, 'MM/DD/YYYY HH24:MI:SS')), 'MM/DD/YYYY HH24:MI:SS'),
           TO_CHAR(MAX(TO_DATE(end_range, 'MM/DD/YYYY HH24:MI:SS')), 'MM/DD/YYYY HH24:MI:SS')
    FROM t
    WHERE start_range LIKE '%/%/%:%:%'
    GROUP BY table_name
    UNION
    SELECT table_name,
           MIN(start_range),
           MAX(end_range)
    FROM t
    WHERE start_range NOT LIKE '%/%/%:%:%'
    GROUP BY
        table_name;
    TABLE_ MIN_VALUE           MAX_VALUE
    TABLE1 1000                20000
    TABLE2 ABCD                GGGG
    TABLE3 01/12/2010 00:00:00 01/31/2011 23:59:59

  • Load Rule validates, yet no data values modified

    The load rule worked on a server running an NT operating system with essbase version 6.1.3. I rebuilt the application on a server running W2k with an essbase version 6.1.6. The load rule validates on the new server. The load looks as if it is loading correctly. When I check out the log file, it shows a warning number 1003035 with a message stating "No data values modified by load of this data file." Any ideas??? Creating a new load rule from scratch did not work. My next plan of attack is to check out the actual txt file to see if anything looks odd.

    Have you got any record select or record reject statements in your rules?

  • Select-option value is not getting captured in at selection-screen on value

    In Selection screen , we have Select-option and  a parameter.
    Based on the values given in Select-option, the values of Parameter should get populate.
    To achieve this functionality,
    I  used  At selection u2013screen  on value request  for <parameter>  EVENT and 'F4IF_INT_TABLE_VALUE_REQUEST' Function Module.
    But the Select-option values are not getting captured in this event,unless u press Enter key.
    Is there any other way to achieve this functionality.
    Please Guide me.

    When you call function 'F4IF_INT_TABLE_VALUE_REQUEST'. make sure you send it the name of the screen variable - the F4IF_INT_TABLE_VALUE_REQUEST function calls DYNP_VALUES_READ itself if you tell it the name of your report, screen number, and the variable name... snippet below.
    Jonathan
      data:
        l_repid             type syrepid.
      l_repid = sy-repid.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          dynpprog         = l_repid
          dynpnr           = '1000'
          dynprofield      = 'S_FIELD-LOW'  "Select options - low value
    * etc

  • How to select several values from a user exit variable in a planning folder

    Hello,
    I have created a user exit variable for limiting the values only to which the user need to access.
    For a simulation part, it is then necessary for him to select several values from these values (not only one, and not all)
    But It seems in this case the user has only two possibilities :
    - keep all the values without any restriction
    - restrain the selection to only one value.
    It seems possible for the user to access to a multiple choice window, but this possibility doesn't seems to work : in all tests we did, only the first value was taken into account by BPS.
    If this method is not good do you know an other manner to permit the user to choice several values amongst a set of pre-selected  (because the original set is too important) values ?
    Thanks for your help.

    Hi Mayank,
    Thanks for your response, but I don't think it corresponds to my problem.
    I my case, I use a user exit variable to filter some data. It seems BPS offers the possibility to the user to select several values amongts the pre-selected values presented by the user exit variable, but it doesn't work. We can use a popup in which we enters the required values, but in final, only the first value is taken into account.
    I don't know if it is due to a BPS bug or if it is not a good solution in regard to BPS philosophy. In this case, the concerned caracteristic isn't in the header but in lead columns.
    I must present a solution to my client next monday, so I have not enough time to open an OSS message.
    An alternate solution should be interesting too.
    My need is to present to a user a selection of values amongst all values from an infoobject (the user exit variable seemed to be a good solution) and the user must have the possibility to select some values amongst these as filter.
    Regards

  • How to create a multi column list item and select these values from a LOV

    Hi all,
    My requirements are:
    1) create an LOV which holds the productno, productname and productprice fields (this is working)
    2) at run time, select one record from LOV and populate the list/grid with this selected record values of productno, productname and productprice fields, so we are showing them on the form in the form of a table/grid (not working)
    3) be able to select multiple records from LOV and be able to populate the list item with multiple records (not working)
    4) have two more columns in the list/grid, for productquatity and total price (not wokring)
    Please help me.
    how can i create this grid or list in oracle
    whats the possible way of acheiving this in oracle

    If you use a list item to display multiple columns then you'll need to use a fixed-width font. You can achieve a similar look with proportional fonts by using a normal block and setting the fields' bevel to 'None'.
    Each column in the LOV has a Return Item property (under Column Mapping Properties). Set this to a :block.item reference for each column to bring the data back into those referenced fields.
    You can't select multiple records from an LOV. For this you will need to create your own form. Check the help for system.mouse_button_modifiers to see how to respond to Ctrl+click and Shift+click.
    To add columns just modify the LOV's record group's query.

  • How to get selection criteria value in method IF_POWL_FEEDER~HANDLE_ACTION

    hi:
    As you know, we could get the leading selected POWL result data through parameter  c_selected and  c_selected in this method.
    but moreever, I want to get the selection criterai values in this method too just like the paramter i_selcrit_values in the method IF_POWL_FEEDER~GET_OBJECTS, how to do it?
    I have tried to define a attribute in my POWL class and save i_selcrit_values into this attribute in the method IF_POWL_FEEDERGET_OBJECTS, but in method IF_POWL_FEEDERHANDLE_ACTION, this attribute is still empty, so this workaround failed.
    thanks.

    hi guys:
    I have founded how to do it:
    METHOD get_selcrit.
      DATA ls_query TYPE powl_query_sty.
      DATA lt_selcrit TYPE rsparams_tt.
      FIELD-SYMBOLS <ls_selcrit> LIKE LINE OF lt_selcrit.
      CALL METHOD cl_powl_runtime_services=>get_current_query
        RECEIVING
          rs_query = ls_query.
      CALL METHOD cl_powl_query_accessor=>get_cached_selcrit
        EXPORTING
          i_query     = ls_query-query
        IMPORTING
          e_crit_para = lt_selcrit.
      READ TABLE lt_selcrit WITH KEY selname = iv_selname
        ASSIGNING <ls_selcrit>.
      IF <ls_selcrit> IS ASSIGNED.
        ev_selcrit = <ls_selcrit>-low.
      ENDIF.
    ENDMETHOD.

  • ALV Report how to display from and to date values in the header.

    I develoeped alv report . i want to display selection screen from and to date values in  top of page...
    any sample code pls guide me..

    You have to do many things...
    first find the selection details using the FM.
    RS_REFRESH_FROM_SELECTOPTIONS
    use the Blog to Align/populate the Header  from the selection table
    /people/community.user/blog/2007/05/07/alignment-of-data-in-top-of-page-in-alv-grid

  • Date Picker Doesn't Like Retrieved or Typed In Date Values

    I have more than one Region on a page, so I retrieve the column values for a region this way:
    (On LOad, Before Header, Once per Page Visit)
    BEGIN
    EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_FORMAT='''||:pick_date_format_mask||'''';
    FOR request_rec IN (SELECT dev_requested_ind,
    dev_requested_dttm,
    dev_analyst_seq,
    dev_completed_ind,
    dev_completed_dttm,
    dev_dba_seq,
    sit_requested_ind,
    sit_requested_dttm,
    sit_analyst_seq,
    sit_completed_ind,
    sit_completed_dttm,
    sit_dba_seq,
    uat_requested_ind,
    uat_requested_dttm,
    uat_analyst_seq,
    uat_completed_ind,
    uat_completed_dttm,
    uat_dba_seq,
    prd_requested_ind,
    prd_requested_dttm,
    prd_analyst_seq,
    prd_completed_ind,
    prd_completed_dttm
    FROM request_tbl
    WHERE request_seq = :p16_request_seq)
    LOOP
    :p16_dev_requested_ind := request_rec.dev_requested_ind;
    :p16_dev_requested_dttm := request_rec.dev_requested_dttm;
    :p16_dev_analyst_seq := request_rec.dev_analyst_seq;
    :p16_dev_completed_ind := request_rec.dev_completed_ind;
    :p16_dev_completed_dttm := request_rec.dev_completed_dttm;
    :p16_dev_dba_seq := request_rec.dev_dba_seq;
    :p16_sit_requested_ind := request_rec.sit_requested_ind;
    :p16_sit_requested_dttm := request_rec.sit_requested_dttm;
    :p16_sit_analyst_seq := request_rec.sit_analyst_seq;
    :p16_sit_completed_ind := request_rec.sit_completed_ind;
    :p16_sit_completed_dttm := request_rec.sit_completed_dttm;
    :p16_sit_dba_seq := request_rec.sit_dba_seq;
    :p16_uat_requested_ind := request_rec.uat_requested_ind;
    :p16_uat_requested_dttm := request_rec.uat_requested_dttm;
    :p16_uat_analyst_seq := request_rec.uat_analyst_seq;
    :p16_uat_completed_ind := request_rec.uat_completed_ind;
    :p16_uat_completed_dttm := request_rec.uat_completed_dttm;
    :p16_uat_dba_seq := request_rec.uat_dba_seq;
    :p16_prd_requested_ind := request_rec.prd_requested_ind;
    :p16_prd_requested_dttm := request_rec.prd_requested_dttm;
    :p16_prd_analyst_seq := request_rec.prd_analyst_seq;
    :p16_prd_completed_ind := request_rec.prd_completed_ind;
    :p16_prd_completed_dttm := request_rec.prd_completed_dttm;
    END LOOP;
    END;
    p16_dev_requested_dttm is defined as a Date Picker (use application format mask)
    The data source is a Date column called dev_requested_dttm. I haven't defined a format mask for it. (I have tried using &PICK_DATE_FORMAT_MASK..)
    The Application Format Mask is defined as a Subsitution String called
    PICK_DATE_FORMAT_MASK
    with a value of
    MM/DD/YYYY HH:MI AM
    The retrieved column value for p16_dev_requested_dttm looks fine, but when I click the date picker pushbutton, I get this message:
    Not Found
    The requested URL /pls/htmldb/wwv_flow_utilities.show_as_popup_calendar was not found on this server.
    Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at edwdev.dhhs.state.nh.us Port 7779
    I also get a line in my log file,
    /vg02lvol1/app/oracle/product/htmldb/Apache/Apache/logs/error_log.1133956800:
    [Wed Dec  7 16:23:43 2005] [error] [client 172.16.252.76] [ecid: 1133990623:172.17.96.35:1802:0:9870,0] mod_plsql: /pls/htmldb/wwv_flow_util
    ities.show_as_popup_calendar HTTP-404 ORA-01849: hour must be between 1 and 12\nORA-06512: at "FLOWS_020000.WWV_FLOW_UTILITIES", line 1801\n
    ORA-06512: at line 22\n
    This happens with both FireFox and Internet Explorer.
    Any ideas what's causing this?
    -F
    Message was edited by:
    Fred C Willingham

    Fred,
    Unfortunately, the answer is no to both of your questions.
    There is no way for you as a developer to control which date is highlighted in the popup calendar. It will always highlight the current day (if you're displaying a month that contains the current day). This is an interesting and prudent suggestion, and one which we'll consider for an upcoming release of HTML DB.
    With regards to your second point, that also is something we should consider for an upcoming release of HTML DB. This isn't impossible for us to do, it was just designed to work in the current fashion. If you look at the generated HTML for the Date Picker item on the page (not the popup calendar itself, but the page on which the item is rendered), we break out each element of the date value into discrete components. When we instead rely upon the user entered value, garbage or date values not conforming to the date format mask are easily entered. And the question is - what to do then? Raise an error immediately, still popup the calendar and show the current month, etc. So we've tried to be fairly strict about the date values and format masks for the popup calendar, hence the implementation you see.
    Thanks again for your comments.
    Joel

  • How to handle dbms_xmldom with no data values.(no_data_found error in dom)

    hi,
    i have below block,
    DECLARE
    doc dbms_xmldom.DOMDocument;
    node dbms_xmldom.DOMNode;
    elem dbms_xmldom.DOMElement;
    cur_node dbms_xmldom.DOMNode;
    root_elem_data dbms_xmldom.DOMElement;
    root_elem_tab dbms_xmldom.DOMElement;
    root_node_data dbms_xmldom.DOMNode;
    mode_elmn dbms_xmldom.DOMElement;
    mode_node dbms_xmldom.DOMNode;
    mode_text dbms_xmldom.DOMText;
    doc1 DBMS_XMLDOM.DOMDOCUMENT;
    root_node_data1 DBMS_XMLDOM.DOMNODE;
    child_document DBMS_XMLDOM.DOMDOCUMENT;
    child_rootnode DBMS_XMLDOM.DOMNODE;
    V_CLOB CLOB;
    v_doc CLOB;
    v_EMP CLOB;
    v_output_filename VARCHAR2(300) := 'SPOOL_DIR/'||'EMP_XML_FILE.xml';
    l_xmltype XMLTYPE;
    BEGIN
    doc := dbms_xmldom.newDOMDocument;
    node := dbms_xmldom.makeNode(doc);
    dbms_xmldom.setversion(doc, '1.0');
    dbms_xmldom.setCharset(doc, 'UTF8');
    elem := dbms_xmldom.createElement(doc, 'PartnerInfo');
    dbms_xmldom.setAttribute(elem,'xmlns','EMP');
    cur_node := dbms_xmldom.appendChild(node, dbms_xmldom.makeNode(elem));
    mode_elmn := dbms_xmldom.createElement(doc, 'EMPLOYEE');
    mode_node := dbms_xmldom.appendChild(cur_node,dbms_xmldom.makeNode(mode_elmn));
    BEGIN
    SELECT value(e) INTO l_xmltype
    FROM TABLE(XMLSequence(Cursor(SELECT * FROM EMP1 where EMPNO=7501))) e;
    child_document := DBMS_XMLDOM.newDOMDocument(l_xmltype);
    root_node_data1 := dbms_xmldom.importNode(doc,dbms_xmldom.makeNode(dbms_xmldom.getDocumentElement(child_document)),TRUE);
    root_node_data1 := DBMS_XMLDOM.appendChild(root_node_data, root_node_data1);
    EXCEPTION
    WHEN OTHERS THEN
    Dbms_Output.Put_Line('Error in SELECT stmt(UC_PARTNER_MS):::'||'error::'||SQLERRM);
    END;
    dbms_lob.createtemporary(v_doc, true);
    dbms_xmldom.writeToClob(doc,v_doc,'UTF8');
    v_EMP:= v_doc;
    dbms_xmldom.writeToFile(DOC,v_output_filename,'UTF8');
    dbms_xmldom.freeDocument(doc);
    --Dbms_Output.Put_Line('THE OUTPUT IS::'||V_EMP);
    EXCEPTION
    WHEN OTHERS THEN
    Dbms_Output.Put_Line('Error in SELECT stmt(UC_PARTNER_MS):::'||'error::'||SQLERRM);
    END;
    The xml file is 'EMP_XML_FILE.xml'
    <empno>U++kYmcVuGchxbh+++++++++++++++1+</empno>
    <empname>J</empname>
    suppose the empno 7501 is not available in our emp table,
    i got error
    ORA-03113: end-of-file on communication channel
    how to handle xmldom with no data values.
    by
    siva

    hi,
    please give the solution
    by
    siva

Maybe you are looking for

  • Creating Bookmarks in PDF Output

    I am going to be exporting my final InDesign document to PDF. I need to create bookmarks for the document because they are used to access topics in online help. I've attempted to do this by selecting Bookmarks in the export settings, with no results.

  • HOW CAN I CONNECT IPHONE 4 INTERNET TO MY PC USING USB CABLE

    HOW CAN I CONNECT MY IPHONE 4 INTERNET CONNECTION TO MY PC USING USB CABLE AND I HAVE DONE TETHERING IN MY PHONE AND ALSO DOWNLOADED ITUNES USING FLASH DRIVE AS I HAVE NO INTERNET CONNECTION IN MY PC AND IN MY PC THERE IS NO DETECTION OF ANY APPLE DE

  • Forms 9i variable assignment BUG

    Hello All, I've been working with Forms 9i for a while now and on my current form and I am experiencing very weird bugs. All bugs seem to have the same nature of an Assignment taking place where the bug will occur. My form is a block to block form ,

  • Sample code and tutorial for JSR188 (CC/PP) ?

    Hi there, I would be grateful if you could show me the way!!! :) Just some URL's would be find. I just want to learn how to use the JSR188 API. Thanks anyone, Stavros.K.

  • Firefox Looks Messed Up

    So I just bought a new computer, installed Windows 8 then installed Firefox. Upon loading it, this happens: http://imgur.com/BndEiGV I tried uninstalling then reinstalling and it didn't make any difference. I even tried to redownload it but still not