Opening hours of the list

Dear people,

I have a list like this timing table.

Day shift night shift

empl_codeList date fr_time to_time fr_time to_time
1234August 7, 2014 07:00 10:00 22:00 06:00
1234August 8, 2014 12:00 22:00 23:00 02:00
12349 August 2014 07:00 10:00 22:00 04:00

I want to fr_time(07:00) aug 07 and 09 - aug time(04:00) as time (07:00 to 04:00).

You have not posted a lot of information.

What is the structure of the table? What kind of data are fr_time and to_time?

Please post some sample data such as specified in the FAQ I posted before.

Assuming you have a date column for the date and varchar2 for now this @ would be a possible solution:

with rosterdata as

(

Select empl_code 1234, to_date('07-aug-2014','dd-mon-yyyy') dt, ' 07:00 ' day_fr_time, 10:00 ' day_to_time, 22:00 ' night_fr_time, ' 06:00 ' night_to_time of all the double union

Select empl_code 1234, to_date('08-aug-2014','dd-mon-yyyy') dt, 12:00 ' day_fr_time, 22:00 ' day_to_time, 22:00 ' night_fr_time, ' 02:00 ' night_to_time of all the double union

Select empl_code 1234, to_date('09-aug-2014','dd-mon-yyyy') dt, ' 07:00 ' day_fr_time, 10:00 ' day_to_time, 22:00 ' night_fr_time, ' 04:00 ' night_to_time of the double

)

Select empl_code, min (day_fr_time), Dungeon (dense_rank of the first order by dt)

||' -'

|| Max (night_to_time) Dungeon (dense_rank last order by dt) int

of rosterdata

Empl_code group;

EMPL_CODE INT

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

1234 07:00 - 04:00

Please note that the statement is to reproduce the input data. The request is that the last part (select min...).

If it is not to your needs please post your structure of the table, samples and outputs.

Kind regards.

Alberto

Tags: Database

Similar Questions

  • Palm m100 error: could not open to make the list of database

    I have an old Palm m100 and never even use your handheld more.  I have the software on my windows XP desktop.  The program worked very well and the other day, I tried to open it and received an error message "Unable to open to make the list of database."

    I did save about 30 days ago, but have since been several dates in the calendar.  I don't really care "do" list, but still failed to open the program.

    I thought to uninstall and then reinstall.  When I go into Add/Remove Programs, I don't see the program of palm - where could I find it?  I also tried to restore to an earlier date of a few days, but that has not worked.  Any other ideas?

    If 'do' database does not open, you can try the following to see if you can open the program.

    Go to program files on drive c. find the Palm folder. In the Palm folder, find your username folder, it will be a similar name to your hotsync username. In the user name folder, find the folder tasks/todo.

    Right-click and rename the folder, set a .old on the file extension. Try and open Palm desktop.

    Palm desktop must be in the Add/Remove Programs list in the control panel and should be included as a Palm or Palmone.

    Click on the following link for the guide of the user for your handheld.

    User Guide (PDF: 2.4 MB / 212 pages)

    The best way to protect your data is to export the data in each category of Palm Desktop in a separate folder on your PC.

    Create a new folder on your PC somewhere that suits. Name it something like Palm Desktop data. Click on the link below and follow the instructions on this page for the export procedure.

    http://www.Palm.com/cgi-bin/cso_kbURL.cgi?id=28734

    Make sure you only select everything for the beach in the export window.

    With the data stored in the created folder, make a copy of this file and save it on a USB key, cd - rw or external hard drive.

    Whenever you change in Palm Desktop, export the data that has been changed in this file and save again to external media.

    With this process you can always import the data in Palm Desktop, whenever you have a problem with the data in Palm Desktop, or if your computer/hard drive/device crash.

  • Last updated, 8 Firefox on Win7, opens Gmail to the list view, but cannot open the editor to read or write e-mail.

    From today, after the most recent update, Firefox 8 on Windows 7, when I opened GMail, I can see the list view, but when I try to open an e-mail to read or answer, I get an error saying GMail failed to load the rich text editor, and I can only see the snippet, without the content of the email.

    It seems to be caused by Adblock Plus 1.3.10. Disable temporarily it allows me to read and compose email normally.

  • Opening hours of the Subscriber - don't want to phone to ring when closed

    Hi all. It is a scenario of K - 12. They want parents to be able to dial the extension of the home during the class teacher and the interruption of school hours.

    We use the 4.0 unit (3) and it has main wishes. I have hours of installation for teachers where they are open 6-08:00 and 3-18:00. However, when I dial extension of the teacher of the main home during the hours of closure (i.e. noon), the call is always transferred to the phone, thus interrupting the class.

    I have the option checked to the Extension of the ring of the subscriber call forwarding page. The only way I can get calendar function I want is it to change the call transferred to no (send directly to the Subscriber's wishes). But then the phone never rings (standard play when it is opened and closed plays when closed).

    Is this feature planned schedule? Can anyone think of a way to make the phone not ring when closed, but the ring when it is opened? I know that the telephone will always ring for internal calls - they are ok with that. They don't want parents to be able to dial the teachers of the main home during school hours.

    Call handlers have an option ' transfer rule applies to "while subscribers don't. I think that would definitely solve my problem, but in his absence, no way to do for subscribers?

    Thanks for any help you can provide.

    Yes, it's boring - only subscribers have an active transfer is either on or off rule (annex has no impact on it)-call of managers have three (alternative, standard and off-peak) for schedules can affect that is served.

    The only way to do what you want is to chain a call handler before your subscribers to make the decision to transfer, and then make the call to the Subscriber - the book 'the audio text in the unit applications' on the Documents page of the www.CiscoUnityTools.com talks about this a little. You EF extensions to these call 'before' managers who decide to transfer to the number or not - the greeting on the call handler replacement would be active and empty and "would send wishes for" the Subscriber - outside of the appellants, it would be welding-for subscribers (teachers in this case) when they call check messages that they must use a different Id to connect to their mailbox as their extension , because this Id is used by the call handler.

    People just know, we plan to add all the rules of transfer 3 call handlers have for subscribers in the project of 4.0 (6) - it's on my short list of troublesome elements that must be addressed for movement forward.

  • How to open files from the list of contacts on the computer at home, the vcf files

    I exported my contacts list on my computer, it is a .vcf file.  I can open it by clicking on it, but only the first contact is displayed.  This screen looks like a file roledex.  but I don't know how to access other files.  I can open the file with "word" and "excel" vcf and all the data is there, but the result is not reader friendly.

    There is an additional program which allows opening these contacts in a friendly dispay?

    Thank you.

    Doug

    I believe you can do it through Windows live mail.  Alternatively, you can import it into your google account in a web browser.  The advantage to using Gmail, it's that once you make changes you can have them automatically sync them to your phone if you have Gmail on your Droid.

  • EIM/WIM: Display opening hours

    Hello

    We have installed just EIM/WIM and you try to check a situation where there is no agent available to meet the demand of the plant for a cat. When a customer clicks on the Chat button in a Web browser, he or she gets the following message appears:

    Thank you for your inquiry. Our opening hours are from 09:00 - 5 pm PST, Monday to Friday. If you are putting in the hours of service and always to get this message, please try after some time, as all our agents may be busy or not available at this time.

    Then we created a calendar with hours open from 01:00 to 23:00, but new customers receive the same message, that is the part of this message indicating the opening hours does not correspond the opening hours of the calendar. We restarted the EIM/WIM server but again no luck.

    What is the cause of it? How can we get around this problem?

    Thank you.

    Igor

    Igor,

    It is a static message (not a message of macro based) is why it continues to display the same message

    This can be changed in the model of cat (Department > Department > cat > models) in the Options-> tab off hours see you the EIM/WIM Administration Console User Guide (page 177-181). I think it should be the same for the v4.2 (x) and the v4.3 (1).

    Thank you!

    -JT-

  • Is there a way to get the list of open URL of file (.dmp) incident, mdmp [NOT BE]

    Hello

    My Firefox session crashed, which was little in private meetings. I have the mdmp (.dmp file) dump file saved. Is there anyway that I can get the list of URLS open in private in windows.

    If so, how to read the file OR open it for debugging.

    Kind regards
    bnrsubs

    All data are kept in memory during the session in incognito mode and will never be saved on the hard disk, so these data are available for normal use and things like restore closed tabs and windows and cookies still function as in a normal session, but this data is deleted from all the private browsing mode Windows Open (tabs) are closed.

  • A list of unread emails, I double click read. Y at - it a shortcut to open the email in the list?

    When I used Outlook and opens an email I could move on to the next in the list by pressing Ctrl - < (or Ctrl->) which closed the window of the letter being read and open the next letter in a new window. T - bird can do this somehow?

    Press N.

  • left-click on the icon of firefox in the taskbar displays a list of all the tabs. How to open just to the last tab?

    I use the tab grouping feature a lot. It means that I have 100s of tabs open at any time.

    The problem: once a switch between tab groups, the Firefox icon in the task bar changes in what looks like multiple echoes of the Firefox icon. I guess this is supposed to represent several groups of tabs.

    Before the 20th of Firefox might click on the Firefox icon in the taskbar, and would come to the top and show the last tab, I worked on Firefox.

    Since Firefox 20 a left click on the Firefox icon in the task bar now displays a list of the 28 tab + seemingly random tabs. Many of them said only: "Mozilla Firefox" instead of the site represented by this tab (because the tab has not been accessed recently).

    To open Firefox to the last tab, that I worked on is now a real chore. I now have to choose one of these tabs 28 + (which is 99% of the time the tab bad), then switch to the Group of the appropriate tab and then find the tab I've worked on. It usually takes 5-10 clicks to get back to where I was before I've minimized Firefox, or before that Firefox has lost focus. (In the past I could simply click on the Firefox in the taskbar, and restored Firefox icon where I left last.)

    How can I disable the list that is displayed when a left click or move the mouse over the Firefox icon in the taskbar? I would like the ability to minimize/restore Firefox by clicking on the Firefox icon in the taskbar, as it was in the past, do not get a choice of random tabs.

    I think that I thought about it. Under OPTIONS > OPTIONS > TAB, uncheck the box for "Show glimpses of tab in the Windows task bar" and then click OK

  • I can't open the files I download from my Web site. I select a file in the list down and nothing happens

    I'm on a Web site, I ask the file loading, usually a report. the download occurs. I click on the button download and see the list of downloaded files. I chose one. NOTHING IS GETTING PAST. What did wrong and how fix?
    Thank you
    Joel Rehagen

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your essential information such as bookmarks and history.
    Note: but it will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • Open with options: I want to add a new application to the list right click on file-&gt; open with and rearrange the list so my search app is first. I know that I can use open with-&gt; other and select any application, but it takes too much time since I u

    I want to add a new application to the list right click on file-> open with

    and also reorder the list so my search app is first / top of the list.

    I know that I can use open with-> other and select any application, but it takes too long I should use my intended application in this way several times a day.

    Basically, I'm looking for a configurable way configure open with, something more to send to Windows.

    Thank you very much for all the advice offered.

    The operating system, not you, not control that open with the menu command.

  • Firefox 8 puts new tabs opened from links in another tab at the end of the list, NOT next to the tab it just as in V3.6. I want it next to the tab that it comes. How can I do this?

    Question as noted, sums it up. When I click on the mousewheel on a link in a tab, for I want a new tab open with that link and want it beside the tab, I clicked on the link in any as Firefox V3.6 has done. Firefox 8 is always open the new tab at the end of the list and boy is that embarrassing!

    Please tell me how to solve this problem.

    Define the Boolean browser.tabs.insertRelatedAfterCurrent true pref on the topic: config page.

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    • Use the filter at the top bar of the on: page config to more easily spot a preference.
    • Preferences that have changed also show "BOLD" (user set).
    • Preferences can be reset to the default value using the context menu if they are set of users
    • Preferences can be changed via the context menu: Edit (string or integer) or toggle (Boolean)
  • the iphone 4S has the function - it can remove the list of phone every 24 hours

    The iphone 4S has the function - it can remove the list of phone every 24 hours?

    Manutd65 wrote:

    The iphone 4S has the function - it can remove the list of phone every 24 hours?

    None of the iphone has this feature.

    You need to remove manually after 24 hours.

  • How to get the USB device in the list in the resource name field VISA VISA Open VI

    I followed the tutorial below to connect with my camera using the USB port. But I don't have the name of the USB port able & Automation Explorer list devices. How to get it? Can anyone suggest something?

    http://zone.NI.com/DevZone/CDA/tut/p/ID/4478

    Hi kimhyun,

    I tried this. But managed. I used the USB as my sugesstion to device.my USB is that you unplug your device at any point of your work. Check that the device is properly connected. IF your system has recognized your device, you can view the device in Control Panel > Device Manager > then open your particular device from the list of the connected device then details > description of the system > hardware ID > then you can find here the code from your provider.

    Try this. I think that your device is connected to loosen. What USB device you are using? Also, you must install THE DRIVER FOR YOUR USB DEVICE.

    Good luck

  • HPSA remains on for 3 hours 'Preparation of the list of actions.

    I uninstalled and reinstalled the HP Support Assistant, as instucted and the HPSA done real well until it gets to the step in the process of "Preparing for the action list" it was on this process for more than 3 hours and was still cycling when I stopped it and I received the message that HP Support Assistant has stopped working and will close. Is there any help? or what I have to live with the fact that the list is still being developed.

    Hi D_O_C. There is not a version 8.1 of Windows of the HP Support Assistant on your download page for the driver for your computer.
    It seems that some 8.1 drivers there. New software is available you will find it on the download page for your driver.

    Drivers of desktop HP Pavilion p6-2378
    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=4158&LC=en&cc=us&DLC=en&sw_lang=&product=5306019

    You can try to restore the HP Support Assistant using the Manager of recovery, but in all the cover likely, you must wait a version 8.1 is available.
    Using Recovery Manager to restore the software and drivers (Windows 8)
    http://support.HP.com/us-en/document/c03430118

Maybe you are looking for