Maintenance task

Hi all, I had an interview two days ago but I couldn't solve it correctly, and I want you help me solve the part I couldnot solve.

There are two tables:

1 - master table for rooms with these data for example:

room_no

1

2

3

----------------

and a detail, one for the booking details:

res_no room_no

1 1 20-dec-2012

2 1 21-dec-2012

3 2 15-dec-2012

4 2 7-dec-2012

-------------------------------------------------------

the shape is a text element in the middle of the canvas has the month "dec."

and below, there is a block, that block is a non-database block in which I should get part numbers in the first text element that is 'possible' for example,

and a "31" for the days box, these boxes are not two database items, they are in the same block.

the task said that I have to recover the rooms reserved in the first text item and check the boxes for the days that the room is reserved.

for example,.

Number 1 in the table in the room is reserved in days 20 and 21

Number 2-the room is reserved in the days 15 and 7

so I could retrieve the numbers of rooms and check the check-box (20) and (21) number 1, the room

and check the box (15) and (7) room number 2.

How to do?

first problem, I can't name the squares with numbers, so I their alphanumeric name, like dy01, dy02 and so on.

If you can support me with a solution, please?

Thanks in advance

There are several solutions, others using a DB block and something like STRAGG or LISTAGG (which I prefer) and some with a non-db block. As you asked non-db-block, here is an example of code (not tested)

DECLARE
  CURSOR crReservations IS
    SELECT ROOM_NO,
           TO_CHAR(RESERVATION_DATE, 'DD') DAY_OF_DATE
      FROM RESERVATIONS
     ORDER BY ROOM_NO, RESERVATION_DATE;
  nLastRoom NUMBER;
BEGIN
  GO_BLOCK('RESERVATIONS');
  CLEAR_BLOCK(NO_VALIDATE);
  FOR rec IN crReservations LOOP
    IF nLastRoom IS NOT NULL THEN
      IF rec.ROOM_NO!=nLastRoom THEN
        -- new room-> new record
        NEXT_RECORD;
        nLastRoom:=rec.ROOM_NO;
      END IF;
    ELSE
      nLastRoom:=rec.ROOM_NO;
    END IF;
    -- Assume that the value for CHECKED is Y for the checkboxes
    COPY('Y', 'DY' || rec.DAY_OF_DATE);
  END LOOP;
END;

Tags: Oracle Development

Similar Questions

  • NetExtender error must perform maintenance tasks.  Does not work after giving permission to do so.  Just upgraded to El Capitan.

    I just upgraded to El Capitan.  I get the error message after following the notation in NetExtender: "NetExtender error must perform maintenance tasks.  You will need to enter your MAC administrator password in the next window. "After you type that in, it says it connects to NetExtender but then disconnects me.  This goes on and on.

    Having never heard of before NetExtender, I can't go on how you described in your post, and I must say, Macs need not third-party programs of 'maintenance' on them.  One thing I can say, is that before you upgrade your operating system, you should always make sure that all your applications, plug-ins, drivers, extensions, etc., are compatible with what you have upgraded to.  This could be part of the problem, this program should not be what I think it looks like.  You are running the most recent version, and the version is compatible with El Capitan?

  • Difficulty of broken desktop shortcuts and common system maintenance tasks

    error 0x80072f8f

    Hello

    1. Once you get this error message?
    2. have you made changes on the computer recently?

    Try the FixIt listed in the article below and check.
    Difficulty of broken desktop shortcuts and common system maintenance tasks
    http://support.Microsoft.com/mats/system_maintenance_for_windows/en-us

    I hope this helps.

  • HP Deskjet 2054A - no available maintenance task

    Windows 7 Ultimate - 32 bit

    When l open the HP Control Panel, only 4 available options-

    HP printer Assistant (which does nothing)

    See what's printing

    Setting preferences

    Customize your printer

    I saw another post about the deletion of the XMLCache folder, but it does not work!

    Even deleted everything and reinstalled from the Setup disk - nothing!

    How do l enter maintenance tasks then?

    I am hated for wasting money by installing another cartridge if I cannot even make a clean nozzle printing or alignment!

    Hell, would get today every day problems!

    Any bright ideas?

    Hello

    Uninstall the current HP software to record printer start menu that your software is outdated and a newer version available.

    After download and install the latest version of the software below and you should get all the features in the HP printer Assistant:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=Al-109407-2&cc=us&DLC=en&LC=en&OS=4062&product=5068690&sw_lang=

    Shlomi

  • What do "Run maintenance tasks" in Windows 7?

    what works has no task maintenance > troubleshooting Windows 7

    Hello sparty nave.
     
    It looks unused files and shortcuts that you can clean or remove so that your computer can run faster.
     

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • When I open the control panel and select system maintenance folder is empty. How to restore this file?

    Original title: maintenance missing system file

    When I open the control panel and select system maintenance folder is empty. How to restore this file? My support is also empty.

    Hello

    1. Were changes made to the software or hardware of the computer before the show?
    2. What backup you are referring to?

    Method 1:
    Visit the link below and run the Fixit.
    Difficulty of broken desktop shortcuts and common system maintenance tasks
     
    Method 2:
    Do a system restore and check. System restore allows you to use the computer from the date when it was working fine. Visit the link below.
    System Restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions
     
    Method 3:
    Run the System File Checker, visit the link below and follow the steps.
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
     
    After running the System File Checker visit the below mentioned link to analyze the logs.
    How to analyze the entries in the log file generating the program Checker (SFC.exe) resources of Microsoft Windows in Windows Vista

     
  • Image of task (0 x 80041321) in the backup settings is corrupted on Windows Vista

    Original title: can not save

    I want to back up my computer, but it won't because there is a picture of task (0 x 80041321) in the settings of backup that is corrupt. What to do now?

    Hi Lizbie,

    (1) if it works well before?

    (2) remember to make changes?

    Method 1: Run the fixit available in the link below and check if it makes a difference.

    Difficulty of broken desktop shortcuts and common system maintenance tasks


    Note:
    Fixit would attempt to recover bad sectors on the hard disk, in the course of this process there are chances of data loss from that particular area.

    Method 2: Re-set up backup - users have solved similar issue by following the steps below:

    (a) go to Task Scheduler (run taskschd.msc from a command prompt OR RUN dialog box)

    folder b) navigate under Task Scheduler Library-> Microsoft-> Windows-> Windows Backup

    (c) delete the automatic backup task

    (d) remove the job from the Windows backup Analyzer

    (e) try to re - set up backup

  • Operation failed. Validation of the backup task execution failed error message on startp

    Title: backup original validation task execution failed

    Receive message at next startup:

    Operation failed. Backup validation task execution failed. Description: Description of the scene see log operation for more details.

    I looked at the log of the operation and there were entries for each occurrence. Unable to determine anything else.

    Hi BobBianconi,

    (1) since when are you facing this problem?

    (2) what backup program do you use?

    It seems that you use non-Microsoft backup software. If this is true, you can check with the provider of software for known problems.

    The following steps can worth a try:

    Method 1: Run the fixit available in the link below for common system maintenance tasks.

    Difficulty of broken desktop shortcuts and common system maintenance tasks


    Note:
    Fixit would attempt to recover bad sectors on the hard disk, in the course of this process there are chances of data loss from that particular area.


    Method 2:
    activate the boot and then check if the problem persists

    Follow step 1 in the link below,
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Important: n ' forget not to put the computer to a normal startup follow step 7 in the link.

  • Cleaning and maintenance of registry Windows 7 to improve performance

    Original title: that is the command line for windows7 tool registry cleaner or maintenance?

    I use windows 7 64-bit os. I want to know is there any tool of command line for registry cleaner.

    Hi Tejas,

    Thanks for posting in the Microsoft Community Forums.

    According to the description, you want the tool command-line for the maintenance and cleaning of the Windows registry.

    Are you facing problems with the computer? If so, please explain to us in detail so that we can help you on the issue.

    I suggest you check out the links to check if this may help:

    Registry cleaners are needed?

    http://Windows.Microsoft.com/en-us/Windows7/are-registry-cleaners-necessary

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    For more information about the maintenance tasks to improve the performance of the computer:

    Optimize Windows 7 for better performance

    http://Windows.Microsoft.com/en-us/Windows7/optimize-Windows-7-for-better-performance

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss

    How to make a computer faster: 6 ways to speed up your PC

    http://www.Microsoft.com/atwork/maintenance/speed.aspx#fBid=97QYdW2XfTc

    Ways to improve your computer's performance

    http://Windows.Microsoft.com/en-CA/Windows7/ways-to-improve-your-computers-performance

    Slow PC? Optimize your computer for peak performance

    http://www.Microsoft.com/athome/Setup/optimize.aspx#fBid=HVhJmdoAiKy

    Let us know if you have questions about Windows in the future. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.

  • Maintenance in windows 8 always gets delayed

    Hello

    I have recently upgraded to windows 8 pro and very looking forward to the feature of automatic maintenance. Interview starts, but seems to be never complete I always get the message than automatic maintenance got delayed even if I leave the laptop (HP Envy) on without interaction and powers set high so no shutdown occurs. Any ideas what maintenance task want to run and did not complete?

    Advice and support are much appreciated.

    Best wishes

    Joachim

    Launch the task manually to resolve it.

    -With an administrator account, open Task Scheduler.

    -Go to the task: Microsoft-> Windows-> TaskScheduler-> regular maintenance.

    -Right click-> properties.

    -Configuration-> allows you to run the task manually (don't know the English label, is 1). If you click on I accept, the operation fails, you need to change anything else.

    -Conditions-> start task only... inactivity-> and set it to 1 minute. By default is 0, and it is an incorrect configuration of a task. Click on accept.

    -Right click-> Run.

    I don't know why, if you use the activity center to run it manually, the message "Delayed" is not off, but if you run manually from the Task Scheduler, it does.

    "Rejected" is normal, you must allow "turn on computer" for regular maintenance and doing all the work manually. But really, you must configure this (turning on computer) in the activity center and leave the "Maintenance Configurator" task (you can only see it with an administrator account) to do all the work. It has different behaviors depending on the computer, that is in my desktop computer, it configures the task of regular Maintenance to turn on the computer, while in my laptop it configures Idle enabled maintenance and does not define the 'tour on computer' on the task of regular Maintenance, to make it work (not a regular maintenance, but maintenance Idle runs the same process) when I close sesion and let the computer turns off after 30 minutes through the management of feeding.

    I have "refused" on my laptop because it does not really the maintenance tasks (as it is turned off), but it runs the maintenance through the Maintenance of Idle Task.

    So do what I say before (the regular Maintenace manually run) then the 'delayed' message going off and then leave the task of Maintenance configurator to do the job. I did this and not have seen the message "delayed" once again, I guess that's a rare case.

  • What does my computer when "Maintenance is underway"?

    Why my computer is always run maintenance tasks? I have Norton and I regularly update Windows. I have also stop and restart my computer every day. So why it seems that he is perpetually makes a kind of maintenance.

    I also noticed that my CPU fan is frequently turned on during these sessions and my mouse control gets really 'glassy '. I have a paranoia that my computer has somehow been hacked and when he said that he performs maintenance, I imagine that it is actually performing a subroutine where she is taken hostage by a third party provider for any harmful use. Probably sending spam or something like that. Why Microsoft does not include a status bar, or something? A simple "your computer is clean unused files, or defragment the drive hard or at least something!

    And why he last so long?

    Hello Joel,

     

    Welcome to the Microsoft community. I will certainly help you with the problem you are experiencing.

    The automatic Maintenance Windows reduces the impact to the PC in planning maintenance only when the PC is powered on and idle. By default, the system performs maintenance every day at 03:00. (Note that the user can set a new appointment in case of maintenance). This session is limited to a maximum of 1 hour per attempt. If the user is actively using the machine, the system differs maintenance until a later date. The system suspends also maintenance running any task, if the user returns to the PC.

    You can go to the center of the Action and click on maintenance and read why service is running. To do this, follow the steps below.

    1. press Windows + X on the keyboard. Click on Control Panel.

    2. click on system and security and then click on the status of your computer.

    3. to view details about the security or the maintenance of the article, click on the title or the arrow next to the heading to expand or collapse the section.

    For more information, see these links:
     
     
  • Automatic maintenance was delayed never goes away

    Hello

    Since week last action center displays this message. I ran maintenance several times and everything seems to complete successfully, but message doent go away.

    I tried everything...

    I manually started regular maintenance using taskschedular...

    I disabled the antivrus.

    I ran the dism and sfc/scannow, and they show no problem...

    shows that this event viewer " Microsoft \Windows\RemovalTools\MRT_H B" maintenance task is behind the date limit (event 805)

     

    Please help me solve this problem

    I posted some information on this thread... (page 2)

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-performance/maintenance-in-Windows-8-gets-always-delayed/2f1fde0f-3057-496F-A8ED-44b145d719b1?page=2

    Help, please

    Hi Danish,

    Please provide detailed information about your question. I appreciate the step by step troubleshooting, and pain that you have taken to resolve your problem. However, there are a few steps more that we can try to diagnose the root cause and resolve the problem.

    1. You are logged as administrator?
    2. Did recent changes (hardware or software) on your computer?

    Try it out below mentioned steps to check where the issue is limited.

    Step 1:

    Start the computer in safe mode.

    Try to start the computer in safe mode and see are you able to login in safe mode or not. You can see the article mentioned below to start the computer in safe mode. After starting the computer in safe mode try to check the status of your problem.

    Start settings for Windows (including safe mode)

    http://Windows.Microsoft.com/en-us/Windows-8/Windows-startup-settings-safe-mode

    Step 2:

    If your computer runs fine in safe mode, I suggest you perform the clean boot.

    Put your system to the clean boot state helps determine if third-party applications or startup items are causing the problem. You must follow the steps in the article mentioned below to perform a clean boot.

    How to perform a clean boot in Windows

    http://support.Microsoft.com/kb/929135/en-us

    Note: refer to "How to reset the computer to start normally after a boot minimum troubleshooting" to prepare the computer to start as usual after a repair.

    Get back to us with the required information and the result of the proposed suggestion and we will be happy to help you if necessary.

    Kind regards.

  • The automatic maintenance status

    Dear support team,

    I have noticed that over the last two weeks, Auto Maintenance message does not change.
    I ran the process several times, but it still shows the message: "automatic Maintenance has been delayed. Maintenance tasks will run at the next scheduled time, or you can start maintenance now. »

    I tried to run a software Antivirus (Avast) off with Avast, self defense module, but nothing has changed.

    Please let me know if there is the solution for this problem.

    If you need more details on my system, I'll be happy to provide.

    Thank you and best regards,
    Suad

    Hi karima,.

    Thanks for the reply.

    Perform the steps mentioned here.

    Automatic maintenance is supposed to stop in ~ 2 seconds the computer stopping of inactivity according to MSDN: http://msdn.microsoft.com/en-us/library/windows/desktop/hh848037(v=vs.85).aspx

    If it is not the case, you may need to manually stop. I've included steps to do this:

    1. Click on the lower left corner to open the splash screen.
    2. Type of schedule tasks in the start screen
    3. Click settings
    4. Click schedule tasks
    5. Go to Task Scheduler Library\Microsoft\Windows\TaskScheduler
    6. Click with the right button on a regular maintenance
    7. Click on Properties
    8. Click on the settings tab
    9. Put a checkmark in the box to task to allow to run on demand
    10. Click OK
    11. Right-click a regular maintenance new
    12. This time, click run
    13. Click right regular maintenance again
    14. This time, click on end.

    Hope this information helps. Response with status so that we can help you.

  • Maintenance EBS12.2

    Hello

    In the guide to maintenance for Oracle EBS12.2 can someone tell me what are the more important chapters that I need to focus and more patching? Because I need to fill very fast.

    Thank you

    Hello

    You should be familiar with all topics, but if you want to focus on the more important then read the following chapters:

    Basic DBA tasks

    Tools and applications s/n System Maintenance tasks

    Oracle Fusion Middleware Log files management

    Running Diagnostics

    Monitoring of Oracle E-Business Suite Oracle Applications Manager

    Oracle Workflow Manager

    Kind regards

    Bashar

  • Automatic maintenance cannot be stopped on Windows 8-64 bit OS

    Automatic maintenance works for the last two months. When I try to stop the automatic maintenance in the center of the action, he gives no answer.

    Hi Adam,.

    If you are logged in using an administrator account?

    Windows 8 automatically performs a number of maintenance tasks for you, including the diagnoses of the intelligent system, to check if updates are available for your software and perform security scans. Auto maintenance done too many functions, switch it off completely is not advisable.

    Automatic Maintenance runs normally at a time when the computer is idle. When it detects that the computer is used both in the demand for auto maintenance, then it does not start automatically, and instead, he waits for the next time when the computer is idle.

    Apparently, it is not possible to turn it off completely. You could disable at least starting to wake your computer.

    You can view the MSDN blog to change the settings for Maintenance and to get more information about the automatic Maintenance on Windows 8:

    Windows 8: updates and Maintenance

    For more information, see the article:

    Automatic maintenance

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

Maybe you are looking for