gaps in the planning

I guess it's something for a nice piece of sql analytic. Is this possible in 1 sql Rob?

I have a table that contains a list of items to be discussed in a meeting place, while in the same room. For some meetings that a speaker is invited, these meetings have a fixed start time. All meetings have a fixed duration in minutes. Days start with the opening and ending with close. How to generate the start times of the elements that have no defined fixed start time?

input data are as follows:

create table sschedule)
Article varchar2 (10)
, varchar2 (30) days
, fixed_start_time varchar2 (5)
number of minutes
);

insert into sschedule (agenda, minutes, days, fixed_start_time) values ('lunch', 'Mon, Mar, sea, game, Fri', 12:00 ', 60);
insert into sschedule (agenda, minutes, days, fixed_start_time) values ('a', "ma, fr", 10:00 ', 60);
insert into sschedule (agenda, minutes, days, fixed_start_time) values ('b', "Mon, sea", null, 120);
insert into sschedule (agenda, minutes, days, fixed_start_time) values ('opening', 'Mon, Mar, sea, game, Fri',' 08:55 ', 5);
insert into sschedule (agenda, minutes, days, fixed_start_time) values ("close', 'Mon, Mar, sea, game" 20:00 ', 5);
insert into sschedule (agenda, minutes, days, fixed_start_time) values ('close', 'Fri', 16:00 ', 5);
insert into sschedule (agenda, day, fixed_start_time, minutes) values ('c', 'Sun, sea, Fri", null, 20);
insert into sschedule (agenda, day, fixed_start_time, minutes) values (', 'Sun, sea, Fri", null, 20);
insert into sschedule (agenda, minutes, days, fixed_start_time) values ('dinner', "Mon, Mar, sea, game," 18:00 ', 60);
insert into sschedule (agenda, minutes, days, fixed_start_time) values ('e', 'Mar, game, Fri", null, 40);
insert into sschedule (agenda, minutes, days, fixed_start_time) values ('speech', 'Mon',' 09:00 ', 120);
insert into sschedule (agenda, minutes, days, fixed_start_time) values ("bye", "Fri", 14:00 ', 120);
insert into sschedule (agenda, minutes, days, fixed_start_time) values ('f', 'Mar, game, Fri", null, 40);
insert into sschedule (agenda, minutes, days, fixed_start_time) values ('g', "Mon, sea", null, 120);

on Friday, this gives:
MINUTES OF FIXED POINT
---------- ----- ----------
opening at 08:55 5
at 10:00 60
lunch from 12:00 60
to goodbye 14:00 120
close 16:00 5
c               20
d               20
e               40
f               40

e may start at 09:00 the gap between opening and a.
c can be started at 09:40 the gap between e and a.
f may start at 11:00 the gap between an and the lunch.
d may start at 11:40 the gap between the f and the lunch.

most combinations are very legal, as long as the fixed_start_times are in the spotlight.
How can this list be generated in 1 sql?
When one day becomes overloaded elements that fall must get something like "does not fit" to signal that it is too busy that day.

Thank you
Ronald.

Ronald Rood wrote:
Is this possible in 1 sql Rob?

Of course, Ronald ;-)

We didn't describe what algorithm to use, so I used a very simple. It justs awards points at the beginning of the time slots open, the largest that those assigned first of all, for the larger gaps first.

SQL> with schedule_normalized as
  2  ( select item
  3         , cast(days as varchar2(3)) day
  4         , to_date(fixed_start_time,'hh24:mi') start_time
  5         , minutes
  6         , to_date(fixed_start_time,'hh24:mi')
  7           + numtodsinterval(minutes,'minute') end_time
  8      from sschedule
  9     model
 10           return updated rows
 11           partition by (item,fixed_start_time,minutes)
 12           dimension by (0 i)
 13           measures (days)
 14           ( days [for i from 1 to regexp_count(days[0],',') + 1 increment 1]
 15             = regexp_substr(days[0],'[^,]+',1,cv(i))
 16           )
 17  )
 18  select item
 19       , day
 20       , to_char(st,'hh24:mi') start_time
 21       , to_char(et,'hh24:mi') end_time
 22       , minutes
 23       , fit
 24    from schedule_normalized
 25   model
 26         partition by (day)
 27         dimension by
 28         ( row_number() over
 29           (partition by day order by start_time nulls first, minutes desc) rn
 30         )
 31         measures
 32         ( item
 33         , start_time st
 34         , minutes
 35         , end_time et
 36         , lead(start_time) over
 37           (partition by day order by start_time) next_start_time
 38         , count(nvl2(start_time,null,1)) over (partition by day) cnt
 39         , 0 rn_with_largest_gap
 40         , row_number() over
 41           (partition by day order by start_time nulls first, minutes desc) rnm
 42         , cast(null as varchar2(11)) fit
 43         )
 44         rules iterate(1000) until (iteration_number + 1 = cnt[1])
 45         ( rn_with_largest_gap[1]
 46           = max(rnm) keep
 47             (dense_rank last order by next_start_time - et nulls first)[any]
 48         , fit[iteration_number+1]
 49           = case
 50               when max(next_start_time - et)[any]
 51                  < minutes[iteration_number+1]/24/60
 52               then 'doesn''t fit'
 53             end
 54         , st[iteration_number+1]
 55           = case
 56               when fit[iteration_number+1] is null
 57               then et[rn_with_largest_gap[1]]
 58             end
 59         , et[iteration_number+1]
 60           = case
 61               when fit[iteration_number+1] is null
 62               then et[rn_with_largest_gap[1]]
 63                    + numtodsinterval(minutes[iteration_number+1],'minute')
 64             end
 65         , next_start_time[iteration_number+1]
 66           = case
 67               when fit[iteration_number+1] is null
 68               then next_start_time[rn_with_largest_gap[1]]
 69             end
 70         , next_start_time[rn_with_largest_gap[1]]
 71           = case
 72               when fit[iteration_number+1] is not null
 73               then next_start_time[rn_with_largest_gap[1]]
 74             end
 75         )
 76   order by decode(day,'mon',1,'tue',2,'wed',3,'thu',4,'fri',5)
 77       , start_time
 78  /

ITEM       DAY START END_T    MINUTES FIT
---------- --- ----- ----- ---------- -----------
opening    mon 08:55 09:00          5
keynote    mon 09:00 11:00        120
d          mon 11:00 11:20         20
lunch      mon 12:00 13:00         60
g          mon 13:00 15:00        120
b          mon 15:00 17:00        120
diner      mon 18:00 19:00         60
c          mon 19:00 19:20         20
close      mon 20:00 20:05          5
opening    tue 08:55 09:00          5
a          tue 10:00 11:00         60
lunch      tue 12:00 13:00         60
f          tue 13:00 13:40         40
e          tue 13:40 14:20         40
diner      tue 18:00 19:00         60
close      tue 20:00 20:05          5
opening    wed 08:55 09:00          5
g          wed 09:00 11:00        120
lunch      wed 12:00 13:00         60
b          wed 13:00 15:00        120
d          wed 15:00 15:20         20
c          wed 15:20 15:40         20
diner      wed 18:00 19:00         60
close      wed 20:00 20:05          5
opening    thu 08:55 09:00          5
lunch      thu 12:00 13:00         60
e          thu 13:00 13:40         40
f          thu 13:40 14:20         40
diner      thu 18:00 19:00         60
close      thu 20:00 20:05          5
opening    fri 08:55 09:00          5
d          fri 09:00 09:20         20
c          fri 09:20 09:40         20
a          fri 10:00 11:00         60
f          fri 11:00 11:40         40
lunch      fri 12:00 13:00         60
e          fri 13:00 13:40         40
bye        fri 14:00 16:00        120
close      fri 16:00 16:05          5

39 rijen zijn geselecteerd.

And an example with elements that do not match:

SQL> insert into sschedule (item,days, fixed_start_time, minutes) values ('z', 'mon',null, 240);

1 rij is aangemaakt.

SQL> with schedule_normalized as
  2  ( select item
  3         , cast(days as varchar2(3)) day
  4         , to_date(fixed_start_time,'hh24:mi') start_time
  5         , minutes
  6         , to_date(fixed_start_time,'hh24:mi')
  7           + numtodsinterval(minutes,'minute') end_time
  8      from sschedule
  9     model
 10           return updated rows
 11           partition by (item,fixed_start_time,minutes)
 12           dimension by (0 i)
 13           measures (days)
 14           ( days [for i from 1 to regexp_count(days[0],',') + 1 increment 1]
 15             = regexp_substr(days[0],'[^,]+',1,cv(i))
 16           )
 17  )
 18  select item
 19       , day
 20       , to_char(st,'hh24:mi') start_time
 21       , to_char(et,'hh24:mi') end_time
 22       , minutes
 23       , fit
 24    from schedule_normalized
 25   model
 26         partition by (day)
 27         dimension by
 28         ( row_number() over
 29           (partition by day order by start_time nulls first, minutes desc) rn
 30         )
 31         measures
 32         ( item
 33         , start_time st
 34         , minutes
 35         , end_time et
 36         , lead(start_time) over
 37           (partition by day order by start_time) next_start_time
 38         , count(nvl2(start_time,null,1)) over (partition by day) cnt
 39         , 0 rn_with_largest_gap
 40         , row_number() over
 41           (partition by day order by start_time nulls first, minutes desc) rnm
 42         , cast(null as varchar2(11)) fit
 43         )
 44         rules iterate(1000) until (iteration_number + 1 = cnt[1])
 45         ( rn_with_largest_gap[1]
 46           = max(rnm) keep
 47             (dense_rank last order by next_start_time - et nulls first)[any]
 48         , fit[iteration_number+1]
 49           = case
 50               when max(next_start_time - et)[any]
 51                  < minutes[iteration_number+1]/24/60
 52               then 'doesn''t fit'
 53             end
 54         , st[iteration_number+1]
 55           = case
 56               when fit[iteration_number+1] is null
 57               then et[rn_with_largest_gap[1]]
 58             end
 59         , et[iteration_number+1]
 60           = case
 61               when fit[iteration_number+1] is null
 62               then et[rn_with_largest_gap[1]]
 63                    + numtodsinterval(minutes[iteration_number+1],'minute')
 64             end
 65         , next_start_time[iteration_number+1]
 66           = case
 67               when fit[iteration_number+1] is null
 68               then next_start_time[rn_with_largest_gap[1]]
 69             end
 70         , next_start_time[rn_with_largest_gap[1]]
 71           = case
 72               when fit[iteration_number+1] is not null
 73               then next_start_time[rn_with_largest_gap[1]]
 74             end
 75         )
 76   order by decode(day,'mon',1,'tue',2,'wed',3,'thu',4,'fri',5)
 77       , start_time
 78  /

ITEM       DAY START END_T    MINUTES FIT
---------- --- ----- ----- ---------- -----------
opening    mon 08:55 09:00          5
keynote    mon 09:00 11:00        120
c          mon 11:00 11:20         20
lunch      mon 12:00 13:00         60
z          mon 13:00 17:00        240
diner      mon 18:00 19:00         60
d          mon 19:00 19:20         20
close      mon 20:00 20:05          5
b          mon                    120 doesn't fit
g          mon                    120 doesn't fit
opening    tue 08:55 09:00          5
a          tue 10:00 11:00         60
lunch      tue 12:00 13:00         60
e          tue 13:00 13:40         40
f          tue 13:40 14:20         40
diner      tue 18:00 19:00         60
close      tue 20:00 20:05          5
opening    wed 08:55 09:00          5
b          wed 09:00 11:00        120
lunch      wed 12:00 13:00         60
g          wed 13:00 15:00        120
c          wed 15:00 15:20         20
d          wed 15:20 15:40         20
diner      wed 18:00 19:00         60
close      wed 20:00 20:05          5
opening    thu 08:55 09:00          5
lunch      thu 12:00 13:00         60
e          thu 13:00 13:40         40
f          thu 13:40 14:20         40
diner      thu 18:00 19:00         60
close      thu 20:00 20:05          5
opening    fri 08:55 09:00          5
c          fri 09:00 09:20         20
d          fri 09:20 09:40         20
a          fri 10:00 11:00         60
f          fri 11:00 11:40         40
lunch      fri 12:00 13:00         60
e          fri 13:00 13:40         40
bye        fri 14:00 16:00        120
close      fri 16:00 16:05          5

40 rijen zijn geselecteerd.

Groet,
Rob.

Published by: Rob van Wijk on 17-dec-2008 23:59

Removed a useless measure x

Tags: Database

Similar Questions

  • How to fill a gap in the UK?

    Greetings.  I'm working on a project of Garageband and I was wondering how we can bridge a gap between the two tracks.  I cut a part of the end of a runway and I want to connect it to the next track without changing all its place.  Hope it makes sense.  I could just find an answer to my research.  Thank you very much.

    There are different ways to do you project:

    Suppose that bar 15-17 is the range that you want to cut (bridge)

    Manually move

    Make sure that all parts are cut at bar 17. Now select all regions beyond this 17 bar and drag them to bar 15 as an entire selection

    Markers of the arrangement

    A more elegant solution is to the Arrangement of markers (follow ➤ display Arrangement track). However, this technique requires that you know how to use them. In the screenshot, I created a marker of Arrangement (named 'X') for the section I want to cut out (bar 15-17). If I delete this marker of Arrangement (select this Arrangement marker and press the delete key), that 'time' section is cut, which means that all regions after 17 bar are moved two bars to the left (without having to first select regions).

    If there is any region at the bar 15-17, while the article is cut first by hitting the delete key, when you hit the delete command. Now you have to hit the delete key again and the "time" will be cut.

    Hope that helps

    Edgar Rothermich - LogicProGEM.com

    (Author of "Graphically improved manuals")

    http://DingDingMusic.com/manuals/

    "I could receive some form of compensation, financial or otherwise, my recommendation or link."

  • Can I rent a movie from iTunes and then see it on the plane?

    Can I rent a movie from iTunes and then see it on the plane?

    In principle Yes. See about renting movies from the iTunes Store - Apple Support. Pay attention to this section:

    To watch your movie when you are disconnected, as on a flight from the airline where there is a Wi - Fi connection:

    • Download the whole movie before going offline.
    • Press play to start watching. The 24 hour timer starts even if you are offline.

    You may want to download rented movies before the day of your trip to make sure you have the time to download all the content.

    TT2

  • I will be visiting China and want to download movies to watch on the plane of Air China. I would like to download to a memory stick, so I can play the movies via my Kingston 5 in 1 for my Ipad.

    I will be visiting China and want to download movies to watch on the plane of Air China. I would like to download to a memory stick, so I can play the movies via my Kingston 5 in 1 for my Ipad.

    Chances are that will not work.

    First of all, your movies will have DRM on them which prohibit generally just put the files anywhere. And, unfortunately, most of the USB drives do not work plugged into the iPad. Most triggers a warning 'unit wants too much power. and if they don't 'make the files on the disk must be formatted to imitate a card camera to mainly use the photos app to "fool" the iPad by seeing the files. (in a folder called DCIM and with file names exactly 8 characters)

    If you are unable to get this to work, you can't watch off the stick (personally if you try I would try a SD card with the card camera adapter). You must import the file on the iPad and then watch it and delete it.

    That works for homemade video files, however rented downloaded movies usually have digital rights management on them that ban you placed on a file or reading them.

    There are devices like the Kingston WiDrive, which makes a localized wifi hotspot you connect your iPad to then disseminate content from there. However, it takes some experience since you can have the technology part down but may or may not be able to move the files. (I only download content from itunes so I can't say for sure if it works or not)

  • Gap at the beginning of the XY graph?

    Hey there,

    It's basically the way I learned to build graphs XY. Works perfectly fine, with the exception of the gap at the beginning which is of variable size that changes with the time, but never goes away. Can someone tell me where it comes from and perhaps how get rid of?

    Good day.

    Its there because of the way the x axis is scaling. You have turned on AutoScaling? Is loose or off?

    Mike...

  • [Bug]? Hypertrend attracts 'False' gaps in the data

    Hello

    I noticed Hypertrend drawing of gaps in the data (when it was actually data). This can be confirmed when you zoom in on the data. Is this a known problem, or is there no solution to workaround/configuration? The images are taken from Hypertrend in LabVIEW, but we saw in MAX too.

    See you soon

    -JG

    Here are some previous discussions on the subject...

    http://forums.NI.com/T5/real-time-measurement-and/distributed-system-manager-historical-trend/m-p/99...

    Also see the attachment for a video of Jing of the problem.  This happens in DSM 2009 and 2010 and on several machines.

    Here is the final result after much rangling with OR:

    From: Mark Black [mailto:[email protected]]
    Sent: Thursday, January 21, 2010 16:53
    To: Sachs, Michael a. (MSFC-ET30) [Intelligent Systems]
    CC: Roger Hebert
    Subject: Re: questions of DSM

    Hi Mike,.

    We do not have a CAR for the same problem (#178809), but this is a general CAR for these types of Hypertrend issues of drawing that matches your case in. This bug is not currently targeted to be fixed for the SP1, but I got in touch with our team of development of Shanghai an update.  Have you seen this problem on several different systems?  Have you seen this problem with plots that are not related to your GPS synchronized cRIO?

    Thank you
    Black mark
    Product Support Engineer - LabVIEW R & D
    National Instruments
    [email protected]
    (512) 683-8929

  • Microsoft abandoned the plan to release the local deployment of Hadoop Isotope for Windows?

    indicates references to installation on site barred.
    Can you get it someone please let me know if Microsoft has dropped the plan for services of Hadoop for Windows principle?

    Hello

    The question you have posted is better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.

    http://social.technet.Microsoft.com/forums/en-ZW/category/windowsazureplatform

    I hope this helps.

  • No pilot of the plane have been found.

    No pilot of the plane have been found. Make sure that the installation media contains the correct driver, and then click OK.

    Hi CraigKeller,

    Please see the thread with a similar problem and fix possible:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_install/no-device-drivers-were-found-when-trying-to/5b105b56-a0cc-441b-8559-ca5feac9105a

    I hope this helps!

  • U2415, around the gap between the Windows desktop and the edge of the monitor (bezel)

    Hello

    I have a Dell Ultrasharp U2415. I've read all the FAQS and I know I have to perform the SUBMISSION, but before doing so, I just want to know if it is normal to have a gap between the Windows desktop and the edge of the screen. If the Windows desktop is not covering or fill the entire screen. There all around the smaller than a 1/4 "gap between the edge of the windows desktop on the edge of the bezel of the monitor, and this model has almost no bezel. The graphics settings in Windows 10 are set to use the native resolution of 1920 x 1200 monitor. I tried with different computers (all windows 10), and the drivers are up to date. The monitor is connected via HDMI since I don't have portable computers not with DP interfaces. Laptop computers have Intel and ATI video cards. I have check the put option to scale on the video card software and it is set to 100%. So, is this gap normal? Is the edge Office Windows 10 supposed to touch the physical edge of monitors?  If the gap is not normal, I will perform the integrated test.

    TIA!

    Based on the YouTube comments, which seems to be normal. "But you must run the APPLICATION to see if the"smaller than 1/4"gap" appears. If Yes, then we can say that it is normal. If this is not the case, then some settings of the operating system is the culprit.

  • is it possible to draw routes on the plan?

    I want to make a function that can draw routes based on all geopoints in the MapView. But I did not understand how to do this. Anyone know it? Thank you very much.

    I found an alternative solution. Although he can't take the road on the plan as the Android development, it can call RouteMapInvoker.

    http://developer.BlackBerry.com/Cascades/reference/bb__platform__routemapinvoker.html

  • Windows Backup & restore leaves gaps in the backup period date ranges

    I noticed that backup & restore leaves gaps in the date ranges displayed on the screen of backup periods under the function to manage the space.  This means that files change during the interval periods have not been saved?  For example, the screen shows currently backups and the following periods:

    Jan 26: 12-18 Mar, 12 GB 10.40

    Apr 04, 12-13 Apr, 12 GB 19.62

    27 April, 12-27 Apr, 12 GB 05.16

    May 06,12 - May 06,12 02.41 GB

    May 27.12 - 17 Jun, 12 GB 03.41

    What is the importance of gaps?

    How can I tell that B & R is fully backup all files that changed since the last backup run?

    How can I varify the 1st backup is a backup full?

    How can I varify that the system image backup is up-to-date?

    I save approximately once a week to a USB external hard drive. I use options "Include a system image" and "Let me choose" to select the files and have selected the option 'keep only the last frame system & minimize the space used '.

    Hello

    Backups are created in sets called backup periods. To maximize your disk space, Windows backup backup all folders selected, the first time it's run and then it only backs up files that are new or have been modified since the last backup was made. Periodically, Windows creates a new, full backup. Each full backup is called in a backup. When you view your backups of files, you can see all the backup periods with date ranges. If you decide to delete backups of files, you should always keep the most recent backup of the file.

    Reference:

    Should what backup settings I use to maximize my disk space? http://Windows.Microsoft.com/en-us/Windows7/what-backup-settings-should-I-use-to-maximize-my-disk-space

    Back up and restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/products/features/backup-and-restore

  • How to find why the plan amended

    We are using Oracle 11.2.0.3. In our production system, one of the SQL started using different plan_hash_value afternoon today. This increase has elapsed time to 1 + minutes rather than the second. There was no change of system at the time. After rinsing shared_pool, the query takes again an optimal plan.

    V $ sql_shared_cursor, I have found no difference between the two cursor:

    Right when the plan has been slow:

    child cursor 0 during the performance was slow:

    < ChildNode > < ChildNumber > 0 < / ChildNumber > < ID > 34 < /ID > < reason > Rolling Invalidate window Exceeded (3) < / reason > < size > 2 x 4 < / size > < invalidation_window > 1452265834 < / invalidation_window > < ksugctm > 1452265953 < / ksugctm > < / ChildNode > < ChildNode > < ChildNumber > 0 < / ChildNumber > < ID > 34 < /ID > < reason > Rolling Invalidate window Exceeded) (3) < / reason > < size > 2 x 4 < / size > < invalidation_window > 1451915636 < / invalidation_window > < ksugctm > 1451915677 < / ksugctm > < / ChildNode > < ChildNode > < ChildNumber > 0 < / ChildNumber > < ID > 34 < /ID > < reason > Rolling Invalidate window Exceeded (2) < / reason > < size > 0 x 0 < / size > < details > already_processed < / details > < / ChildNode >

    v$ sql_shared_cursor. Reason when the plan was good:

    < ChildNode > < ChildNumber > 1 < / ChildNumber > < ID > 34 < /ID > < reason > Rolling Invalidate window Exceeded (3) < / reason > < size > 2 x 4 < / size > < invalidation_window > 1452529290 < / invalidation_window > < ksugctm > 1452529356 < / ksugctm > < / ChildNode > < ChildNode > < ChildNumber > 1 < / ChildNumber > < ID > 34 < /ID > < reason > Rolling Invalidate window Exceeded) (3) < / reason > < size > 2 x 4 < / size > < invalidation_window > 1451923704 < / invalidation_window > < ksugctm > 1451923763 < / ksugctm > < / ChildNode >

    Y at - it other reviews or newspapers that I can check to find out why an expensive plan chose?

    Is there an easy way that I can reproduce the expensive plan in lower environment.

    Thank you.

    This isn't a detail, I looked closely (yet), but it seems to me that if the information contained in the reason said you that the cursor was invalidated and re-optimized because someone (or automatic labor) had collected stats with the option "disable-online auto" and the window for rolling invalidation had finally expired. This suggests that (a) you is perhaps no chance with the particular game of the variable bind used immediately after the cursor has been invalidated or (b) your collection of statistics came to use a (particularly relevant for histograms) unlucky sample and your plans could change semi randomly each time you collect statistics.

    If it's (b) then rinse the shared pool and forcing re-optimizing would probably give you the wrong plan again.

    If it is (a) then rinse the shared pool (after throwing a bind variable) will allow you to link different test values and see if you get different plans.

    Step 1: get some peeked binds to both good and bad

    Solution temporary possible (if it's unlucky stats) - you could draw the previous set of stats history back to whatever the table in the query have their stats together very recently.  (Invalidation_window entry is PROBABLY the time-out period of cancellation in seconds since January 1, 1970 GMT; this, I think, will be 5 hours after the time of collecting stats (local) or possibly time to collecting statistics - I guess that 5 hours, but maybe it's that the invalidation of rolling decided to strike these sliders only one or two minutes after collection - but I don't know exactly what these numbers and why there are) differences of days between the two sliders).

    Concerning

    Jonathan Lewis

  • Download massive updated the planned orders in table msc_supplies

    Hi all

    I need your suggestion below requirement:

    For item RM, we planned order suggested that the CPHA; before releasing it, we want to change Date of implementation and the amount of order, then output the last modified scheduled released automatically to create the PR in purchases & Payables.

    In order to change the planned orders of RM, we export order planned the Workbench of the CPSA in the worksheet and then change dates, quantity, etc. in the worksheet. We want this change data to insert in the table msc_supplies automatically with manually intervene them and followed by releasing these planned automatically orders to create a PR

    We want to know how to achieve this requirement. We want to know the available custom hook and script to insert record in to msc_supplies.

    Have a great day.

    Thank you

    Sanngo

    Hello

    We expect steps below:

    (1) export the planned RM command suggested by the CPSA to the spreadsheet or report.

    (2) prepare the csv file with mandorty field as shown below in the table, i.e. date, quantity, etc. and format the data according to the custom intermediate table created.

    (3) custom concurrent requests created, which is used to locate the data file and upload the data to a custom intermediate table.

    (4) of the intermediate table that we are download the same data in the database MSC_SUPPLIES table (make a validation here check) in the same program. After that a manually scheduled commands added to the table of MSC_Supplies and can be found in the CPSA workbench.

    (4) in the same concurrent application of custom, call "automatic rejection" to release these records of the base table of msc_supplies, where release_flag a value of 1.

    We want to know the required fields need to be updated in the staging table custom and the base table:

    ORGANIZATION_CODE

    ORGANIZATION_ID

    ITEM_SEGMENTS

    INVENTORY_ITEM_ID

    ORDER_TYPE_TEXT

    ORDER_TYPE (5)

    New Date

    FIRM_DATE

    New quantity

    FIRM_QUANTITY

    Argument Plan_ID

    Transaction_id

    RELEASE_STATUS (1)

    SR_INSTANCE_ID

    You can test adding the manually planned adhoc decrees on Workbench CAWC namely, which are updating fields in the MSC_SUPPLIES table.

    Have a great day.

    Thank you

    Sannago

  • While trying to load and fly the plane in FSX, it shows the gray color.

    Original title: fsx support

    Hello everyone

    I have a problem with my flight simulator.

    whenever I load a plane to fly the plane I'm all gray and he won't show not all colors except gray

    so I hope that someone knows my problem

    Hello

    This issue may have caused due to video card driver or performance of game related issues. I would like to know some information about this problem so that we can help you further.

    1. What is the number of brand and model of the question?

    2. were you able to install this game successfully on your computer?

    3. do you get any error code or error message when starting the game?

    As a first step, I suggest you to check if the celebrity is compatible with Windows 8 or not. Here's the Windows Compatibility Center.

    Windows Compatibility Center:

    http://www.Microsoft.com/en-us/Windows/compatibility/CompatCenter/home

    I would suggest trying the following methods and check if it works for you.

    Method 1:

    Try to update the video card drivers from the Web site of the manufacturer of the computer or from Windows Update and check if it helps.

    See the following Microsoft Help article to update the driver.

    http://Windows.Microsoft.com/en-us/Windows-8/all-drivers

    Method 2:

    Try to reinstall the game once more and check if the problem persists. This is to check if the problem caused due to not install the game properly or not.

    Step 1: uninstall the game.

    See the following Microsoft Help article to uninstall or change a program.

    http://Windows.Microsoft.com/en-us/Windows-8/uninstall-change-program

    Step 2: install the game using the disc or the installation file you have.

    Please reply with the status of the issue so that we can better help you.

  • It is advisable to manage the Planning of Essbase studio?

    Hello

    It is advisable to manage the Planning, Essbase studio or planning 11.1.2.4 web UI?

    Now that planning and workspace 11.1.2.4 has the ability to manage and administer the planning, is there a reason to use Essbase Studio?

    I guess some may use Essbase Studio to extract of the report, but is - it useful for something else? Thank you.

    You would use Essbase Studio to manage the planning, it really has nothing to do with the planning and studio for pure Essbase databases.

    If you want to extract in planning, perhaps you should look at FDMEE

    See you soon

    John

Maybe you are looking for

  • Satellite Pro A200: How to create Dual boot; Vista & XP using the recovery CD

    I just bought a laptop Satellite Pro A200, which was supplied with the product for Vista and XP Recovery discs.The license specifically Vista also XP licenses.Can I set up a dual boot so that I can boot to Vista or XP? If so, how? I would also like a

  • Merger of two plots

    Hello I have a simple question, I have two plots now. I want to merge into a single parcel. I have included the code below, with highlight properly the graphics I want to merge. Is there a way to do it. > ?? Thank you

  • Printer HP Photosmart C7280 all-in-one takes a long time to implement

    Does anyone else have the problem of the printer takes so long to recalculate or set up?

  • my desk top

    When my office is at rest for about 10 minutes, she goes back to connect, how to extend that

  • Need help setting up a mail server on a pix 501.

    User access audit Password: Type help or '?' for a list of available commands. See the pixfirewall config #. : Saved : PIX Version 6.1 (4) ethernet0 nameif outside security0 nameif ethernet1 inside the security100 fixup protocol ftp 21 fixup protocol