Days of the week Record selection

Hi All,
   I have 7 days of week boolean parameters for which when the user selects the date range, they can also filter which days of the week to use within that date range.
Any ideas on how I can implement this in my record selection formula?
Thank you in advance.

Hi,
You can make use of the DatePart formula
The following formula will return which day of the week for a particular week.
Eg:
The field I am evaluting here Command.DocDate
If I want to return Wednesday sales then I put in the following in record selection.
DatePart ("w",{Command.DocDate}, crMonday) = 3

Similar Messages

  • Add recurring entries for days of the week

    Hello,
    I'm trying to setup a daily schedule for my dog walking business. I'd like to have each dog's name automaticaly listed under the day of the week which they are to walk on.
    For example: "Scarlett" walks on Tuesdays, Wednesdays, and Fridays.
    If B1 says "Tuesday" can I have one of the cells in that column automatically read "Scarlett" each week?
    I'd like to have it so that all I have to do is put Tuesday up at the top and it automatically creates a list of my Tuesday dogs for me, Lulu, Scarlett, Mark, Dani, Zoe, Sharky, etc.

    Ah, those famous words, "All I have to do..."
    Here's a partial solution. Unfortunately, it doesn't cover the "all I have to do" part. More about that in the description. Click the image for a larger version.
    Table 1 (Data) is the table on which the name of each dog is entered (column A) and the days that dog is to be walked recorded using check box cells.
    Table 2 (Index) creates a set of lookup tables from the information recoded on Data. Each table contains a column for the day listing a serial number to represent each dog scheduled to be walked that day and the column containing the names of the dogs, plus any intervening columns. The list of dogs has bee moved to the right as I was considering using VLOOKUP, which requires the search values to be listed to the left of the result values.
    Tables 3 through 9 are the daily lists. These were created as a single seven-column table, then split into separate single column tables for each day.
    Formulas:
    Data: No formulas on this table.
    Index:
    A2: =IF(Data::B,MAX(A$1:A1)+1,"")
    Fill down to row 10, then select A2:A11 and fill right to column G.
    H2: =Data::A
    H2 (enhanced): =IF(LEN(Data::A)>0,Data::A,"")
    Fill down to H11
    (Enhanced version prevents showing a zero on rows where no dog's name has been entered on Data.)
    Days:
    Make a seven column table with one header row.
    A1: Sunday
    Fill right to G1.
    A2: =IF(ROW()-1>MAX(Index :: A),"",LOOKUP(ROW()-1,Index :: A,Index :: $H))
    Fill down to A11. Select A2:A11, Fill right to column G.
    Separate the table into seven single column tables, one for each day.
    To do this:
    Click on any cell to make the table active and show the column and row reference tabs.
    Click one of the column reference tabs to select that column.
    Click the same tab a second time and drag down until the column separates from the rest of the table. Continue to drag until the column is completely separated from the table, then release the mouse button.
    Repeat for the rest of the columns to be separated.
    Each of these tables may be placed on a separate sheet to make printing a single list easier if desired.
    Regards,
    Barry

  • Oracle returning incorrect day of the week

    Hi there,
    I have a table named Performance, which includes a date field named PDATE, some other attributes such as title, etc, and a field named WEEKDAY, which includes the numerical value for the day of the week. Here is an example:
    PER#
    P#
    THEATRE#
    WEEKDAY
    PDATE
    PHOUR
    PMINUTE
    COMMENTS
    1
    1
    1
    1
    02-MAR-10
    19
    30
    Normal evening time
    2
    1
    1
    2
    03-MAR-10
    19
    30
    Normal evening time
    58
    6
    6
    3
    04-MAR-10
    19
    30
    Normal evening time
    5
    1
    1
    4
    05-MAR-10
    19
    30
    Normal evening time
    I went to verify the day of the week in a calendar (in fact I checked more than one) and I noticed that the Weekday value seems incorrect. For instance, the 2nd of March was a Tuesday so I would expect WEEKDAY to say 3 (considering Sunday to be the 1st day of the week, which is the universal norm), or perhaps 2 (considering Monday to be the 1st day of the week).
    First thing that came to mind is, since the WEEKDAY is a number field which has been pre-populated, the person who populated it made a mistake.
    So I went to verify this by running a query that would give me the correct day of the week by extracting it from the PDATE field:
    SELECT DISTINCT pdate, EXTRACT(year from pdate) year,
    to_char(to_date(pdate,'DD/MM/YYYY'),'DY') weekdaycalc, weekday
    FROM ops$yyang00.Performance
    ORDER BY pdate
    And to my astonishment, I got the following table as a return:
    PDATE
    YEAR
    WEEKDAYCALC
    WEEKDAY
    02-MAR-10
    2010
    SUN
    1
    03-MAR-10
    2010
    MON
    2
    04-MAR-10
    2010
    TUE
    3
    05-MAR-10
    2010
    WED
    4
    06-MAR-10
    2010
    THU
    5
    07-MAR-10
    2010
    FRI
    6
    08-MAR-10
    2010
    SAT
    7
    09-MAR-10
    2010
    SUN
    1
    10-MAR-10
    2010
    MON
    2
    As you can see, all of the above WEEKDAYCALC values are incorrect, and seem to match the incorrect values in WEEKDAY.
    I could perhaps understand some weird WEEKDAY numbering if there is some general database setting where I could specify any day of the week to be the first day. However, I can't think of any logical explanation on why Oracle would call a Tuesday Sunday.
    Could someone please advise what I mght be doing wrong? This is driving me insane!
    Thank you in advance for all the help and support.
    Regards,
    P.

    Hi,
    1bded5c7-e555-4306-ac86-45da83dff439 wrote:
    Thanks both Frank and Solomon for the help. I am quite new to Oracle and I feel you folks went the extra mile on the explanation
    Based on your explanations, I changed the formula so the date format would be processed as YY rather than YYY.
    SELECT DISTINCT pdate, EXTRACT(year from pdate) year,   
    to_char(to_date(pdate,'DD/MM/YY'),'DY') weekdaycalc, weekday   
    FROM Performance   
    ORDER BY pdate  
    And I got the correct values now:
    PDATE
    YEAR
    WEEKDAYCALC
    WEEKDAY
    02-MAR-10
    2010
    TUE
    1
    03-MAR-10
    2010
    WED
    2
    04-MAR-10
    2010
    THU
    3
    05-MAR-10
    2010
    FRI
    4
    06-MAR-10
    2010
    SAT
    5
    07-MAR-10
    2010
    SUN
    6
    08-MAR-10
    2010
    MON
    7
    The interesting bit here, is the original WEEKDAY field, which clearly has been created with the same mistake I did (this whole table wasn't created by me). I reckon I spotted a design bug.
    Regards,
    P.
    No; you're still calling TO_DATE on something that is already a DATE, and you're still using an implicit conversion (only now you're using a format such that the current NLS settings don't cause you to get punished.  If your DBA changes the NLS settings next week, then you will have similar errors again.)
    If you want to see what day of the week pdate is, then use:
    TO_CHAR (pdate, 'DY')
    or, to make it NLS-independent:
    TO_CHAR (pdate, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH')
    This is simpler than what you posted, it's more efficient and easier to debug and to maintain, and it also gets the results you want in all cases.
    One more time: TO_DATE, as the name hints, converts something (a VARCHAR2, to be precise) TO a DATE.  If pdate is already a DATE, then what do you need to convert?  You're implicitly converting a DATE to a VARCHAR2, then explicitly converting that VARCHAR2 back to a DATE, and then calling TO_CHAR.  That's 3 function calls (1 of them error prone) where only 1 is needed.
    Also if you ever have to reconcile 2-digit years with 4-digit years (and, again, in this problem you don't) the correct way is to convert the 2-digit year to a 4-digit year, not vice-versa.
    Calling Tuesday the 1st day of the week could make sense in a particular application.

  • Changing the calendar settings: Sunday as the first day of the week

    Dear Masters of SAP universe,
    In ECC6.0, I am using a LIS info-structure with the period split set to week.
    I would like to know how can I change the calendar settings in order to consider Sunday as the first day of the week, instead of Monday.
    For example:
    A sales order created on Dec 12th creates the record 201049 in the info structure S900 - SPWOC.
    I would like to have it as 201050, where 50 is the currently week in the system.
    I already checked OSS notes and the transaction SCAL for customizing. But I did not find a solution this issue.
    Your help is highly appreciated!

    hi,
    this seems to be a calendar issue.
    please check for OSS also - 1158474.
    balajia

  • Weekdays option in alarm does not correspond to first day of the week option in calendar

    I am based in Oman where the week is Saturday to Thursday and Friday is weekly off instead of Sunday. Inspite of changing first day of the week to saturday in calendar option and choosing weekdays option in Alarm, it rings on Fridays and does not ring on Sundays. Its very upsetting. Can anyone suggest a solution for this?? Thanks in advance.

    i just did this on my Blackberry curve 8330 to make sure my answer was correct, and what i was able to do was.
    Go to your calender, select the first day you would like it to start i i will start monday for example, Recurrence set to weekly. when selecting weekly another option will appear below it ( S M T W T F S ) highlight and select a letter that marks the day  Saturday , Monday , Tuesday Ect.  and the letting will become BOLD meaning it is selected. Thus giving you the option to select any , and as many days per week you wish, and have the recurrence as often as you want

  • After iOS 5 upgrade, my calendar starts on the wrong day of the week

    I've upgraded my iPhone to iOS 5. My region is still selected as Australia, but Sunday is showing up as the first day of the week now.
    I have not yet upgraded my iPad. It shows Australia as the region format and is correctly displaying Monday as the first day of the week. 
    So it appears that the iOS 5 update changes some details of the Australia region format.  Does anyone know of a way to manually select the first day of the week?  Thanks.

    I can confirm that the start day of the week is determined by the Region Format setting (insanely). My girlfriend is still on iOS 4.3.5 and has a Region Format of Australia, and has the week starting on Monday. Apple must have changed it to Sunday in iOS 5.
    The best workaround country I've found so far is Namibia!
    Tap on Settings > General > International. change Region Format to Namibia.
    Different regions affect different things. If you choose UK, you get the week starting on Monday, but the clock changes to 24 hr and the phone numbers format the UK way.
    The only downside of Namibia so far is that you no longer get ".au" as an option if you're typing a web address and you hold down the ".com" button on the keyboard.
    Apple needs to add a "First Day of Week" option in the Calender preferences, like they have in the iCloud Calendar preferences and iCal preferences (which are both ignored on the iPhone and iPad!).
    Even Americans are complaining about this. It must be the easiest fix in the world, yet they still haven't done it.

  • Sunday as the first day of the week in month view on the iTouch

    Does anyone know how to change Sunday to the first day of the wek in the month view of the calendar on itouch?
    BTW, I have selected Sunday as the first day of the week in ical on my imac which syncs the ipod itouch. Am I forgetting something or is there a hidden preferences page?
    Tom

    TLGreen58 wrote:
    Does anyone know how to change Sunday to the first day of the wek in the month view of the calendar on itouch?
    BTW, I have selected Sunday as the first day of the week in ical on my imac which syncs the ipod itouch. Am I forgetting something or is there a hidden preferences page?
    Tom
    Hi,
    OMG! How bizzarre, another quirk of the "Region Fortmats" setting.
    *Settings > General > International > Region Format*
    If I set mine to U.K. (where I happen to live), Monday is apparently the first day of the week on the calendar and I have no 12/24 hour clock option.
    If set to U.S., Sunday is the first day and the 12/24 hour clock option is available.
    I guess changing the Region is your answer.
    How odd! Not to say irritating.
    Dud.
    Message was edited by: Duddo

  • Ho do I repeat an event monthly but on a specific day of the week?

    I need to repeat an event every month on the 3rd Wednesday of the month. The only monthly repeating option that I see will put it on that same day every month, by the date and not by the day of the week. Anybody know how I do this?

    Make your event on eg 20th Feb. Edit it, select Repeat/Custom , select Monthly, and 3rd Wednesday will be a selectable option.
    AK

  • Days of the week - Newbie question

    Please excuse my question as it is probably very elementary and basic to all of you, but I am just getting started learning how to use Numbers and have run into a question that I can't find an answer for in the books or on the tutorials.
    I want to have a column with the days of the week (Mon, Tues...) to automatically update as I proceed down the rows of data. I can not come up with the proper formula or the proper way to express a formula to make it perform that task. Any help would be appreciated.
    This isn't as important as most of your things since I'm retired and just using this for my personal enjoyment, but I'm sure learning a lot! Thanks, John.

    Type Monday in one row, Tuesday in the row below it. Select both. Drag down on the little circle in the bottom right of the selection box. It will fill in the rest of the days.
    A second way to do it would be using the DAYNAME formula. You will have to modify the formula depending on which row you start in but it is basically this:
    =DAYNAME(ROW()-1)
    Change the "-1" to whatever value that makes ROW()+value = 2 (assuming you want to start with Monday)
    EDIT: You did not specify if you only wanted monday through Friday. The methods above assume you want every day of the week.
    In the first method, if you only want Monday-Friday, type all the days of the week in consecutive rows, select all five cells, copy them to the next five rows, select all ten cells, then drag down. For the other method the formula will be something like
    =DAYNAME(MOD(ROW()-1,5)+2)
    Message was edited by: Badunit

  • How can i find the 1st business day of the week ?

    Hi,
    How can i find the 1st business day of the week excluding saturaday,sunday and holidays? i have holiday table which contains the columns name HolidayDate and HolidayDescription.
    Ex:
    10-1-2011 is monday(i.e) 1st business day.check If it is in holiday table,then return the result as 11-1-2011 else return the result as 11-1-2011(which is the first business day of this week).
    Can anyone tell me the Query to solve it?

    Does this help:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (SELECT TRUNC(SYSDATE,'IW') holiday FROM dual
      2  UNION SELECT TRUNC(SYSDATE + 7,'IW') from dual)
      3  SELECT MIN(Dat),wk FROM
      4  (SELECT TO_CHAR(dat,'IW') wk,dat FROM
      5  (SELECT dat + lvl dat FROM
      6  (SELECT TRUNC(SYSDATE,'RRRR') dat, level - 1 lvl
      7  FROM dual
      8  CONNECT BY level <= TO_DATE('31-DEC'||TO_CHAR(SYSDATE,'RRRR')) - TRUNC(SYSDATE,'RRRR'))
      9  ) x
    10  WHERE x.dat NOT IN (select holiday from t))
    11  WHERE TO_CHAR(Dat,'DY') <> 'SAT'
    12  AND TO_CHAR(dat,'DY') <> 'SUN'
    13* group by wk
    SQL> /
    MIN(DAT)  WK
    04-JAN-11 01  -- since 03-JAN-2011 is in holiday list, 04 is taken as first business day of first week
    11-JAN-11 02  -- similar to week 1
    17-JAN-11 03
    24-JAN-11 04
    31-JAN-11 05
    07-FEB-11 06
    14-FEB-11 07
    21-FEB-11 08
    28-FEB-11 09
    07-MAR-11 10
    14-MAR-11 11
    21-MAR-11 12
    28-MAR-11 13
    04-APR-11 14
    11-APR-11 15
    18-APR-11 16
    25-APR-11 17
    02-MAY-11 18
    09-MAY-11 19
    16-MAY-11 20
    23-MAY-11 21
    30-MAY-11 22
    06-JUN-11 23
    13-JUN-11 24
    20-JUN-11 25
    27-JUN-11 26
    04-JUL-11 27
    11-JUL-11 28
    18-JUL-11 29
    25-JUL-11 30
    01-AUG-11 31
    08-AUG-11 32
    15-AUG-11 33
    22-AUG-11 34
    29-AUG-11 35
    05-SEP-11 36
    12-SEP-11 37
    19-SEP-11 38
    26-SEP-11 39
    03-OCT-11 40
    10-OCT-11 41
    17-OCT-11 42
    24-OCT-11 43
    31-OCT-11 44
    07-NOV-11 45
    14-NOV-11 46
    21-NOV-11 47
    28-NOV-11 48
    05-DEC-11 49
    12-DEC-11 50
    19-DEC-11 51
    26-DEC-11 52
    52 rows selected.
    SQL>

  • Figure out dates corresponding to days of the week, constructing a schedule

    Hi everyone,
    I'm sorry if this topic has already been covered. I've searched the forums for an answer, but did not see anything I took to be an answer (I'm not very good at this).
    I'm trying to make a simple table to tell me which dates a particular day of the week falls on. For instance, I'm making a syllabus for a class that meets every Tuesday and Thursday. I want to know which dates corresponds to every Tuesday and Thursday from here on out.
    I currently have a table with two columns. The first column is the day of the week. The first row is Tuesday, the second is Thursday, the third Tuesday, etc. I was able to do this easily with auto fill. I want the next column to be the date.
    Here's a picture of what I mean:
    Is there a formula that will let me do this?
    Thanks!

    Hi Macademic,
    How about putting both into the first column?
    Select all of column A and use the Cell Format inspector to set the format as Date and Time, with the Date: and Time: pop-up menus set to:
    Date: Mon, Jan 5, 2009
        or: Monday, January 5, 2009
        or  to a Custom format, Date and Time, including only the elements you want in the format you want them.
    Time: None
    Enter the starting date into A2, and confirm that it is either a Tuesday or a Thursday.
    In A3, enter
    =A2+2 (if the course starts on a Tuesday)
    or
    =A2+5 (if the course starts on a Thursday)
    In A4, enter
    =A2+7
    Select A3 and A4, then grab the control (small circle at the lower right corner of the selection) and drag down until you reach the last date of the course.
    Regards,
    Barry

  • In SQL server, how can I pass a date and return on any specific day of the week (e.g. Sunday/Monday/Wednesday, etc.)

    In SQL server, I want to be able to have a function to return the date of any specific day of the week by passing two parameters. E.g.:
    parameter 1: a selected date (e.g. 8/3/2013)
    parameter 2: any specific day of the week (e.g. Wednesday)
    result: should be 7/31/2013 (8/3/2013 is a Sunday in the week 7/28 - 8/3, so the Wednesday should be 7/31/2013)
    then if I want to get Saturday of that week, I can simply change the second parameter to 'Saturday'
    Thanks.

    Wrong forum:
    http://www.microsoft.com

  • Two or more productid will be accquired by same customerid, by same shipvia, on the same day of the week of shipped date. i want the simple query for this.

    consider this situation,
     Two or more productid will be accquired by same customerid, by same shipvia, on the same  day of the week of shipped date. i want the simple query for this.
    my tables are  from northwind:
    [orders] = OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, ShippedDate, ShipVia, Freight, ShipName, ShipAddress, ShipCity, ShipRegion, ShipPostalCode, ShipCountry.
    [orders details] = OrderID, ProductID, UnitPrice, Quantity, Discount.
    i tried some but it is not exact, it gives wrong result.
    select pd.CustomerID,pd.ProductID, pd.no_of_time_purchased, sd.ShipVia, sd.same_ship_count, shipped_day from
    select ProductID,o.CustomerID,COUNT(productid) as no_of_time_purchased
    from orders o join [Order Details] od on o.OrderID=od.OrderID group by ProductID,o.CustomerID
    having count(od.ProductID) >1) pd
    join
    (select OrderID,customerid, shipvia, count(shipvia)as same_ship_count, DATENAME(DW,ShippedDate)as shipped_day from orders
    group by customerid, ShipVia, ShippedDate having COUNT(ShipVia) > 1 ) sd
    on sd.CustomerID=pd.CustomerID

    Hi,
    I think I have a solution that will at least give you a clue how to go about it. I have simplified the tables you mentioned and created them as temporary tables on my side, with some fake data to test with. I have incldued the generation of these temporary
    tables for your review.
    In my example I have included:
    1. A customer which has purchased the same product on the same day, using the same ship 3 times,
    2. Another example the same as the first but the third purchase was on a different day
    3. Another example the same as the first but the third purchase was a different product
    4. Another example the same as the first but the third purchase was using a different "ShipVia".
    You should be able to see that by grouping on all of the columns that you wich to return, you should not need to perform any subselects.
    Please let me know if I have missed any requirements.
    Hope this helps:
    CREATE TABLE #ORDERS
     OrderID INT,
     CustomerID INT,
     OrderDate DATETIME,
     ShipVia VARCHAR(5)
    CREATE TABLE #ORDERS_DETAILS
     OrderID INT,
     ProductID INT,
    INSERT INTO #ORDERS
    VALUES
    (1, 1, GETDATE(), 'ABC'),
    (2, 1, GETDATE(), 'ABC'),
    (3, 1, GETDATE(), 'ABC'),
    (4, 2, GETDATE() - 4, 'DEF'),
    (5, 2, GETDATE() - 4, 'DEF'),
    (6, 2, GETDATE() - 5, 'DEF'),
    (7, 3, GETDATE() - 10, 'GHI'),
    (8, 3, GETDATE() - 10, 'GHI'),
    (9, 3, GETDATE() - 10, 'GHI'),
    (10, 4, GETDATE() - 10, 'JKL'),
    (11, 4, GETDATE() - 10, 'JKL'),
    (12, 4, GETDATE() - 10, 'MNO')
    INSERT INTO #ORDERS_DETAILS
    VALUES
    (1, 1),
    (2, 1),
    (3, 1),
    (4, 2),
    (5, 2),
    (6, 2),
    (7, 3),
    (8, 3),
    (9, 4),
    (10, 5),
    (11, 5),
    (12, 5)
    SELECT * FROM #ORDERS
    SELECT * FROM #ORDERS_DETAILS
    SELECT
     O.CustomerID,
     OD.ProductID,
     O.ShipVia,
     COUNT(O.ShipVia),
     DATENAME(DW, O.OrderDate) AS [Shipped Day]
    FROM #ORDERS O
    JOIN #ORDERS_DETAILS OD ON O.orderID = OD.OrderID
    GROUP BY OD.ProductID, O.CustomerID, O.ShipVia, DATENAME(DW, O.OrderDate) HAVING COUNT(OD.ProductID) > 1
    DROP TABLE #ORDERS
    DROP TABLE #ORDERS_DETAILS

  • Discovering the day of the week for given date

    hi guys, im trying to discover the day of the week for a given date when i do this it works fine:
    select to_char(sysdate,'FMDAY') from dual
    however, when i try to pass in my own value as a parameter i get the error: invalid number
    select to_char(:mydate,'FMDAY') from dual .
    the value im passing through to mydate is 21/02/2011 so i have no idea why it is not working. Any help would be greatly appreciated. thanks
    Edited by: 786733 on 21-Feb-2011 03:41

    786733 wrote:
    hi guys, im trying to discover the day of the week for a given date when i do this it works fine:
    select to_char(sysdate,'FMDAY') from dual
    however, when i try to pass in my own value as a parameter i get the error: invalid number
    select to_char(:mydate,'FMDAY') from dual .
    the value im passing through to mydate is 21/02/2011 so i have no idea why it is not working. Any help would be greatly appreciated. thanksyou're probably passing in a string instead of a date, so you need to convert it to a date with the appropriate format.
    select to_char(to_date(:mydate,'DD/MM/YYYY'),'FMDAY') from dual

  • Getting Day of the Week

    I have a table with a bunch of columns with random stuff in them.
    One of the columns is a date + time column that has this kind of format:
    - 11-01-24 00:00:00.000000000
    - 11-01-27 02:00:00.000000000
    Now, as you can see, the first few numbers are the year, month, and date, the next few numbers are the hour, minutes, and second, but the last part, well, I'm honestly not too sure; I took over this database a while ago, so that format is a bit alien to me (if someone can clarify this, it'd be great; not important, though).
    Given this format, is it possible to get the day of the week?
    I know for some scripting and programming code, you can usually find this kind of information by using some sort of date function, but I can't seem to find one for Oracle SQL.
    It would be something like:
    SELECT *
    FROM <table>
    WHERE some_function(date_period) = 'SAT'
    Thanks a lot for any feedback!

    Hi,
    As Centinul said, the function you want is TO_CHAR, and here's one way to use it:
    WHERE   TO_CHAR ( date_period
              , 'DY'
              , 'NLS_DATE_LANGUAGE=ENGLISH'     -- If needed
              )   = 'SAT'This assumes that the data type of date_period is TIMESTAMP (or DATE).
    The third argument to TO_CHAR is optional. You can skip it if you're certain that Saturday in your session is called 'Saturday', and not 'Lördag' or 'Sabado', or something in any of the other languages that Oracle supports.
    You can use TO_CHAR wherever a string is allowed. For example:
    SELECT  TO_CHAR ( date_period
              , 'DY'
              , 'NLS_DATE_LANGUAGE=ENGLISH'     -- If needed
    FROM    table_x;To see the different things that you can put in the 2nd argument to TO_CHAR, look up "format models - date" in the SQL Language manual:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/sql_elements004.htm#sthref396

Maybe you are looking for