Find the data based on week-end ,week-day

Hi,
Db : 11.2.0.1
We have the table LX_CPU_TRACK_DLY
desc LX_CPU_TRACK_DLY
Name Null? Type
SYSTEMDATE DATE
HOST_NAME VARCHAR2(50 CHAR)
USR_PRCT NUMBER(10,5)
SYS_PRCT NUMBER(10,5)
WAIT_PRCT NUMBER(10,5)
IDLE_PRCT NUMBER(10,5)
PHYS_CPU_USD NUMBER(10,5)
RUN_Q NUMBER(10,5)
I want to fetch data based on week end(sat,sun) ,week day(mon-fri) on systemdate column for entire month in two seperate query.
Any suggestions
Thanks
Edited by: 922884 on Nov 22, 2012 11:01 AM

Hi,
Thanks
ilm-426 21-11-2012 20:38:00
ilm-426 21-11-2012 20:39:00
ilm-426 21-11-2012 20:40:00
ilm-426 21-11-2012 20:41:00
ilm-426 21-11-2012 20:42:00
ilm-426 21-11-2012 20:43:00
ilm-426 21-11-2012 20:44:00
ilm-426 21-11-2012 20:45:00
ilm-426 21-11-2012 20:46:00
ilm-426 21-11-2012 20:47:00
ilm-426 21-11-2012 20:48:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-426 21-11-2012 20:49:00
ilm-426 21-11-2012 20:50:00
ilm-426 21-11-2012 20:51:00
ilm-426 21-11-2012 20:52:00
ilm-426 21-11-2012 20:53:00
ilm-426 21-11-2012 20:54:00
ilm-426 21-11-2012 20:55:00
ilm-426 21-11-2012 20:56:00
ilm-426 21-11-2012 20:57:00
ilm-426 21-11-2012 20:58:00
ilm-426 21-11-2012 20:59:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-426 21-11-2012 21:00:00
ilm-429 21-11-2012 20:01:00
ilm-429 21-11-2012 20:02:00
ilm-429 21-11-2012 20:03:00
ilm-429 21-11-2012 20:04:00
ilm-429 21-11-2012 20:05:00
ilm-429 21-11-2012 20:06:00
ilm-429 21-11-2012 20:07:00
ilm-429 21-11-2012 20:08:00
ilm-429 21-11-2012 20:09:00
ilm-429 21-11-2012 20:10:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-429 21-11-2012 20:11:00
ilm-429 21-11-2012 20:12:00
ilm-429 21-11-2012 20:13:00
ilm-429 21-11-2012 20:14:00
ilm-429 21-11-2012 20:15:00
ilm-429 21-11-2012 20:16:00
ilm-429 21-11-2012 20:17:00
ilm-429 21-11-2012 20:18:00
ilm-429 21-11-2012 20:19:00
ilm-429 21-11-2012 20:20:00
ilm-429 21-11-2012 20:21:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-429 21-11-2012 20:22:00
ilm-429 21-11-2012 20:23:00
ilm-429 21-11-2012 20:24:00
ilm-429 21-11-2012 20:25:00
ilm-429 21-11-2012 20:26:00
ilm-429 21-11-2012 20:27:00
ilm-429 21-11-2012 20:28:00
ilm-429 21-11-2012 20:29:00
ilm-429 21-11-2012 20:30:00
ilm-429 21-11-2012 20:31:00
ilm-429 21-11-2012 20:32:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-429 21-11-2012 20:33:00
ilm-429 21-11-2012 20:34:00
ilm-429 21-11-2012 20:35:00
ilm-429 21-11-2012 20:36:00
ilm-429 21-11-2012 20:37:00
ilm-429 21-11-2012 20:38:00
ilm-429 21-11-2012 20:39:00
ilm-429 21-11-2012 20:40:00
ilm-429 21-11-2012 20:41:00
ilm-429 21-11-2012 20:42:00
ilm-429 21-11-2012 20:43:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-429 21-11-2012 20:44:00
ilm-429 21-11-2012 20:45:00
ilm-429 21-11-2012 20:46:00
ilm-429 21-11-2012 20:47:00
ilm-429 21-11-2012 20:48:00
ilm-429 21-11-2012 20:49:00
ilm-429 21-11-2012 20:50:00
ilm-429 21-11-2012 20:51:00
ilm-429 21-11-2012 20:52:00
ilm-429 21-11-2012 20:53:00
ilm-429 21-11-2012 20:54:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-429 21-11-2012 20:55:00
ilm-429 21-11-2012 20:56:00
ilm-429 21-11-2012 20:57:00
ilm-429 21-11-2012 20:58:00
ilm-429 21-11-2012 20:59:00
ilm-429 21-11-2012 21:00:00
ilm-495 21-11-2012 20:01:00
ilm-495 21-11-2012 20:02:00
ilm-495 21-11-2012 20:03:00
ilm-495 21-11-2012 20:04:00
ilm-495 21-11-2012 20:05:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:06:00
ilm-495 21-11-2012 20:07:00
ilm-495 21-11-2012 20:08:00
ilm-495 21-11-2012 20:09:00
ilm-495 21-11-2012 20:10:00
ilm-495 21-11-2012 20:11:00
ilm-495 21-11-2012 20:12:00
ilm-495 21-11-2012 20:13:00
ilm-495 21-11-2012 20:14:00
ilm-495 21-11-2012 20:15:00
ilm-495 21-11-2012 20:16:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:17:00
ilm-495 21-11-2012 20:18:00
ilm-495 21-11-2012 20:19:00
ilm-495 21-11-2012 20:20:00
ilm-495 21-11-2012 20:21:00
ilm-495 21-11-2012 20:22:00
ilm-495 21-11-2012 20:23:00
ilm-495 21-11-2012 20:24:00
ilm-495 21-11-2012 20:25:00
ilm-495 21-11-2012 20:26:00
ilm-495 21-11-2012 20:27:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:28:00
ilm-495 21-11-2012 20:29:00
ilm-495 21-11-2012 20:30:00
ilm-495 21-11-2012 20:31:00
ilm-495 21-11-2012 20:32:00
ilm-495 21-11-2012 20:33:00
ilm-495 21-11-2012 20:34:00
ilm-495 21-11-2012 20:35:00
ilm-495 21-11-2012 20:36:00
ilm-495 21-11-2012 20:37:00
ilm-495 21-11-2012 20:38:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:39:00
ilm-495 21-11-2012 20:40:00
ilm-495 21-11-2012 20:41:00
ilm-495 21-11-2012 20:42:00
ilm-495 21-11-2012 20:43:00
ilm-495 21-11-2012 20:44:00
ilm-495 21-11-2012 20:45:00
ilm-495 21-11-2012 20:46:00
ilm-495 21-11-2012 20:47:00
ilm-495 21-11-2012 20:48:00
ilm-495 21-11-2012 20:49:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:50:00
ilm-495 21-11-2012 20:51:00
ilm-495 21-11-2012 20:52:00
ilm-495 21-11-2012 20:53:00
ilm-495 21-11-2012 20:54:00
ilm-495 21-11-2012 20:55:00
ilm-495 21-11-2012 20:56:00
ilm-495 21-11-2012 20:57:00
ilm-495 21-11-2012 20:58:00
ilm-495 21-11-2012 20:59:00
ilm-495 21-11-2012 21:00:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:01:00
ilm-500 21-11-2012 20:02:00
ilm-500 21-11-2012 20:03:00
ilm-500 21-11-2012 20:04:00
ilm-500 21-11-2012 20:05:00
ilm-251 21-11-2012 20:01:00
ilm-251 21-11-2012 20:02:00
ilm-251 21-11-2012 20:03:00
ilm-251 21-11-2012 20:04:00
ilm-251 21-11-2012 20:05:00
ilm-251 21-11-2012 20:06:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-251 21-11-2012 20:07:00
ilm-251 21-11-2012 20:08:00
ilm-251 21-11-2012 20:09:00
ilm-251 21-11-2012 20:10:00
ilm-251 21-11-2012 20:11:00
ilm-251 21-11-2012 20:12:00
ilm-251 21-11-2012 20:13:00
ilm-251 21-11-2012 20:14:00
ilm-251 21-11-2012 20:15:00
ilm-251 21-11-2012 20:16:00
ilm-251 21-11-2012 20:17:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-251 21-11-2012 20:18:00
ilm-251 21-11-2012 20:19:00
ilm-251 21-11-2012 20:20:00
ilm-251 21-11-2012 20:21:00
ilm-251 21-11-2012 20:22:00
ilm-251 21-11-2012 20:23:00
ilm-251 21-11-2012 20:24:00
ilm-251 21-11-2012 20:25:00
ilm-251 21-11-2012 20:26:00
ilm-251 21-11-2012 20:27:00
ilm-251 21-11-2012 20:28:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:06:00
ilm-500 21-11-2012 20:07:00
ilm-500 21-11-2012 20:08:00
ilm-500 21-11-2012 20:09:00
ilm-500 21-11-2012 20:10:00
ilm-500 21-11-2012 20:11:00
ilm-500 21-11-2012 20:12:00
ilm-500 21-11-2012 20:13:00
ilm-500 21-11-2012 20:14:00
ilm-500 21-11-2012 20:15:00
ilm-500 21-11-2012 20:16:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:17:00
ilm-500 21-11-2012 20:18:00
ilm-500 21-11-2012 20:19:00
ilm-500 21-11-2012 20:20:00
ilm-500 21-11-2012 20:21:00
ilm-500 21-11-2012 20:22:00
ilm-500 21-11-2012 20:23:00
ilm-500 21-11-2012 20:24:00
ilm-500 21-11-2012 20:25:00
ilm-500 21-11-2012 20:26:00
ilm-500 21-11-2012 20:27:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:28:00
ilm-500 21-11-2012 20:29:00
ilm-500 21-11-2012 20:30:00
ilm-500 21-11-2012 20:31:00
ilm-500 21-11-2012 20:32:00
ilm-500 21-11-2012 20:33:00
ilm-500 21-11-2012 20:34:00
ilm-500 21-11-2012 20:35:00
ilm-500 21-11-2012 20:36:00
ilm-500 21-11-2012 20:37:00
ilm-500 21-11-2012 20:38:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:39:00
ilm-500 21-11-2012 20:40:00
ilm-500 21-11-2012 20:41:00
ilm-500 21-11-2012 20:42:00
ilm-500 21-11-2012 20:43:00
ilm-500 21-11-2012 20:44:00
ilm-500 21-11-2012 20:45:00
ilm-500 21-11-2012 20:46:00
ilm-500 21-11-2012 20:47:00
ilm-500 21-11-2012 20:48:00
ilm-500 21-11-2012 20:49:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:50:00
ilm-500 21-11-2012 20:51:00
ilm-500 21-11-2012 20:52:00
ilm-500 21-11-2012 20:53:00
ilm-500 21-11-2012 20:54:00
ilm-500 21-11-2012 20:55:00
ilm-500 21-11-2012 20:56:00
ilm-500 21-11-2012 20:57:00
ilm-500 21-11-2012 20:58:00
ilm-500 21-11-2012 20:59:00
ilm-500 21-11-2012 21:00:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-251 21-11-2012 20:29:00
ilm-251 21-11-2012 20:30:00
ilm-251 21-11-2012 20:31:00
ilm-251 21-11-2012 20:32:00
ilm-251 21-11-2012 20:33:00
ilm-251 21-11-2012 20:34:00
ilm-251 21-11-2012 20:35:00
ilm-251 21-11-2012 20:36:00
ilm-251 21-11-2012 20:37:00
ilm-251 21-11-2012 20:38:00
ilm-251 21-11-2012 20:39:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-251 21-11-2012 20:40:00
ilm-251 21-11-2012 20:41:00
ilm-251 21-11-2012 20:42:00
ilm-251 21-11-2012 20:43:00
ilm-251 21-11-2012 20:44:00
ilm-251 21-11-2012 20:45:00
ilm-251 21-11-2012 20:46:00
ilm-251 21-11-2012 20:47:00
ilm-251 21-11-2012 20:48:00
ilm-251 21-11-2012 20:49:00
ilm-251 21-11-2012 20:50:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-251 21-11-2012 20:51:00
ilm-251 21-11-2012 20:52:00
ilm-251 21-11-2012 20:53:00
ilm-251 21-11-2012 20:54:00
ilm-251 21-11-2012 20:55:00
ilm-251 21-11-2012 20:56:00
ilm-251 21-11-2012 20:57:00
ilm-251 21-11-2012 20:58:00
ilm-251 21-11-2012 20:59:00
ilm-251 21-11-2012 21:00:00
ilm-425 21-11-2012 20:01:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:02:00
ilm-425 21-11-2012 20:03:00
ilm-425 21-11-2012 20:04:00
ilm-425 21-11-2012 20:05:00
ilm-425 21-11-2012 20:06:00
ilm-425 21-11-2012 20:07:00
ilm-425 21-11-2012 20:08:00
ilm-425 21-11-2012 20:09:00
ilm-425 21-11-2012 20:10:00
ilm-425 21-11-2012 20:11:00
ilm-425 21-11-2012 20:12:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:13:00
ilm-425 21-11-2012 20:14:00
ilm-425 21-11-2012 20:15:00
ilm-425 21-11-2012 20:16:00
ilm-425 21-11-2012 20:17:00
ilm-425 21-11-2012 20:18:00
ilm-425 21-11-2012 20:19:00
ilm-425 21-11-2012 20:20:00
ilm-425 21-11-2012 20:21:00
ilm-425 21-11-2012 20:22:00
ilm-425 21-11-2012 20:23:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:24:00
ilm-425 21-11-2012 20:25:00
ilm-425 21-11-2012 20:26:00
ilm-425 21-11-2012 20:27:00
ilm-425 21-11-2012 20:28:00
ilm-425 21-11-2012 20:29:00
ilm-425 21-11-2012 20:30:00
ilm-425 21-11-2012 20:31:00
ilm-425 21-11-2012 20:32:00
ilm-425 21-11-2012 20:33:00
ilm-425 21-11-2012 20:34:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:35:00
ilm-425 21-11-2012 20:36:00
ilm-425 21-11-2012 20:37:00
ilm-425 21-11-2012 20:38:00
ilm-425 21-11-2012 20:39:00
ilm-425 21-11-2012 20:40:00
ilm-425 21-11-2012 20:41:00
ilm-425 21-11-2012 20:42:00
ilm-425 21-11-2012 20:43:00
ilm-425 21-11-2012 20:44:00
ilm-425 21-11-2012 20:45:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:46:00
ilm-425 21-11-2012 20:47:00
ilm-425 21-11-2012 20:48:00
ilm-425 21-11-2012 20:49:00
ilm-425 21-11-2012 20:50:00
ilm-425 21-11-2012 20:51:00
ilm-425 21-11-2012 20:52:00
ilm-425 21-11-2012 20:53:00
ilm-425 21-11-2012 20:54:00
ilm-425 21-11-2012 20:55:00
ilm-425 21-11-2012 20:56:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:57:00
ilm-425 21-11-2012 20:58:00
ilm-425 21-11-2012 20:59:00
ilm-425 21-11-2012 21:00:00
ilm-428 21-11-2012 20:01:00
ilm-428 21-11-2012 20:02:00
ilm-428 21-11-2012 20:03:00
ilm-428 21-11-2012 20:04:00
ilm-428 21-11-2012 20:05:00
ilm-428 21-11-2012 20:06:00
ilm-428 21-11-2012 20:07:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-428 21-11-2012 20:08:00
ilm-428 21-11-2012 20:09:00
ilm-428 21-11-2012 20:10:00
ilm-428 21-11-2012 20:11:00
ilm-428 21-11-2012 20:12:00
ilm-428 21-11-2012 20:13:00
ilm-428 21-11-2012 20:14:00
ilm-428 21-11-2012 20:15:00
ilm-428 21-11-2012 20:16:00
ilm-428 21-11-2012 20:17:00
ilm-428 21-11-2012 20:18:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-428 21-11-2012 20:19:00
ilm-428 21-11-2012 20:20:00
ilm-428 21-11-2012 20:21:00
ilm-428 21-11-2012 20:22:00
ilm-428 21-11-2012 20:23:00
ilm-428 21-11-2012 20:24:00
ilm-428 21-11-2012 20:25:00
ilm-428 21-11-2012 20:26:00
ilm-428 21-11-2012 20:27:00
ilm-428 21-11-2012 20:28:00
ilm-428 21-11-2012 20:29:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-428 21-11-2012 20:30:00
ilm-428 21-11-2012 20:31:00
ilm-428 21-11-2012 20:32:00
ilm-428 21-11-2012 20:33:00
ilm-428 21-11-2012 20:34:00
ilm-428 21-11-2012 20:35:00
ilm-428 21-11-2012 20:36:00
ilm-428 21-11-2012 20:37:00
ilm-428 21-11-2012 20:38:00
ilm-428 21-11-2012 20:39:00
ilm-428 21-11-2012 20:40:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-428 21-11-2012 20:41:00
ilm-428 21-11-2012 20:42:00
ilm-428 21-11-2012 20:43:00
ilm-428 21-11-2012 20:44:00
ilm-428 21-11-2012 20:45:00
ilm-428 21-11-2012 20:46:00
ilm-428 21-11-2012 20:47:00
ilm-428 21-11-2012 20:48:00
ilm-428 21-11-2012 20:49:00
ilm-428 21-11-2012 20:50:00
ilm-428 21-11-2012 20:51:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-428 21-11-2012 20:52:00
ilm-428 21-11-2012 20:53:00
ilm-428 21-11-2012 20:54:00
ilm-428 21-11-2012 20:55:00
ilm-428 21-11-2012 20:56:00
ilm-428 21-11-2012 20:57:00
ilm-428 21-11-2012 20:58:00
ilm-428 21-11-2012 20:59:00
ilm-428 21-11-2012 21:00:00
ilm-495 21-11-2012 20:01:00
ilm-495 21-11-2012 20:02:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:03:00
ilm-495 21-11-2012 20:04:00
ilm-495 21-11-2012 20:05:00
ilm-495 21-11-2012 20:06:00
ilm-495 21-11-2012 20:07:00
ilm-495 21-11-2012 20:08:00
ilm-495 21-11-2012 20:09:00
ilm-495 21-11-2012 20:10:00
ilm-495 21-11-2012 20:11:00
ilm-495 21-11-2012 20:12:00
ilm-495 21-11-2012 20:13:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:14:00
ilm-495 21-11-2012 20:15:00
ilm-495 21-11-2012 20:16:00
ilm-495 21-11-2012 20:17:00
ilm-495 21-11-2012 20:18:00
ilm-495 21-11-2012 20:19:00
ilm-495 21-11-2012 20:20:00
ilm-495 21-11-2012 20:21:00
ilm-495 21-11-2012 20:22:00
ilm-495 21-11-2012 20:23:00
ilm-495 21-11-2012 20:24:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:25:00
ilm-495 21-11-2012 20:26:00
ilm-495 21-11-2012 20:27:00
ilm-495 21-11-2012 20:28:00
ilm-495 21-11-2012 20:29:00
ilm-495 21-11-2012 20:30:00
ilm-495 21-11-2012 20:31:00
ilm-495 21-11-2012 20:32:00
ilm-495 21-11-2012 20:33:00
ilm-495 21-11-2012 20:34:00
ilm-495 21-11-2012 20:35:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:36:00
ilm-495 21-11-2012 20:37:00
ilm-495 21-11-2012 20:38:00
ilm-495 21-11-2012 20:39:00
ilm-495 21-11-2012 20:40:00
ilm-495 21-11-2012 20:41:00
ilm-495 21-11-2012 20:42:00
ilm-495 21-11-2012 20:43:00
ilm-495 21-11-2012 20:44:00
ilm-495 21-11-2012 20:45:00
ilm-495 21-11-2012 20:46:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:47:00
ilm-495 21-11-2012 20:48:00
ilm-495 21-11-2012 20:49:00
ilm-495 21-11-2012 20:50:00
ilm-495 21-11-2012 20:51:00
ilm-495 21-11-2012 20:52:00
ilm-495 21-11-2012 20:53:00
ilm-495 21-11-2012 20:54:00
ilm-495 21-11-2012 20:55:00
ilm-495 21-11-2012 20:56:00
ilm-495 21-11-2012 20:57:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:58:00
ilm-495 21-11-2012 20:59:00
ilm-495 21-11-2012 21:00:00
1620 rows selected.
Thanks

Similar Messages

  • Is it possible to find the  table based on the Date ?

    Dear Team ,
    Is it possible to find the table based on the Date ?
    I have created an table ,But forgot the Table Name .
    Is it possible to find the Tables created on particular Date .
    Regards ,
    Augustine

    as date is record the time also below query will work.
    select * from user_objects
    where
    object_type = 'TABLE' and
    to_date(created,'DD-MON-YYYY') =to_date('<your date value in DD-MON-YYYY format>','DD-MON-YYYY');
    Edited by: shaileshM on Feb 24, 2010 9:39 PM

  • How to find the Data Type of a column

    Dear All,
    How to find the Data Type of a Column dynamically in oracle Form.
    Thanks and Regards,
    Fazil
    Edited by: user11334489 on Aug 25, 2012 9:06 PM

    hi,
    you can use get_item_property built-in
    eg:
    declare
       l_item VARCHAR2(10);
    begin
       l_item := Get_Item_Property('item_name',DATATYPE);
    end;

  • To find the date type fields in the row and validate those date fields

    TYPES : BEGIN OF TY_MARA,
              MATNR TYPE MARA-MATNR,
              ERSDA TYPE MARA-ERSDA,
              ERNAM TYPE MARA-ERNAM,
              LAEDA TYPE MARA-LAEDA,
              MTART TYPE MARA-MTART,
            END OF TY_MARA.
    DATA : it_mara TYPE STANDARD TABLE OF ty_mara,
          it_mara1 TYPE STANDARD TABLE OF ty_mara,
           wa_mara TYPE ty_mara.
    loop at it_mara into wa_mara.
      describe field wa_mara-ersda type c_data.
    if c_data eq 'D'.
      CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
        EXPORTING
          date                            = wa_mara-ersda
       EXCEPTIONS
         PLAUSIBILITY_CHECK_FAILED       = 1
         OTHERS                          = 2
      IF sy-subrc eq 0.
    wa_mara-ersda = '00000000'.
        append wa_mara to it_mara1.
        write :wa_mara-matnr,wa_mara-ersda.
        else.
            wa_mara-ersda = '00000000'.
        append wa_mara to it_mara1.
        write :wa_mara-matnr,wa_mara-ersda.
      ENDIF.
      endif.
      endloop.
    This issue regarding how to find the date type fields in the row and validate those date fields.If its not a valid date ,i have to assign initial value to that.
    I've tried that for single field using describe field.Please help me do that for all fields.

    Hi Sam,
     I believe we had discussed the same issue in the below thread. Can you please refer the below one?
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d93e16ff-c123-4b36-b60b-60ccd34f6ca7/calculate-time-differences-in-infopath?forum=sharepointcustomizationprevious
    If it's not helping you please let us know
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • How to split the data based on one column

    Dear All,
    I have the table data like this.
    type quantity revenue_mny count country
    a 10           10          2 India
    a 20          12          3 India
    b 30          15          1 India
    a 35          20          2 US
    b 20          10          1 US
    b 60          15          1 US
    I woulkd like to split the date based on type column.
    For each country, for Type "a" get the sum of revenue count quanity ans same for b
    and all shuld come in on row for each country.
    output should be like
    country revenue_mny(For a) quantity(for a) count(For a) revenue_mny(for b) quantity(for b) count(For b)
    India 22 30 5 15 30 1
    US 20 35 2 25 80 2
    I tried the below query . its not splittng the date for each country in one row.
    select country,
    sum(case when type='a') then revenue_mny else 0 end ) revenue_mny_a,
    sum(case when type='b' then revenue_mny else 0 end ) revenue_mny_b
    sum(case when type='a' then quantity else 0 end) quantity_a,
    sum(case when type='b' then quantity else 0 end) quantity_b from
    test
    group by country
    Please need your helo

    Like this?
    with t as
    select 'a' type, 10 quantity, 10 revenue_mny, 2 cnt, 'India' country from dual union all
    select 'a', 20, 12, 3, 'India' from dual union all
    select 'b', 30, 15, 1, 'India' from dual union all
    select 'a', 35, 20, 2, 'US' from dual union all
    select 'b', 20, 10, 1, 'US' from dual union all
    select 'b', 60, 15, 1, 'US' from dual
    select country,
    sum(case when type='a' then revenue_mny else 0 end ) revenue_mny_a,
    sum(case when type='a' then quantity else 0 end) quantity_a,
    sum(case when type='a' then cnt else 0 end) cnt_a,
    sum(case when type='b' then revenue_mny else 0 end ) revenue_mny_b,
    sum(case when type='b' then quantity else 0 end) quantity_b ,
    sum(case when type='b' then cnt else 0 end) cnt_b
    from t
    group by country;result:
    COUNTRY  REVENUE_MNY_A QUANTITY_A CNT_A REVENUE_MNY_B QUANTITY_B CNT_B
    India    22            30         5     15            30         1
    US       20            35         2     25            80         2Or you can do it with a decode instead of case. The result will be the same:
    with t as
    select 'a' type, 10 quantity, 10 revenue_mny, 2 cnt, 'India' country from dual union all
    select 'a', 20, 12, 3, 'India' from dual union all
    select 'b', 30, 15, 1, 'India' from dual union all
    select 'a', 35, 20, 2, 'US' from dual union all
    select 'b', 20, 10, 1, 'US' from dual union all
    select 'b', 60, 15, 1, 'US' from dual
    select country,
    sum(decode(type,'a',revenue_mny,0)) revenue_mny_a,
    sum(decode(type,'a',quantity,0)) quantity_a,
    sum(decode(type,'a',cnt,0)) cnt_a,
    sum(decode(type,'b',revenue_mny,0)) revenue_mny_b,
    sum(decode(type,'b',quantity,0)) quantity_b,
    sum(decode(type,'b',cnt,0)) cnt_b
    from t
    group by country;(I changed tablename from TEST to T and columnname from COUNT to CNT, because you should not use reserved words as tablename or columnname.)
    Edited by: hm on 09.10.2012 06:17

  • HT1414 how can i find the dates of the latest backup for iphone and ipad

    i cannot seem to find the dates of last  backup for my iphone or ipad..
    what buttons will lead me to the answer

    iTunes or iCloud?
    iTunes - in preferences > devices
    iCloud - from each device Settings > iCloud > Storage & Backup. The date last backed up will be below the Backup Now button.

  • Unable to find the data source in r/3  ECC 6.0 -  ( 0FI_GL_10 ) in RSA5

    Hi guys,
    I am unable to find the data source(0FI_GL_10) in RSA5.
    Presently I am using BI7.0 version with R/3 ECC 6.0.
    BI Patch level - 16.
    BI content Patch level - 8
    Thanks,
    Gupta

    Hi,
    Try Installing Application Component Hierarchies 
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b3/c30a0e9c44204eb596c6353c827d2e/frameset.htm
    Use RSA9 for this.
    Hope this helps.
    Thanks,
    JituK

  • How do I find the date my MacMini was manufactured?

    It seems to me I used to know how to find the date of mfg for Mac computers under About This Mac. Is this still true?
    -Joe

    A quick way it to just enter your serial # at > Klantenservice: Serienummers
    Another is at > How to identify Mac mini models

  • How do I find the date of my last vault update?

    How do I find the date of my last vault update? All but one picture in a folder is missing from my library. I want to go back in Time Machine to the date/time of my last update to restore the lost images.

    Thanks, Frank. I was trying to make it too complicated, wasn't I

  • How to find the data loaded from r/3 to bw

    hi
    how to find the data loaded from r/3 to bw is correct . i am not able to find which feild in the query is connected to which feild in the r/3 . where i am geting the data from r/3 . is there any process to find which feild  and table the data is comming from . plz help
    thanks in advance to u all

    Hi Veda ... the mapping between R/3 fields and BW InfoObjects should take place in Transfer Rules. Other transformation could take place in Update Rule.
    So you could proceed this way: look at InfoProvider Data Model and see if the Query does perform any calculation (even with Virtual keyfigures / chars). Than go back to Update Rules and search for other calculation / transformation. At least there are Tranfer Rule and eventually DataSource / Extraction Enhancements.
    As you can easily get there are many points where you have to look for ... it's a quite complex work but very usefull.
    Once you will have identified all mappings / transfromation see if BW data matchs R/3 (considering calculations ...)
    Good job
    GFV

  • I'm moving an internal hard drive from an old computer to a new computer.  How do I transfer the catalog data to my new computer so the Organizer of Photoshop Elements 6 will find the data on the hard that has been moved to the new computer?

    I'm moving an internal hard drive from an old computer to a new computer.  (My new compute runs Windows 8.1) How do I transfer the catalog data to my new computer so the Organizer of Photoshop Elements 6 will find the data on the hard that has been moved to the new computer?  Is this possible or do I have to use the procedure of copying the catalog along with the photos to a back up hard drive and then restore them on the new computer?

    The 'normal' procedure is to do a PSE organizer backup (not a copy or a backup from external tools) to an external drive, then a restore to the new location.
    The advantage is that you have a backup of both catalog and media files and you don't have all disconnected files, which would happen with external backup tools. Also, if you restore with a more recent elements version, the catalog will be automatically updated to the new format.
    The drawback in your situation is that you'll have either to overwrite all your files or restore to a custom location, creating a duplicate photo library (which supposes you have enough free space).
    It would be possible to simply use the organizer in the old PC to move the catalog to a new 'custom' folder just under your C: root drive. The catalog would be accessible once the drive will be installed in the new PC. Then you would have all files 'disconnected' due to the fact that all your media files are now on a drive with a different letter. Reconnecting a whole library is a hard job with PSE6, less so with PSE11/PSE12.
    If the idea of fiddling with the sqlite database with external sqlite manager tools is ok for you, I can describe the process more in detail. You only copy your catalog folder (as suggested above) to another location. Instead of trying the 'reconnection' way, you install the sqlite utility on the new computer. When the old drive is installed in the new computer, you simply edit a given record in the catalog database, catalog.psedb, and start the organizer with your copied catalog by simply double clicking the 'catalog.psedb' file.
    Even if the last solution is much, much quicker, I would still create a new PSE backup : you have never too much safety .

  • How to find the Date and Time of Modification of Column in aTable?

    Hi all,
    Do  you know how to find the Date and Time of Addition of Column to a Particular Table?.
    I know however, How to find the modification time of the Table. Using the below Query :
    Select Object_Name, to_Char(Last_DDL_TIME, 'DD-Mon-YYYY HH24:MI:SS') Last_DDL from User_Objects where Object_Type = 'TABLE';
    Object_Name
    Last_DDL
    Employee
    20-Aug-2013 09:23:03
    I wanted to know the Creation or Modification Date and Timestamp of all columns of Employee Table?. Is it possible at all. If possible, How to get it?.
    Regards,
    Bhaskar M

    I agree with you on that. Since its a development enviornment I can remove the column but that not my point here.
    My whole purpose it to know whether we get the Column's Creation or Modification DateTime.

  • How do I find the date and time stamp on pictures?

    How do I find the date and time stamp for my pictures?

    The Photos app will not do this but other apps will. iPhoto has an icon that when tapped with the photo open will show the EXIF information you are looking for. iPhoto is not free but you can purchase it in the App Store.
    There may be other photo apps that provide this information as well.
    PhotoForge2 will show the EXIF data as well as the GPS data if it is available.

  • HT5527 I HAVE OLD PHONES BACKED UP.  how do i find the data and recover or delete dups and junk

    I HAVE OLD iPHONES BACKED UP.  how do i find the data and recover or delete dups and junk

    You can't see the data inside the backup, and you can't restore just part of the data if that's what you're asking. To see the data you have to restore the entire backup.

  • I've to extract the data based on the sysdate...like today dd is 11,

    BM_PERF is the table name and
    BM_PERF_YR,BM_PERF_MONTH,BM_NOP_CT_1........BM_NOP_CT_31 are the column names.
    I've to extract the data based on the sysdate...like today dd is 11
    so i've to get data from BM_NOP_CT_11 and the column names changes dynamically based on the sysdate. don't use any procedures and functions.

    You could always pivot it into a more convenient form for querying:
    WITH t1 AS
         ( SELECT 2008 AS yr, 4 AS mnth
                , 20 AS dy1
                , 10 AS dy2
                , 15 AS dy3
                , 1  AS dy4
                , 17 AS dy5
                , 99 AS dy6
                , 55 AS dy7
                , 45 AS dy8
                , 33 AS dy9
                , 22 AS dy10
                , 74 AS dy11
                , 35 AS dy12
                , 62 AS dy13
                , 24 AS dy14
                , 85 AS dy15
           FROM dual )
       , t2 AS
         ( SELECT yr
                , mnth
                , sys.DBMS_DEBUG_VC2COLL
                  (dy1,dy2,dy3,dy4,dy5,dy6,dy7,dy8,dy9,dy10,dy11,dy12,dy13,dy14,dy15)
                  AS day_data
           FROM   t1 )
    SELECT t2.yr, t2.mnth, sys_op_ceg(t2.day_data,5) day_value
    FROM   t2;
            YR       MNTH DAY_VALUE
          2008          4 17
    1 row selected.Note that SYS_OP_CEG (first discovered by Padders) is undocumented and unsupported - for production code you'd need to pick the collection row using a WHERE clause, and for that you'd need a custom object and collection type with an attribute to hold the day number.
    Message was edited by:
    William Robertson
    ...like this:
    CREATE TYPE id_value_ot AS OBJECT
    ( id INTEGER, val NUMBER );
    CREATE TYPE id_value_tt AS TABLE OF id_value_ot ;
    WITH t1 AS
         ( SELECT 2008 AS yr, 4 AS mnth
                , 20 AS dy1
                , 10 AS dy2
                , 15 AS dy3
                , 1  AS dy4
                , 17 AS dy5
                , 99 AS dy6
                , 55 AS dy7
                , 45 AS dy8
                , 33 AS dy9
                , 22 AS dy10
                , 74 AS dy11
                , 35 AS dy12
                , 62 AS dy13
                , 24 AS dy14
                , 85 AS dy15
           FROM dual )
       , t2 AS
         ( SELECT yr
                , mnth
                , id_value_tt
                  ( id_value_ot(1,dy1)
                  , id_value_ot(2,dy2)
                  , id_value_ot(3,dy3)
                  , id_value_ot(4,dy4)
                  , id_value_ot(5,dy5)
                  , id_value_ot(6,dy6)
                  , id_value_ot(7,dy7)
                  , id_value_ot(8,dy8)
                  , id_value_ot(9,dy9)
                  , id_value_ot(10,dy10)
                  , id_value_ot(11,dy11)
                  , id_value_ot(12,dy12)
                  , id_value_ot(13,dy13)
                  , id_value_ot(14,dy14)
                  , id_value_ot(15,dy15) )
                  AS day_data
           FROM   t1 )
    SELECT yr, mnth, dd.val
    FROM   t2, TABLE(t2.day_data) dd
    WHERE  dd.id = 5;
            YR       MNTH        VAL
          2008          4         17
    1 row selected.

Maybe you are looking for