addition of 'names of day' to a monthly calendar
Is it possible to add the names of days in the calendar that displays every month? If you have "AUT" or "Tuesday" at the top of the column.Hello
You must change your calendar template.
Go edit the template and then go monthly calendar tab.
'Format of month'-> 'Format of day of the week' replace the string substitution of date we like you use e.g. #DY #.
BR, Jari
Tags: Database
Similar Questions
-
Adding an asterisk in the day of the monthly calendar on the select statement
Hello
How can I add an asterisk or a background color when a condition is reached in a select statement?
I have a select statement which gives a value so far, someone has taken leave.
If this is the case, the substance of this day should move to an another backcolor or an asterisk (or icon) should appear in this day there.
Can someone help me with this please? I can't have a lot of comments on the use of calendar templates in an application.
Even the manual Pro Oracle Application Express (from John Edward Scott and Scott Spendolini) not mension such manipulations :(
TNX
CaraYou can write your SQL like this:
SELECT DECODE (deptno, 20, '*' || ename, ename) ename, deptno FROM emp
It is a question of SQL and the book is on APEX :));).
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------ -
Day of the month Dimension or is there another way?
I was asked to create a cube that contains data at the granularity of a day. For example, the daily sales. However, Essbase does not allow duplicate member names. I built temporarily an additional dimension of day of the month to allow the loading of the data, but the presentation to users is a little awkward using Smart View in Excel as they expected data rollup by date. Anyone is attacked in a similar project? Thank you.I would not create a dimension of day. I did several cubes 'daily' in my career. A good question to ask yourself is "turning back is really important daily detail?" For each project every day that I did, this response is in the ballpark of two or three months... and no more. So what I did was to create a rolling cube of two months (or three) with separate daily details (put in the alias and refreshing dates by load rules then roll to a new month.) This cube balances with the same two months in the full year monthly retail only cubes. I did my first one before there was the partitioning or @XREF so now you have options to connect these cubes. Even if you load the monthly cube full year directly, it might be interesting to create a "related" partition so that users can jump from the current month or the month before, for example, in the year cube full in the daily details expanded in the daily cube.
If it turns out a full year of daily detail is necessary (although I doubt it is the need in an OLAP model given the possibilities for extracting relational retail uses the EIA or Essbase Studio depending on your version), then ASO would be my choice to handle the extra volume. Otherwise, I'm talking about BSO. I hope you find it useful.
Sincerely, Darrell Barr
PS - don't forget that you can activate duplicate names if you are on the latest versions of the product (although I don't really recommend it).
-
How to calculate the first day of the month following in BI Publisher
I need to be able to calculate the first day of the month of a date field in a BI Publisher model. The field name is COL_CLM_180 and contains a date in the format "YYYY-MM-DD". I have found so far any documentation that still gives me an idea of what to do.
Any help or advice would be appreciated
Hi - thank you very much for your help. Your last answer got me going in the right direction and I indeed was dense. I don't know why I don't think to the calculation in the original query. I put the statement: TRUNC (ADD_MONTHS(A.COL_CLM_180,1), 'MM') in a column in the query of conduct and it has worked flawlessly. Thank you - thank you - thank you.
-
Hello people:
I have currently a query that picks up all the weeks between a date range where my week starts on Thursday and ends on Wednesday. The following query works fine except that I need the week of beginning and end, from beginning and end Dates of months and the beginning and the Dates of end of the values of the settings, I'm passing. In this case, I chose January 1, 2013 to 31 December 2013.
Any help or pointers would be great!
Thank you!
Problem: I am picking up days of December 2012 as the first week began on December 27, 2012. In addition, in December, I'm pretty much lost last week as well (26 December - 31 December).
The request in hand:
SELECT first_thursday + (7 * (LEVEL - 1)) AS week_start_date, first_thursday + (7 * LEVEL) - 1 AS week_end_date FROM ( SELECT TRUNC(p_from_date + 4, 'IW') - 4 AS first_thursday, -- Week should start the pre ceeding THURSDAY based on the Start Date TRUNC( p_to_date + 4, 'IW') - 5 AS last_wednesday FROM ( SELECT to_date('01-JAN-2013') AS p_from_date, NVL(to_date('31-DEC-2013'), SYSDATE) AS p_to_date FROM dual ) parms ) end_points CONNECT BY LEVEL <= ( last_wednesday + 1 - first_thursday)/7;
Currently, this is the result I get (I'm only including the months of January and December here).
Week_Start_Date Week_End_Date 27-DEC-12 02-JAN-13 03-JAN-13 09-JAN-13 10-JAN-13 16-JAN-13 17-JAN-13 23-JAN-13 24-JAN-13 30-JAN-13 31-JAN-13 06-FEB-13
December:
28-NOV-13 04-DEC-13 05-DEC-13 11-DEC-13 12-DEC-13 18-DEC-13 19-DEC-13 25-DEC-13
What I would really like is based on start and end Dates, as well as the first and the last day of the month is similarly try nicely. I have provided and then gently break at the end of the month:
January:
01-JAN-13 02-JAN-13 03-JAN-13 09-JAN-13 10-JAN-13 16-JAN-13 17-JAN-13 23-JAN-13 24-JAN-13 30-JAN-13 31-JAN-13 31-JAN-13
February:
01-FEB-13 06-FEB-13 07-FEB-13 13-FEB-13 14-FEB-13 20-FEB-13 21-FEB-13 27-FEB-13 28-FEB-13 28-FEB-13
November:
31-OCT-13 06-NOV-13 07-NOV-13 13-NOV-13 14-NOV-13 20-NOV-13 21-NOV-13 27-NOV-13 28-NOV-13 04-DEC-13
December:
01-DEC-13 04-DEC-13 05-DEC-13 11-DEC-13 12-DEC-13 18-DEC-13 19-DEC-13 25-DEC-13 26-DEC-13 31-DEC-13
Hello
Roxyrollers wrote:
Hello people:
I have currently a query that picks up all the weeks between a date range where my week starts on Thursday and ends on Wednesday. The following query works fine except that I need the week of beginning and end, from beginning and end Dates of months and the beginning and the Dates of end of the values of the settings, I'm passing. In this case, I chose January 1, 2013 to 31 December 2013.
Any help or pointers would be great!
Thank you!
Problem: I am picking up days of December 2012 as the first week began on December 27, 2012. In addition, in December, I'm pretty much lost last week as well (26 December - 31 December).
The request in hand:
- First_thursday SELECT + (7 * (LEVEL - 1)) AS week_start_date,
- first_thursday + (7 * LEVEL)-1 AS week_end_date
- Of
- (
- SELECT TRUNC (p_from_date + 4, 'IW') - 4 AS first_thursday,-week should start to perform the pre-mounted THURSDAY based on the Start Date
- TRUNC (p_to_date + 4, 'IW') - 5 AS last_wednesday
- Of
- (
- SELECT to_date('01-JAN-2013') AS p_from_date,
- NVL (to_date('31-Dec-2013'), SYSDATE) AS p_to_date
- OF the double
- ) parms
- ) end_points
- CONNECT BY LEVEL<= (="" last_wednesday="" +="" 1="" -="">=>
Currently, this is the result I get (I'm only including the months of January and December here).
- Week_Start_Date Week_End_Date
- DECEMBER 27, 12 2 JANUARY 13
- JANUARY 3, 13 JANUARY 9, 13
- 10 JANUARY 13 JANUARY 16, 13
- 17 JANUARY 13 23 JANUARY 13
- 24 JANUARY 13 30 JANUARY 13
- 31 JANUARY 13 FEBRUARY 6, 13
December:
- NOVEMBER 28, 13 4 DECEMBER 13
- 5 DECEMBER 13 DECEMBER 11, 13
- 12 DECEMBER 13 18 DECEMBER 13
- 19 DECEMBER 13 DECEMBER 25, 13
What I would really like is based on start and end Dates, as well as the first and the last day of the month is similarly try nicely. I have provided and then gently break at the end of the month:
January:
- JANUARY 1, 13 2 JANUARY 13
- JANUARY 3, 13 JANUARY 9, 13
- 10 JANUARY 13 JANUARY 16, 13
- 17 JANUARY 13 23 JANUARY 13
- 24 JANUARY 13 30 JANUARY 13
- 31 JANUARY 13 JANUARY 31, 13
February:
- 1ST FEBRUARY 13 FEBRUARY 6, 13
- 7 FEBRUARY 13 FEBRUARY 13, 13
- 14 FEBRUARY 13 FEBRUARY 20, 13
- 21 FEBRUARY 13 FEBRUARY 27, 13
- 28 FEBRUARY 13 FEBRUARY 28, 13
November:
- 31 OCTOBER 13 NOVEMBER 6, 13
- 7 NOVEMBER 13 NOVEMBER 13, 13
- 14 NOVEMBER 13 NOVEMBER 20, 13
- 21 NOVEMBER 13 NOVEMBER 27, 13
- NOVEMBER 28, 13 4 DECEMBER 13
December:
- 1ST DECEMBER 13 DECEMBER 4, 13
- 5 DECEMBER 13 DECEMBER 11, 13
- 12 DECEMBER 13 18 DECEMBER 13
- 19 DECEMBER 13 DECEMBER 25, 13
- 26 DECEMBER 13 DECEMBER 31, 13
Why the "weeks" in November, have all 7 days, while the "weeks" in the first or the last week in the other month usually have less? (For example, February 28 is a 'week' alone.)
The following works for the other months:
WITH all_days AS
(
SELECT DATE "2013-01-01' + LEVEL - AS a_date 1
OF the double
CONNECT BY LEVEL<=>=>
)
SELECT DISTINCT
More GRAND (TRUNC (a_date + 4, 'IW') - 4)
, TRUNC (a_date, 'MONTH')
) AS week_begin
, The LEAST (TRUNC (a_date + 4, 'IW') + 2
TRUNC (LAST_DAY (a_date))
), Week_end
Of all_days
ORDER BY week_begin
;
Output:
WEEK_BEGIN WEEK_END
----------- -----------
January 1, 2013 January 2, 2013
January 3, 2013 January 9, 2013
January 10, 2013 January 16, 2013
January 17, 2013 January 23, 2013
January 24, 2013 January 30, 2013
January 31, 2013 January 31, 2013
February 1, 2013 February 6, 2013
February 7, 2013 February 13, 2013
February 14, 2013 February 20, 2013
February 21, 2013 February 27, 2013
February 28, 2013 February 28, 2013
...
November 1, 2013 November 6, 2013
November 7, 2013 November 13, 2013
November 14, 2013 November 20, 2013
November 21, 2013 November 27, 2013
November 28, 2013 November 30, 2013
December 1, 2013 December 4, 2013
December 5, 2013 December 11, 2013
December 12, 2013 December 18, 2013
December 19, 2013 December 25, 2013
26 December 2013 31 December 2013
-
Need to obtain equal records the number of days of the month.
Dear all
My table and its data is given:
Table name: Transaction_Master
Trn_Num Trn_Dte 1 January 2, 2014 2 January 3, 2014 3 February 15, 2014 4 December 29, 2013 5 December 30, 2013 and so on Now, I wish that my query must return equal records the number of days for each month of Trn_Dte. Be careful, I don't have Trn_Num column in my result. Its cities here only for explanation.
It should, for example, records 31 to January 31 to December and 28 February.
I tried following query but it passes loop and my db session gets hang.
With T as
(
Select Distinct (Trn_Dte, 'Month') To_Char Trn_Mon, To_Number (To_Char (Last_Day (Trn_Dte), 'DD')) Tot_Day
Of Transaction_Master
Where Trn_Dte between parameter_1 and PARAMETRE_2
)
Select Distinct Trn_Mon, level
T
Connect by level < = Tot_Day
Order By Trn_Mon, level
Could you give me a solution for this case?
Another solution for your exact needs. Try this and let me know in case of any problems. Because I changed the connection by the clause double itself.
SELECT DISTINCT TRUNC (Trn_Dte, 'MY') + (lvl - 1)
OF Transaction_Master aa (SELECT LEVEL lvl
OF the double
CONNECT BY LEVEL<= 31)="">=>
WHERE Trn_Dte<= to_date('15-feb-2014','dd-mon-yyyy')="" ---="" add="">=>
AND TO_CHAR(Trn_Dte,'MON') = TO_CHAR (TRUNC(Trn_Dte,'MON') + (lvl-1), 'MY');
-
data for 90 days or 3 months from today's date
Hello
I have problem on this query, I need to extract the clients located on 90 days or 3 months of their subscription to the product from the date of today. I know that the date field hiring should be used on the condition, but do not know the right formula. I tried different condition, but I'm not getting accurate data. I tried this sysdate-startdate AND < = 90, but this also gives me the clients with less than 90 days in their subscription, but I just need customers with accurate 90 days. While this a startdate = sysdate-90 does not give me the results, but there should be.
SELECT
c.ID,
i.FirstName | i.Name as name,
TO_CHAR(c.StartDate,'MM/dd/yyyy') as start_date,
TO_CHAR(c.enddate,'MM/dd/yyyy') as expire_date,.
TO_CHAR(c.canceldate,'MM/dd/yyyy') as cancellation_date
CUSTOMER c,.
info I have
WHERE i.id = s.id
AND sysdate-startdate < = 90
AND c.enddate > = sysdate
AND c.cancellation_date > = sysdate
Thank you.Maybe you can try the following condition:
where startdate = add_months(trunc(sysdate),-3)
-
Calendar printing problems
I want my mail hot calendar to print like a monthly calendar, as it appears on the screen. The only option I get is a list of every day. How to change that?I could get a link that I sent to my work email, but I wouldn't have to so roundabout. I should be able to go on my hotmail home account, update my calendar and print it like a standard monthly calendar. Help.Hello
Please see the post below for the links to support for all popular Microsoft e-mail programs.
Where can I get help with my questions by e-mail? (Windows 7)-Microsoft Answers:
http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/where-do-i-get-help-with-my-email-questions/461490c7-302b-4cc8-bcd9-127e177d71c3Concerning
-
Calendar events hotmail disappeared days corresponding to the monthly calendar
My hotmail calendar displays more events that I posted in my monthly calendar display. They appear at the far left of the first day of each week in the monthly calendar. They appear correctly in all other views of the calendar. This just happened recently. What can I do about it?
Hello
I'm sorry, but we cannot help with hotmail problems in these forums in response to vista
Please repost your question in hotmail in the hotmail link below forums
http://windowslivehelp.com/product.aspx?ProductID=1
ForumsConsult with Microsoft Certified Solutions____________________________________________Welcome to Windows Live Solution Center -
How to get the maximum number of days in a month?
How to get the maximum number of days in a month?
I use a dateField. where I can get the month. Now, I want to get the maximum number of days in a month.
How can I get it?
Please help me. and thanks in advance... []
NET. RIM. Device.API.util
Class DateTimeUtilitiesgetNumberOfDaysInMonth (int month, int year)
Returns the number of days in the specified monthIt took me like 10 seconds to find it in the API, I guess you spent more time writing the post...
-
query for the first day of the month
Hi all
How to get the first day of the month in the sql query.
SQL> select trunc(sysdate,'mm') first_day from dual; FIRST_DAY --------- 01-AUG-15 SQL> select trunc(sysdate,'month') first_day from dual; FIRST_DAY --------- 01-AUG-15 SQL> select trunc(sysdate,'mon') first_day from dual; FIRST_DAY --------- 01-AUG-15 SQL>
-
How to find the first day of the month following two years one year from now?
Hello
I need to find the first day of the month following two years ago, based on the current date.
For example: If today is the 31/08/2015 so I need to find the date range between 31/08/2015 and on 09/01/2013. How can I write an SQL which allows to automate this calculation instead of hard-coding the values. Please do help me out with this so that I can build the SQL that can produce the desired result.
Thank you
Dhilip
find the start of the month - 2 years in advance, early - 2 years + 1 months in advance and go back 1
Select trunc (add_months(sysdate,24), 'MM'), trunc (add_months(sysdate,25), 'MM') - 1 double;
-
N ° of days in a month in Hyperion Essbase/Planning-For EN reports
Hi all
I know with your helpHow to reach no. Hyperion/Essbase days planning service hierarchy to create EN reports based on the number of days in a month
Example: I need to create a new relationship with 3 columns and 1 row EN
POV - year of the period, the scenario.
Lines - Dimension entity
Column1 - PTD Avg (account, Version, measure, Products_Type, products)
Column2 - amount (counts, Version, measure, Products_Type, products)
Column3 (formula column) - Eval ([Column2] /number of days per month* 36500 / [Column1] )
Thanks in advance for the help!
You can create a member of formula to account for the number of days in the month. It should look something like below. You must also include check year no.. of days in February (to assign 29 for leap years).
IF (@ISMBR ("JAN") OR)
...
... etc.
)
'No days' = 31;
ElseIf (@ISMBR ("FEB"))
'No days' = 28;
on the other
'No days' = 30;
endif;
Kind regards
Sunil
-
Hello
How can I get the (day number of the) last day of a given month and year?
So, if
year 2015 = and month = 1, the output should be 31
year = 2012 and month = 2 while production is expected to be 29
year 2013 = and month = 2 while production is expected to be 28
etc.
Y at - it no OBIEE to achieve? If not, then a command SQL Oracle is very good too (I prefer OBIEE however)
Thanks in advance,
Erik
You start from the first day of the month, you add 1 month [TIMESTAMPADD (SQL_TSI_MONTH, 1, 'your date')], you must subtract 1 day [TIMESTAMPADD (SQL_TSI_DAY,-1, 'your date')] and use the DAYOFMONTH function to get the number of the last day of the month [DAYOFMONTH ('your ' date')].
All these calls nesting together and you're there.
-
Get the number of days in a month based on the month and year of fields
I have a column in my form which lists the days in a month. I want to configure a hidden field that calculates the total number of days in a month, based on the month and year of the field inputs. The number of days will determine what appears on the column. For example, if I put 4 months, and 2016 in the field of the year, I get 30 in the hidden field. Thus, on the column 'Day', I'll have numbers 1-30. Or if I put 2 months and 2016 in the field of the year, I get the 29 in the hidden field. If the numbers 1-29 appears in the column 'day '.
Found this on some forum javascript code:
//Month is 1 based
function daysInMonth(month,year) {
return new Date(year, month, 0).getDate();
}
//July
daysInMonth(7,2009); //31
//February
daysInMonth(2,2009); //28
daysInMonth(2,2008); //29I do not know how to convert this code in JavaScript to adobe and don't really know how to use it. All I know how to do is to configure the field values for the field month and year as variables. I am a novice programmer and would appreciate it really all the help I can get. Thank you in advance!
The code seems to be JavaScript and runs as needed by using the JavaScript console.
I would like to consider making more general code, so if you have a date string that includes at least the month and year we could just call the function and get the number of days for that month.
The following script will calculate the number of days in a month, by using at least the month and year values can display the result on the JavaScript console and all of the value field for the field that has this code as the custom calculation Script.
function daysInMonth (oDate) {}
return new Date (oDate.getFullYear (), oDate.getMonth () + 1, 0) .getDate ();
}nMonth var = this.getField("Month").valueAsString; get the value of month;
nYear var = this.getField("Year").valueAsString; get the value of the year;Event.Value = "";
If (nMonth! = "" & nYear!) = "") {}
var MyDate = util.scand ("' / mm/yyyy ', nMonth +" / "+ nYear); convert to date object;
var nDaysInMonth = daysInMonth (MyDate); get the number of days;Console.Open (); Open the JavaScript console;
Console.clear(); clear the console;
Console.println ("Days in" + nMonth + ":" + nDaysInMonth); show days in month;
Event.Value = nDaysInMonth; Set the value of the field;
}
Maybe you are looking for
-
Apple you are seriously not not let me use my REAL name as my username due the last 4 letters?
-
in saa skypea toimimaan aaneni ei und
-
inside the center of the action, he keeps advising me on windows patch
I've already identified I want full control over the way in which the patches are installed and as I would like downloaded and let windows tell me when they are ready to be installed. Action Center should know by my answers that I've implemented that
-
Compaq mini 10 130 cq is: reset the password of bios compaq mini cq10
sn\cnu00217yg
-
Why should client re-register when sim card is changed?
Maybe this is a stupid question. I'm just curious to know who. I checked the push client sample app to push SDK. It seems that the registry procedure, the cient enough to send the identification number to the server. so has nothing to do with the sim