Show all days in a  month select

hello
i have a ckeckin - checkout table as
id number pk,
emp_id number fk,
checkin date , -- user date enters
checkout date -- user logsout
totalhours number ,
totalminutes number,
state varchar2(3) default 'in'
it keeps totalhours and mins of an employer .i need
a select based on that table of one month
but i want to see the days in the month
(if a user did not enter one day iwant to see o hours , 0 minutes )
select totalhours , totalminutes , checkindate
from checkin_table
where to_char(checkindate,'mon')='FEB'
and emp_id='2'
order by checkindate
and i need something like
7,59, 1-feb
0,0,2-feb
0,0,3feb
8,04,4-feb
best regards
Aris dc
and

What I like in that case is the pipelined function. You can see an example usage Re: Can a view be created within the BEGIN and END block of a procedure
Nicolas.

Similar Messages

  • Variable to show ALL days of the month

    I have a data provider that looks like this:
    OID Name Occurence
    1 Lemons 20/10/2009
    2 Apples 21/10/2009
    3 Pearss 24/10/2009
    4 Lemons 20/10/2009
    5 Apples 21/10/2009
    I want produce a cross tab that INCLUDES the count for each day of the month even if an occurence has not happened on that date:
    Date 01/10 through to 30/10
    Lemons
    Apples
    Pears
    er how do I do this?

    Joe,
    Insert an extra dataprovider for all the days in the month with a dummy value. You can then add that dummy value in your
    crosstab and hide it.
    Cheers,
    Harry
    PS,
    Please post your mesage only once instead of 2 or 3 times.

  • ICal multi-day (not all day) event  in Month view not displayed over days

    What is it when I have an event that starts on a Wednesday and 4:00pm and goes to Friday at 6:00pm (not clicked as an All Day Event), (in Month view) the only day showing the event is the first day?! Shouldn't it show it over the course of the 3 days!? Outlook does that (I can't believe I just referenced Outlook in an Apple Discussion... in a positive light no less). Is it a setting?

    Yes, Apple any help for this would be great. The only way I've come to work around is to use multiple events. So for a flight out of town would be one event, and the return another. I would create a third event then for the actual time out of town. There must be some way to easily fix this.

  • How can i load data from access database to datagridview with custom columns all days of a month ?

    Hi guys
    I am newbie in vb net and I want your help to solve a problem.
    I have this datagridview with two columns and all days of a month in custom columns.
    [IMG]http://i59.tinypic.com/2qwpj15.png[/IMG]
    I also have one combobox to change Year and a combobox to change Month.
    Here is the code to load data
    Private Sub fill_plan()
    dgMonth.Rows.Clear()
    Try
    Dim i As Integer = 0
    Dim query As String = "SELECT MonID,Unitname,Personel,Udate FROM tblMonth ORDER BY Unitname"
    con.Open()
    cmd = New OleDbCommand(query, con)
    myDR = cmd.ExecuteReader
    If myDR.HasRows Then
    While myDR.Read
    dgMonth.Rows.Add()
    dgMonth.Rows(i).Cells(0).Value = myDR.GetInt32(myDR.GetOrdinal("MonID"))
    dgMonth.Rows(i).Cells(1).Value = myDR.GetString(myDR.GetOrdinal("Unitname"))
    dgMonth.Rows(i).Cells(2).Value = myDR.GetInt32(myDR.GetOrdinal("Personel"))
    i = i + 1
    End While
    End If
    myDR.Close() : con.Close()
    Catch ex As Exception
    MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
    End Try
    End Sub
    With
    this code the
    personel column
    loads the first
    day of the month.
    I want to load
    the column the date that is
    in the database.

    Hello,
    This can be done with less code
    Private Sub fill_plan()
    dgMonth.DataSource = Nothing
    Dim dt As New DataTable
    Try
    Dim query As String = "SELECT MonID,Unitname,Personel,Udate FROM tblMonth ORDER BY Unitname"
    con.Open()
    cmd = New OleDbCommand(query, con)
    dt.Load(cmd.ExecuteReader)
    dgMonth.DataSource = dt
    Catch ex As Exception
    MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
    End Try
    End Sub
    The above loads all rows, if you want to limit the rows placed in the DataGridView this is best done in the SQL via WHERE conditions and/or with SELECT TOP x.
    Formatting of the data is best done via the property window for the DataGridView on whatever column you want too. Using the above you now need to set the data property for each column and set dgMonth.AutoGenerateColumns = False, in the end we end up with
    less code
    edit is there a reason for returning the primary key? If so then using my method we can hide that field but I see no reason for having it in this case
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • How to show all days of the year 1900

    how to show all days of the year 1900

    As you show days for any other year.
    Do you want to catch us on the fact year 1900 wasn't a leap year?
    Regards
    Etbin
    select to_date('1.1.' || :the_year,'DD.MM.YYYY') + level - 1
      from dual
    connect by level <= to_date('31.12.' || :the_year,'DD.MM.YYYY') - to_date('1.1.' || :the_year,'DD.MM.YYYY') + 1*** not tested ***
    Message was edited by: Etbin
    user596003

  • Ical not showing all day events in lion osx

    ical does not show all day events

    Hi,
    I noticed that the issue only happens to specific user with specific computer. Please do the following checking to narrow down the issue:
    1. please update the Outlook client with the latest patches and service packs.
    2. disable using Exchange cached mode and check whether the issue happens in Online mode in this computer.
    3. Start
    Outlook in safe mode to have a try.
    4. Perform a clean boot
    in your Windows for the new machine.
    Regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Winnie Liang
    TechNet Community Support

  • Showing more All-Day Events in Month View?

    Even with the iCal window maximized, when more than 4 All-Day events take place on the same day, Month View shows "..." instead of the usual All-Day colour bar, even if there's still half the space left in 'box' for that day....
    To be clear: it shows the first 4 colour bars for the corresponding all-day events, then "..." at the top to show there are more, you have to switch to Week or Day view to see them
    I looked at the plist and can't figure what could be changed.... any tips? It would really be convenient to see the maximum possible number of All-Day events even in Month view.
    Merci!
    François
    iBook G4   Mac OS X (10.4.5)  

    Unfortunately, it appears that this is intentional. The iCal Help file states:
    "If you're in Month view and you see three dots (an ellipsis) at the top of the day, there is not enough room to show all the events on that day. To see all the events in Day view, double-click the ellipsis."
    I suspect that half of the box is saved for all-day events and half for timed events. On my iMac G3, I get three dots and 3 events, on my G5 with a much larger screen I get three dots and 4 events. If anyone figures out how to alot more space to all-day events, it would be a big help.

  • All-Day Events in Month View

    When I have more than two all-day events (Just one day) that are in different categories in one day, only two show. The others are hidden and you have to open the week or day calendar to view them. When the events are regular events there is not a problem, but I would like to know how to be able to view three all-day events or more from the month view. Is this even possible?

    Same problem here; if I EVER find out the solution I will post it here.

  • Today Plus theme not showing all-day events

    I am using a Today Plus theme I have downloaded off of bplay and love it.  I use google calendar and sync without problems. 
    My only issue is that I have many (MANY) all-day events in my google calendar that don't appear on the main page unless I specifically highlight the calendar icon to show my agenda, monthly view, etc.
    These are everything from birthdays, holidays, what color uniform my kids are to wear that day......important things that I have spent a lot of time putting in my google calendar only to NOT show up! 
    I may not be wording everything correctly here as this is my first forum post, but hopefully you can get the basic point and please try to help me out! 
    Many thanks
    ~T~

    Hi,
    I noticed that the issue only happens to specific user with specific computer. Please do the following checking to narrow down the issue:
    1. please update the Outlook client with the latest patches and service packs.
    2. disable using Exchange cached mode and check whether the issue happens in Online mode in this computer.
    3. Start
    Outlook in safe mode to have a try.
    4. Perform a clean boot
    in your Windows for the new machine.
    Regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Winnie Liang
    TechNet Community Support

  • How to show all days events without scrolling?

    I use iCal as a project program, and the projects run as all day events in the top. But it seems like the new iCal (I used version 4 before) doen't show all my all day events. I can only see 5 at a time, without scrolling. In the old iCal, the size of the window adapted the numbers of events.
    I really need some help here, to keep the overview on my all day events. I can't do that if I have to scroll!
    Hope someone can help me out :-)

    As you show days for any other year.
    Do you want to catch us on the fact year 1900 wasn't a leap year?
    Regards
    Etbin
    select to_date('1.1.' || :the_year,'DD.MM.YYYY') + level - 1
      from dual
    connect by level <= to_date('31.12.' || :the_year,'DD.MM.YYYY') - to_date('1.1.' || :the_year,'DD.MM.YYYY') + 1*** not tested ***
    Message was edited by: Etbin
    user596003

  • PSE 7 Organizer shows all pictures instead of the selected ones

    When i make a selectin in the organizer it will always show all pictures instead of only the selection. This also happens when i create a smart photoalbum, it includes all photo's. It only adds a "not-selected sign" to the photo, but it will still show.

    Are the photos with the red circle-slash icon in stacks or version sets?  See this FAQ:
    http://www.johnrellis.com/psedbtool/photoshopelements-6-7-faq.htm#_Searches_are_showing

  • Using all days in a month

    Hi, how I make to use all days in a select that has only a few days.
    e.g.: in a select return 5 days (01-02-08, 01-04-08, 01-12-08, 01-21-08, 01-25-08) but i need all days 01-01-08 .. 01-31-08 as a table.
    Days..........Production
    01-01-08....0
    01-02-08....150
    01-03-08....0
    01-04-08....201
    01-05-08....0
    01-06-08....0
    01-07-08....0
    01-08-08....0
    01-09-08....0
    01-10-08....0
    01-31-08....0
    Edited by: user622983 on 28/01/2009 02:44
    Edited by: user622983 on 28/01/2009 02:45

    SELECT   v.newdt, NVL (z.production, 0)
        FROM (WITH d AS
                   (SELECT   TRUNC (TO_DATE ('jan-2009', 'MON-YYYY'), 'MM')
                           - 1 AS dt
                      FROM DUAL)
              SELECT     dt + LEVEL newdt
                    FROM d
              CONNECT BY LEVEL <= ADD_MONTHS (dt, 1) - dt) v,
             (SELECT *
                FROM (WITH t AS
                           (SELECT TO_DATE ('01-jan-2009', 'dd-mon-yyyy') dt,
                                   10 production
                              FROM DUAL
                            UNION
                            SELECT TO_DATE ('05-jan-2009', 'dd-mon-yyyy') dt,
                                   20 production
                              FROM DUAL)
                      SELECT *
                        FROM t)) z
       WHERE v.newdt = z.dt(+)
    ORDER BY 1;

  • Why doesn't the Today window in the notification center show all day appointments?

    When I look at my Today Screen, I want to see everything on my agenda including all day events. Is anyone else having this problem?

    I have exactly the same problem. I saw it also listed by a review of ios7.

  • Outlook not showing all-day events in shared calendars

    One of my users cannot see all-day events on shared calendars if those events are marked as "free" (as in the person is not busy or out of the office.) We use these events for a time-off calendar, and being on our help desk she needs to know when
    people are not in the office.
    We just replaced her computer and this was not an issue on the old computer, just the new one. Everyone else can see these events, the issue is just her on this specific computer. She can see all-day events on her own calendar, she can see all-day events
    on shared calendars if the event is not marked as "free", and she can see any event on a shared calendars where the event is not all-day (including "free" events.) The problem is only with all-day "free" events that are on a shared
    calendar, and the issue is only present on one computer.
    We have tried uninstalling and re-installing Office, we have tried resetting her views in the calendar view, we have tried just about every option that we can find within Outlook with no avail.
    Any idea?

    Hi,
    I noticed that the issue only happens to specific user with specific computer. Please do the following checking to narrow down the issue:
    1. please update the Outlook client with the latest patches and service packs.
    2. disable using Exchange cached mode and check whether the issue happens in Online mode in this computer.
    3. Start
    Outlook in safe mode to have a try.
    4. Perform a clean boot
    in your Windows for the new machine.
    Regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Winnie Liang
    TechNet Community Support

  • How to select all days in a month

    I want to select all the days from 1 to the end of the monht of a month.
    Something like
    select day
    From dual
    where month = 'oct-2005'
    This should give 31 records from 1-oct-2005 till 31-oct-2005 ...
    Has anyone a good idea ?

    SELECT   ename, dat
        FROM emp,
             (SELECT     TRUNC (SYSDATE, 'MM') + LEVEL - 1 dat
                    FROM DUAL
              CONNECT BY TRUNC (SYSDATE, 'MM') + LEVEL - 1 <
                                               LAST_DAY (TRUNC (SYSDATE, 'MM'))
                                               + 1)
    ORDER BY ename, datfor more SQL problems & questions, please visit
    http://cafe.daum.net/oraclesqltuning

Maybe you are looking for