SQL Matrix - Getting a full year calendar

Hi everybody,
I have a question and it goes something like this:
I have this table:
create table workers_holidays(
id number,
holiday_date date,
id_worker number)With this data:
insert into workers_holdays(seq_xpto.nextval,sysdate+30,1);
insert into workers_holdays(seq_xpto.nextval,sysdate+60,1);
insert into workers_holdays(seq_xpto.nextval,sysdate+90,1);Now i want to have a "matrix" with all the months of the year and
SELECT
SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),4,2) Month
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'01','X',NULL)) D1
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'02','X',NULL)) D2
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'03','X',NULL)) D3
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'04','X',NULL)) D4
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'05','X',NULL)) D5
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'06','X',NULL)) D6
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'07','X',NULL)) D7
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'08','X',NULL)) D8
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'09','X',NULL)) D9
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_dateS,'DD-MM-YYYY'),1,2),'10','X',NULL)) D10
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'11','X',NULL)) D11
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'12','X',NULL)) D12
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'13','X',NULL)) D13
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'14','X',NULL)) D14
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'15','X',NULL)) D15
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'16','X',NULL)) D16
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'17','X',NULL)) D17
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'18','X',NULL)) D18
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'19','X',NULL)) D19
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'20','X',NULL)) D20
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'21','X',NULL)) D21
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'22','X',NULL)) D22
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'23','X',NULL)) D23
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'24','X',NULL)) D24
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'25','X',NULL)) D25
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'26','X',NULL)) D26
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'27','X',NULL)) D27
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'28','X',NULL)) D28
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'29','X',NULL)) D29
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'30','X',NULL)) D30
,MAX(DECODE(SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),1,2),'31','X',NULL)) D31
FROM workers_holidays
WHERE id_worker =1
GROUP BY SUBSTR(TO_CHAR(holiday_date,'DD-MM-YYYY'),4,2)
ORDER BY 1How can i get a line for each month? By result now is:
Month D1 D2 D3 D4 D6 D7 D8 D9 ...D31
05............................. X
06............................. X
07............................. X
I would like to have a line with the rest of the months...like this:
Month D1 D2 D3 D4 D6 D7 D8 D9 ...D31
01
02
03
04
05............................. X
06............................. X
07............................. X
08
09
10
11
12
Is this possible? Since the worker doesn't have the others months populated...
P.S. The dot's only appear because i had to "stick" the X marker below the 8 day :P
Edited by: [email protected] on 08-May-2009 07:22

Hi,
Instead of genearting a list of all the possible months, make it a list of all the possible days.
In the query below, the sub-query all_days has one row for every day in the current year, but you can easily change this to be every day in any arbitrary period.
Since some of the data (holidays, marked by 'X') come from one table, worker_holidays, and some of the data comes from another table (actually a sub-query, all_days), I used UNION to combine them into a single source, unified_data. You could do an outer join instead.
It's simpler to do all the TO_CHARs in unified_data, rather than in the main query.
WITH  all_days  AS
     SELECT  TRUNC (SYSDATE, 'YYYY') + LEVEL - 1     AS dt
     FROM     dual
     CONNECT BY     LEVEL <= ADD_MONTHS (TRUNC (SYSDATE, 'YYYY'), 12)
                                   - TRUNC (SYSDATE, 'YYYY')
,    unified_data  AS
     SELECT     TO_CHAR (dt, 'MM')          AS month
     ,     TO_CHAR (dt, 'DD')          AS day
     ,     CASE
               WHEN  dt - TRUNC (dt, 'IW') > 4
               THEN  'W'
          END               AS marker
     FROM     all_days
     UNION
     SELECT     TO_CHAR (holiday_date, 'MM')     AS month
     ,     TO_CHAR (holiday_date, 'DD')     AS day
     ,     'X'          AS marker
     FROM     workers_holidays
     WHERE     id_worker  = 1
SELECT       month
,       MAX (DECODE (day, '01', marker))     AS d1
,       MAX (DECODE (day, '02', marker))     AS d2
,       MAX (DECODE (day, '03', marker))     AS d3
,       MAX (DECODE (day, '31', marker))     AS d31
FROM       unified_data
GROUP BY  month
ORDER BY  month
;If the same day is both a weekend ('W') and a holiday ('X') this query, as posted, marks it as a holiday ('X'), since it uses MAX, and 'X' > 'W'. That can be adjusted.
This solution is not dependent on NLS settings.

Similar Messages

  • I am graduating in May, will my monthly payments automatically change after that or will I get a full year at the student discounted price? or do i have to pay for the full year up front for the discount?

    I am graduating in May, but want to pay monthly will my payments automatically change when I graduate or should I pay for the full year up front for the discount?

    Hi there
    You will get a full year at the student price.
    Thanks
    Bev

  • Full Year Figures

    Hello
    Any assistance appreciated.
    Having a hard time getting out the current Full Year (Budget/Forecast) figures from the GL Standard Balances Folder (glfg_gl_standard_balances) as all results seem to be based on whatever Month I am requesting, whether I reference the Month in the formula or not.
    It is a fairly straight forward format for a report;
    FY_Budget FY_Forecast FY_Variance YTD_Budget YTD_Actual etc....
    Until recently (perhaps coincidently before I refreshed the GL Business Area in the EUL) I had no problems.
    The following formula for "Current Period Revised Budget" works fine;
    SUM(CASE WHEN Balance Type = 'Budget' AND Budget Name = 'REVISED' AND Period Name = :Period THEN NVL(Period To Date Dr,0)-NVL(Period To Date Credits,0) ELSE 0 END)
    All I used to do to get the Full Year figure was to leave out the "AND Period Name = :Period" bit and it worked fine. Now all I get is the same result as if I had left the call to :Period in (same problem with YTD - I have no mention of Period in the formula but it still gives me the relevant YTD figure)
    Maybe I just got lucky before or it is late in the day!
    Thanks in advance

    Yes, you can get depreciation values per month also in report S_ALR_87012936.
    In the selection screen, choose ALL SELECTIONS button ( on application tool bar)
    And then you will be getting options to set evaluation period, there you should select MONTH and execute it.
    Now you will get all depreciation forecast for each month of current year.
    Please make sure that, when you execute this report with MONTH as evaluation period, once you got output, if you cant see the monthly value columns, then go to change layout and add columns like DEPRECIATION - 01/2011..and DEPRECIATION - 02/2011 and so on.
    Please add all 12 columns and save that layout and make that as default, so that when you execute the same rreport on the next time, you will get the monthly values by default.
    Cheers

  • Remove age from birthday notification: I don't know the years most of my contacts were born, so I keep getting a default year 2000 birthdate. How can I turn off the age (xxth birthday) in Birthday Calendar - it really is very annoying!

    I don't know the years most of my contacts were born, so I keep getting a default year 2000 birthdate.
    How can I turn off the age (xxth birthday) in Birthday Calendar - it really is very annoying!?
    Thanks
    Tim

    Where do you see the default birthday showing as Nov. 30? If you can explain that, I can probably modify the below script to do that clean up.
    In response to the original problem:
    I'm not sure why I missed the original reply, but here is an Applescript that will change all the years of any selected contacts to 1604 (default for no year).
    tell application "Contacts"
              set thePeople to selection
              repeat with aPerson in thePeople
                        set theDate to birth date of aPerson
                        if theDate is not missing value then
                                  set the year of theDate to 1604
                                  set birth date of aPerson to theDate
                        end if
              end repeat
    end tell
    copy and paste it into a new Applescript Editor document. Select all the contacts you want to change (in Contacts), then run this script by clicking on the green Run button in Applescript Editor.

  • HT201238 If we upgrade to a new monthly plan do we get a refund for the full year plan that we've already purchased?

    If we upgrade to a new monthly plan do we get a refund for the full year plan that we've already purchased?

    You will need to contact Apple - we are all other end users like you here.
    iCloud storage pricing - Apple Support

  • Error ORA-01841: (full) year must be between -4713 and +9999, and not be 0

    Hi Experts,
    I seem to be getting the error "Error ORA-01841: (full) year must be between -4713 and +9999, and not be 0" when my dates are in the year 2000. Here's my SQL:
    DROP TABLE PER_ALL_ASSIGNMENTS_M_XTERN;
    create table PER_ALL_ASSIGNMENTS_M_XTERN(
    PERSON_NUMBER                    VARCHAR2(30 CHAR),
    ASSIGNMENT_NUMBER VARCHAR2(30 CHAR),
    EFFECTIVE_START_DATE                DATE,
    EFFECTIVE_END_DATE           DATE,
    EFFECTIVE_SEQUENCE           NUMBER(4),
    ASS_ATTRIBUTE_CATEGORY           VARCHAR2(30 CHAR),
    ASS_ATTRIBUTE1 VARCHAR2(150 CHAR),
    ASS_ATTRIBUTE_NUMBER20 NUMBER,
    ASS_ATTRIBUTE_DATE1 DATE,
    ASS_ATTRIBUTE_DATE2 DATE,
    ASS_ATTRIBUTE_DATE3 DATE,
    ASS_ATTRIBUTE_DATE4 DATE,
    ASS_ATTRIBUTE_DATE5 DATE,
    ASS_ATTRIBUTE_DATE6 DATE,
    ASS_ATTRIBUTE_DATE7 DATE,
    ASS_ATTRIBUTE_DATE8 DATE,
    ASS_ATTRIBUTE_DATE9 DATE,
    ASS_ATTRIBUTE_DATE10 DATE,
    ASS_ATTRIBUTE_DATE11 DATE,
    ASS_ATTRIBUTE_DATE12 DATE,
    ASS_ATTRIBUTE_DATE13 DATE,
    ASS_ATTRIBUTE_DATE14 DATE,
    ASS_ATTRIBUTE_DATE15 DATE,
    ASG_INFORMATION_CATEGORY           VARCHAR2(30 CHAR),
    ASG_INFORMATION1 VARCHAR2(150 CHAR),
    ASG_INFORMATION_NUMBER20 NUMBER,
    ASG_INFORMATION_DATE1 DATE,
    ASG_INFORMATION_DATE2 DATE,
    ASG_INFORMATION_DATE3 DATE,
    ASG_INFORMATION_DATE4 DATE,
    ASG_INFORMATION_DATE5 DATE,
    ASG_INFORMATION_DATE6 DATE,
    ASG_INFORMATION_DATE7 DATE,
    ASG_INFORMATION_DATE8 DATE,
    ASG_INFORMATION_DATE9 DATE,
    ASG_INFORMATION_DATE10 DATE,
    ASG_INFORMATION_DATE11 DATE,
    ASG_INFORMATION_DATE12 DATE,
    ASG_INFORMATION_DATE13 DATE,
    ASG_INFORMATION_DATE14 DATE,
    ASG_INFORMATION_DATE15 DATE
    organization external
    ( default directory APPLCP_FILE_DIR
    access parameters
    ( records delimited by newline skip 1
         badfile APPLCP_FILE_DIR:'PER_ALL_ASSIGNMENTS_M_XTERN.bad'
    logfile APPLCP_FILE_DIR:'PER_ALL_ASSIGNMENTS_M_XTERN.log'
    fields terminated by ',' OPTIONALLY ENCLOSED BY '"'
    (PERSON_NUMBER,     
    ASSIGNMENT_NUMBER,
    EFFECTIVE_START_DATE CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    EFFECTIVE_END_DATE CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    EFFECTIVE_SEQUENCE,
    ASS_ATTRIBUTE_CATEGORY,
    ASS_ATTRIBUTE1,
    ASS_ATTRIBUTE_NUMBER20,
    ASS_ATTRIBUTE_DATE1 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE2 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE3 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE4 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE5 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE6 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE7 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE8 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE9 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE10 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE11 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE12 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE13 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE14 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASS_ATTRIBUTE_DATE15 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_CATEGORY,
    ASG_INFORMATION1,
    ASG_INFORMATION_NUMBER20,
    ASG_INFORMATION_DATE1 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE2 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE3 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE4 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE5 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE6 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE7 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE8 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE9 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE10 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE11 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE12 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE13 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE14 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    ASG_INFORMATION_DATE15 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY"
    location ('PER_ALL_ASSIGNMENTS_M.csv')
    REJECT LIMIT UNLIMITED;
    ...and getting errors when data looks like the following:
    E040101,EE040101,*1-Aug-2000*,31-Dec-4712,1,,NDVC,YES,DE,SFC,N,STIP Plan - Pressure,,,,,,,E040101,,,,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,5,,,,,,,,,,,,31113,31113,31113,31113,31113,31113,,,1-Jan-2012,31-Dec-2012,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    ...error message:
    error processing column EFFECTIVE_START_DATE in row 19 for datafile /u05/dbadir/jmf/incident_logs/PER_ALL_ASSIGNMENTS_M.csv
    ORA-01841: (full) year must be between -4713 and +9999, and not be 0
    Thanks,
    Thai

    Here is a snippet of the bad file data:
    E040110,EE040110,01-Aug-00,31-Dec-12,1,,NDVC,YES,DE,SFC,N,STIP Plan - Pressure,,,,,,,E040110,,,,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,5,,,,,,,,,,,,27667.2,27667.2,27667.2,27667.2,27667.2,27667.2,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    E040100,EE040100,01-May-00,31-Dec-12,1,,NDVC,YES,DE,SFC,N,STIP Plan - Pressure,,,,,,,E040100,,,,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,5,,,,,,,,,,,,31113,31113,31113,31113,31113,31113,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    E040101,EE040101,01-Aug-00,31-Dec-12,1,,NDVC,YES,DE,SFC,N,STIP Plan - Pressure,,,,,,,E040101,,,,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,5,,,,,,,,,,,,31113,31113,31113,31113,31113,31113,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    E000916,EE000916,01-Oct-00,31-Dec-12,1,,NDVC,YES,NL,SFC-Commercial,E,SIP Plan - Control Technologies,,,,,,,E000916,21000000,555000,99000,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,10,,,,,,,,,,,,34905.65,34905.65,34905.65,34905.65,34905.65,34905.65,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    E000807,EE000807,03-Jan-00,31-Dec-12,1,,NDVC,YES,FR,SFC-Commercial,E,STIP Plan - Cross BU,,,,,,,E000807,,,,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,3,,,,,,,,,,,,35448.56,35448.56,35448.56,35448.56,35448.56,35448.56,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    E000851,EE000851,25-Apr-00,31-Dec-12,1,,NDVC,YES,FR,SFC-Commercial,E,SIP Plan - Control Technologies,,,,,,,E000851,21000000,555000,99000,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,13,,,,,,,,,,,,43283.76,43283.76,43283.76,43283.76,43283.76,43283.76,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    So, the successfully loaded data is being loaded where year=2003 in the CSV as year=0003. Even though the data is loaded fine the data is not correct. For some reason the external table is set to have the year truncated.

  • Full YR calendar & row generators -probs with mnths that have 28/29/30 days

    Hello,
    With Rod West's advice i've been able to build an absence calendar report using Row Generators, see the learndiscoverer blog (http://learndiscoverer.blogspot.com/2008/10/row-generators.html) for more details on row generators.
    I have hit a problem with using dates as a data point (or the basis of a datapoint) in crosstabs.
    I'm building a crosstab that needs to look at a years worth of absence for a person. Using 2 row generators, 1 producing 12 months (last day of each month as a date, formatted to fmMonth) down the side and the other with 31 rows running along the top for the days in that month.
    The data point is a calculation that inserts the absence category on each day that a person is absent. This works brilliantly for one month. However the datapoint is a derivative of the month/year and the 31 days created by the row generator, which causes problems for certain months.
    If, for example, I need to produce the report for January and February 2008 it will produce an error saying not a valid date for month. This is because there are 31 days running along the top and the datapoint is using 31 days in both Jan & Feb. As there were only 29 days during Feb in 2008 the error occurs when the datapoint creates 30-Feb-2008 & 31-Feb-2008.
    I have tried to make the datapoint calculation return NULL for these dates but it won't allow it because the datapoint is must be some sort of date. I have tried to convert these erroneous dates to 01-Jan-1900 and then omit them from the report with a condition, i think this may be the solution, but i'm not getting anywhere with it.
    If anyone knows a better way of doing this i'd be really grateful if you could let me know.
    Also, just one other thing. Does anyone know how to format a date to a day in the format Mon, Tues, Wed etc. I can get the full day but need narrower columns.
    Thanks,
    Lloyd Thomas

    Hi Rod,
    This is brilliant! I'm sorry about the confusion I caused over the dates in the generator.
    There is a problem here though. I've got to_date('01-JAN-'||:pyear)+n-1 along the top. Down the side of the cross tab I have LAST_DAY(TO_DATE('01-JAN-'||:pyear)+( Days in Year-1 )), formatted to FmMonth.
    The data point is MAX(CASE WHEN "Dates in the Year" BETWEEN Date Start AND Absence Finish THEN Absence Category ELSE '' END).
    The multiple absences over the year are causing duplicate rows. Once converted to a table i can see that each day of the year brings in duplicate rows for every absence a person has had. The MAX statement works in terms of identifying the correct row but I cannot get rid of the other rows. I can't do an IS NOT NULL condition because it will also remove days where people where not absent.
    I think the problem with the LAST_DAY(TO_DATE('01-JAN-'||:pyear)+( Days in Year-1 )) calculation but i'm trying to make it return one month.
    Any help appreciated.
    Thanks,
    Lloyd

  • Year Calendar

    Hi,
    I am trying to create, display a yearly calendar which each day Monday-Friday is a hyperlink to a another form.
    When I try to create the calendar using a SQL Query, I get the error message ERR-1003 Error executing computation query. The query runs fine in SQL*Plus.
    Can this calendar be created?
    Thanks
    VC

    Are you talking about timeline? If yes this is present in PSE10 as well. This option is present under Window->Timeline.

  • Sql query with dynamic fiscal year

    Hi,
    I wrote this query with static fiscal year and fiscal period, I need info on making the variables dynamic
    Fiscal year : starts from July1st. So this year until June'30 it is '2011' and from July'1st its '2012'
    Fiscal period: July1st its '1' and June'1st its '12'
    Query:
    select distinct o.c_num, o.ac_num, s.sub_ac_num, o.fiscal_year, o.ac_exp_date, s.sub_ac_ind
                             from org_account o
                                  left outer join sub_account s
                                  on o.c_num = s.c_num and o.ac_num = s.ac_num
                             where (o.ac_exp_date >= CURRENT_DATE or o.ac_exp_date is null)
                             and o.fiscal_year = *'2011'* --> need to be dynamic
                             and o.fiscal_period = *'12'* --> need to be dynamic
    thanks,
    Mano
    Edited by: user9332645 on Jun 2, 2011 6:55 PM

    Hi, Mano,
    Welcome to the forum!
    Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements), and the results you want from that data.
    Always say which version of Oracle you're using.
    Since this is your first thread, I'll post some sample data for you:
    CREATE TABLE     table_x
    (     dt     DATE
    INSERT INTO table_x (dt) VALUES (DATE '2010-12-31');
    INSERT INTO table_x (dt) VALUES (DATE '2011-01-01');
    INSERT INTO table_x (dt) VALUES (DATE '2011-06-02');
    INSERT INTO table_x (dt) VALUES (DATE '2011-06-30');
    INSERT INTO table_x (dt) VALUES (DATE '2011-07-01');Is this the output you would want from that data?
    DT          FISCAL_YEAR     FISCAL_PERIOD
    31-Dec-2010 2011            06
    01-Jan-2011 2011            07
    02-Jun-2011 2011            12
    30-Jun-2011 2011            12
    01-Jul-2011 2012            01If so, here's one way to get it:
    SELECT       dt
    ,       TO_CHAR ( ADD_MONTHS (dt, 6)
                , 'YYYY'
                )     AS fiscal_year
    ,       TO_CHAR ( ADD_MONTHS (dt, 6)
                , 'MM'
                )     AS fiscal_period
    FROM       table_x
    ORDER BY  dt
    ;Since your fiscal year starts 6 months before the calendar year, you need to add 6 months to the actual date to get the fiscal year and month.
    The query above produces strings for fiscal_year and fiscal_period. If you'd rather have NUMBERs, then use EXTRACT instead of TO_CHAR:
    SELECT       dt
    ,       EXTRACT (      YEAR
                FROM     ADD_MONTHS (dt, 6)
                )     AS fiscal_year
    ,       EXTRACT (      MONTH
                FROM     ADD_MONTHS (dt, 6)
                )     AS fiscal_period
    FROM       table_x
    ORDER BY  dt
    ;The first query will work in Oracle 6 (and higher).
    I'm not sure when EXTRACT was introduced. It definitely works in Oracle 10, and may be available in earlier versions, too.

  • Search / Find in Year Calendar View

    GW 2012 SP2
    If I look at a calendar in Year view, I can see all the days that have
    calendar entries (they're bolded)
    If I want to find an appointment with 'Smith' in this view, I type it
    into the Find field ...
    However, there are no changes to the view - all calendar days still
    show as bold
    If I switch to Details view, the Find works fine
    Is there a way for this to work in the Year Calendar View ?
    Steve

    Not sure what the client's support status is on this .... will check -
    perhaps SP3 will have this fix but who can wait for another year !!
    laurabuckley wrote:
    >
    > Hi Steve,
    >
    > There have been some irregularities reported in the year view of the
    > GroupWise 2012 client.
    >
    > If you are in a position to do so, may I suggest that you open a
    > Service Request with Novell Technical Support to get the latest FTF
    > version of the client. This may just address the issues that you are
    > having.
    >
    > Please let us know how you proceed.
    >
    > Cheers,

  • Printing a yearly calendar with iCal?

    I want to print a yearly calendar in both letter and half letter format with my iCal, how do I do that?

    No, I don't see this option either... I've exhausted every option inside iCal and my advanced print settings.
    The only other suggestion is to go to iCal and "provide iCal feedback" within the menu bar and request this feature.
    I will do this as well.
    In the meantime a workaround is:
    Select "month view" in the print settings - select 12 months to print and select "ok".
    Then your printer options will open up.
    From there click the Layout drop down tab, and then select "16 pages" per sheet.
    Then they will all print on 1 page... though the numbers are too small to really be deemed "legible".
    You may want to mess around with zoom settings after you arrange 16 pages per sheet.
    This is the only workaround to get "close" to what you want to do.

  • Need this formula to look back 2 full years

    In the following code, we are looking to show all records, where, the part# had no sales for the 2 month period selected by the user. But we also do not want to show this part if the current onhand balance is o, and also, we do want to show when was the last sale for this part. THe change i need is that the code here will show the last sales for past year only of calender year. I would like it to show 2 years back, meaning 2 full years from current date. I think i need to have an OR statement here and {SUMPRT.IQYER#} = {?Year} but not really sure. this is a crystal reports formula.
    {PARTINV.IEQOH#} <> 0.00 and ( if {?Month}=1 then (({SUMPRT.IQA01} =0 and {SUMPRT.IQYER#} = {?Year}) and ({SUMPRT.IQA12} =0 and {SUMPRT.IQYER#} = {?Year}-1)) else if {?Month}=2 then ({SUMPRT.IQA01} =0 and {SUMPRT.IQA02} =0 ) and {SUMPRT.IQYER#} = {?Year} else if {?Month}=3 then etc...

    Hi Paul,
    This formula is pretty confusing because I can't decipher which fields relate to what.  I think though you may be overthinking the formula.
    It looks like you are evaluating each month of the year individually.  Instead of using nested IFs, have each month as a separate statement.  Better yet, use a case statement like:
    {PARTINV.IEQOH#} <> 0.00 And
    Select {?Month}
         Case 1:     (({SUMPRT.IQA01} =0 and {SUMPRT.IQYER#} = {?Year})
                        and ({SUMPRT.IQA12} =0 and {SUMPRT.IQYER#} = {?Year}-1))
         Case 2:     ({SUMPRT.IQA01} =0 and {SUMPRT.IQA02} =0 )
                        and {SUMPRT.IQYER#} = {?Year}
         Default:     etc...;
    Separating the months into a Case or independant IF should get you your results.
    Thanks,
    Brian

  • Regarding the error ORA-01841: (full) year must be between -4713 and +9999,

    The issue is the code is not inserting the good records into the MIE table. This is becasue of the error 'OtherError GFSTM_INS_SNURK_NEW_TABLES_PA.gfstm_ins_asn_journal_pr:ORA-01841: (full) year must be between -4713 and +9999, and not be 0' This error is throwing out because of space issue in dt_asn_shipped.
    My requirement is to log error if any if not get the next record in the loop and insert it in the table if it has no error. The issue is good records are not getting inserted. The snurk_cmms_crct018_asn_journl in the cursor is a synonym which uses dblionk to connect to the remote db. The dt_asn_shipped data type is char(6) and the format is YYMMDD.
    declare
    CURSOR cur_asn_journal IS
    SELECT NVL(TRIM(cd_asn_plant),' ') cd_asn_plant,
         NVL(TRIM(no_journal),0) no_journal,
    NVL(TRIM(cd_ship_from),' ') cd_ship_from,
         TRIM(no_asn) no_asn,
    DECODE(LENGTH(dt_asn_shipped),6, to_date(to_char(to_date(trim(dt_asn_shipped),'YYMMDD'),
    'DD-MON-YY'),'DD-MON-YY'), '') dt_asn_shipped,
    TRIM(dt_processed) dt_processed,
    TRIM(in_manual) in_manual,
         TRIM(ts_last_update) ts_last_update     
    FROM snurk_cmms_crct018_asn_journl;
    BEGIN
    FOR l_rec_asn_journal IN cur_asn_journal LOOP
    BEGIN
    INSERT INTO gfstmie_st_cmms_asn_journal
    gsdb_site_code ,
    journal_num,
    gsdb_site_from_code,
    adv_shipping_notice_cnum,
    adv_sn_shipping_date,
    processed_date,
    manual_in_code,
    cmms_last_update_cdate,
    create_userid,
    create_dts,
    update_userid,
    update_dts
    ) VALUES
    l_rec_asn_journal.cd_asn_plant,
    l_rec_asn_journal.no_journal,
    l_rec_asn_journal.cd_ship_from,
    l_rec_asn_journal.no_asn,
    l_rec_asn_journal.dt_asn_shipped,
    l_rec_asn_journal.dt_processed,
    l_rec_asn_journal.in_manual,
    l_rec_asn_journal.ts_last_update,
    g_con_user_id,
         l_dts_current_gmt,
    g_con_user_id,
    l_dts_current_gmt
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('l_num_exception_pt_7');
    --To assign value to error attributes
    l_str_email_body := GFSTU_MSG_CONTEXT_STACKER_PA.gfstu_add_msg_context_fn(
    SQLERRM || l_str_process_track,
    g_con_package_name || l_con_proc_name,
    g_con_string_null);
    l_rec_apm_error_attributes.job_run_sakey := l_num_job_run_id;
    l_rec_apm_error_attributes.proj_acronym_code := GFSTM_PARM_SPECIFICATION_PA.g_con_proj_acronym_code_ta;           
    l_rec_apm_error_attributes.module_code := l_con_module_code;
    l_rec_apm_error_attributes.notes_text := l_str_email_body;
    l_rec_apm_error_attributes.msg_id := GFSTM_PARM_SPECIFICATION_PA.g_con_msg_id_invalid_date;
    --Calling procedure to log and notify subscribers of transaction
    --related errors and informational messages
    GFSTM_COMMON_UTL_PA.gfstm_log_message_pr(
    SUBSTR(l_str_email_body,1,2000),
    g_con_string_null,
    g_con_string_null,
    SUBSTR(l_str_email_body,1,2000),
    l_rec_apm_error_attributes,
    g_con_string_null,
    l_num_wait_time,
    l_num_wait_interval_time,
    l_str_msg_action_code,
    l_num_oracle_error_code,
    l_str_oracle_msg,
    l_num_return_code,
    l_num_status);
    END;
    END LOOP;
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('l_num_exception_pt_12');
    DBMS_OUTPUT.PUT_LINE('l_num_exception_pt_2 '||l_str_procg_mode_code);
    --Rollback uncommitted transactions
    ROLLBACK;
    --Assigning failure status
    o_num_status := g_con_status_failure;
    --Assigning procedure end time in GMT
    l_dts_end_time := GFSTU_DATETIME_UTILITIES_PA.gfstu_to_gmt_fn;
    --To assign value to error attributes
    l_str_email_body := GFSTU_MSG_CONTEXT_STACKER_PA.gfstu_add_msg_context_fn(
    SQLERRM || l_str_process_track,
    g_con_package_name || l_con_proc_name,
    g_con_string_null);
    l_rec_apm_error_attributes.job_run_sakey := l_num_job_run_id;
    l_rec_apm_error_attributes.proj_acronym_code := GFSTM_PARM_SPECIFICATION_PA.g_con_proj_acronym_code_ta;           
    l_rec_apm_error_attributes.module_code := l_con_module_code;
    l_rec_apm_error_attributes.notes_text := l_str_email_body;
    l_rec_apm_error_attributes.msg_id := GFSTM_PARM_SPECIFICATION_PA.g_con_msg_id_oracle;
    --Calling procedure to log and notify subscribers of transaction
    --related errors and informational messages
    GFSTM_COMMON_UTL_PA.gfstm_log_message_pr(
    SUBSTR(l_str_email_body,1,2000),
    g_con_string_null,
    g_con_string_null,
    SUBSTR(l_str_email_body,1,2000),
    l_rec_apm_error_attributes,
    g_con_string_null,
    l_num_wait_time,
    l_num_wait_interval_time,
    l_str_msg_action_code,
    l_num_oracle_error_code,
    l_str_oracle_msg,
    l_num_return_code,
    l_num_status);
    --Calling procedure to update the job status
    GFSTM_COMMON_UTL_PA.gfstm_update_job_status_pr(
    l_num_job_run_id,
    GFSTM_PARM_SPECIFICATION_PA.g_con_process_abort,
    l_dts_end_time,
    g_con_perf_metric_code,
    g_con_zero,
    g_con_n,
    l_num_oracle_error_code,
    l_str_oracle_msg,
    l_num_return_code,
    l_num_status);
    END ;
    Thanks,
    Vinodh

    Hi,
    Could you not have reduced your question to what is relevant?
    You seem to be saying that this is your problem:
    SELECT DECODE ( LENGTH (dt_asn_shipped),
              6,
              TO_DATE ( TO_CHAR ( TO_DATE ( TRIM (dt_asn_shipped), 'YYMMDD'), 'DD-MON-YY'), 'DD-MON-YY'),
             dt_asn_shipped
    FROM   snurk_cmms_crct018_asn_journl;As far as I can see, problem might be that you decode on UNTRIMMED length.
    Also, you could get rid of some the to_date(to_char(to_date), which is nothing more than simply to_date()
    Try something like
    SELECT CASE LENGTH (TRIM (dt_asn_shipped))
             WHEN 6 THEN TO_DATE ( TRIM (dt_asn_shipped), 'YYMMDD')
           END
             dt_asn_shipped
    FROM   snurk_cmms_crct018_asn_journl;Regards
    Peter

  • HT1692 I use an iPhone 5, and want to sync my phone calendar and contacts with Outlook 7 calendar and contacts; twpo problems--I now get dozens of new calendars every time, and my calendar will not syncd at all.; meaning that date entries on Outlook do no

    I use an iPhone 5, and want to sync my phone calendar and contacts with Outlook 7 calendar and contacts; two problems--I now get dozens of new calendars every time, and my outlook calendar will not sync at all.; meaning that date entries on Outlook do not come across ot iPhone.

    It is unusual for the calendar to sync and not the contacts in Outlook. I've worked with Outlook for years. You didn't answer what computer OS you are using. If it is Windows, have you tried to reset the sync history in iTunes? Do that by opening iTunes, go to Edit>Preferences>Devices and click on reset sync history. If you have done this and it doesn't help, then we can try and run scanpst.exe on your Outlook file and see if there are any errors. Search your computer for that file, however it normally resides in one of the Microsoft Office folders in the folder Program files. After that, you can see if it will sync.

  • Database Services Engine Failed, SQL Server Replication Failed, Full Text Search Failed, Reporting Services Failed

    Hello,
    I am trying to install Microsoft SQL Server 2008 R2. I get the error bellow (Database Services Engine Failed, SQL Server Replication Failed, Full Text Search Failed, Reporting Services Failed). I already have a copy of SQL Server 2008 R2 on the machine.
    I want to create a new named instance of SQL Server for some software I'm installing.
    The error is below.
    Any help would be much appreciated, thanks!
    Overall summary:
      Final result:                  SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then
    rerun SQL Server Setup.
      Exit code (Decimal):           -595541211
      Exit facility code:            1152
      Exit error code:               49957
      Exit message:                  SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then
    rerun SQL Server Setup.
      Start time:                    2014-02-06 09:14:09
      End time:                      2014-02-06 11:18:16
      Requested action:              Install
      Log with failure:              C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
      Exception help link:           http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.50.2500.0%26EvtType%3d0x44D4F75E%400xDC80C325
    Machine Properties:
      Machine name:                  BAHPBZ52TY
      Machine processor count:       4
      OS version:                    Windows 7
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                   
    Feature                                  Language            
    Edition              Version         Clustered
      Sql Server 2008 R2   SQLEXPRESS           MSSQL10_50.SQLEXPRESS          Database Engine Services                
    1033                 Express Edition      10.50.1600.1    No        
      Sql Server 2008 R2                                                      
    Management Tools - Basic                 1033                 Express Edition     
    10.50.1600.1    No        
    Package properties:
      Description:                   SQL Server Database Services 2008 R2
      ProductName:                   SQL Server 2008 R2
      Type:                          RTM
      Version:                       10
      Installation location:         c:\c7ced2c86d6b9813b28186cc831c2054\x64\setup\
      Installation edition:          EXPRESS_ADVANCED
      Slipstream:                    True
      SP Level                       1
    User Input Settings:
      ACTION:                        Install
      ADDCURRENTUSERASSQLADMIN:      True
      AGTSVCACCOUNT:                 NT AUTHORITY\NETWORK SERVICE
      AGTSVCPASSWORD:                *****
      AGTSVCSTARTUPTYPE:             Disabled
      ASBACKUPDIR:                   Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   Config
      ASDATADIR:                     Data
      ASDOMAINGROUP:                 <empty>
      ASLOGDIR:                      Log
      ASPROVIDERMSOLAP:              1
      ASSVCACCOUNT:                  <empty>
      ASSVCPASSWORD:                 *****
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            <empty>
      ASTEMPDIR:                     Temp
      BROWSERSVCSTARTUPTYPE:         Disabled
      CONFIGURATIONFILE:             
      CUSOURCE:                      
      ENABLERANU:                    True
      ENU:                           True
      ERRORREPORTING:                False
      FARMACCOUNT:                   <empty>
      FARMADMINPORT:                 0
      FARMPASSWORD:                  *****
      FEATURES:                      SQLENGINE,REPLICATION,FULLTEXT,RS,SSMS,SNAC_SDK,OCS
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  NT AUTHORITY\LOCAL SERVICE
      FTSVCPASSWORD:                 *****
      HELP:                          False
      INDICATEPROGRESS:              False
      INSTALLSHAREDDIR:              c:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           c:\Program Files (x86)\Microsoft SQL Server\
      INSTALLSQLDATADIR:             <empty>
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    aedt2bSQL
      INSTANCENAME:                  AEDT2BSQL
      ISSVCACCOUNT:                  NT AUTHORITY\NetworkService
      ISSVCPASSWORD:                 *****
      ISSVCSTARTUPTYPE:              Automatic
      NPENABLED:                     0
      PASSPHRASE:                    *****
      PCUSOURCE:                     c:\c7ced2c86d6b9813b28186cc831c2054\PCUSOURCE
      PID:                           *****
      QUIET:                         False
      QUIETSIMPLE:                   False
      ROLE:                          AllFeatures_WithDefaults
      RSINSTALLMODE:                 DefaultNativeMode
      RSSVCACCOUNT:                  NT AUTHORITY\NETWORK SERVICE
      RSSVCPASSWORD:                 *****
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         *****
      SECURITYMODE:                  SQL
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
      SQLSVCACCOUNT:                 NT AUTHORITY\NETWORK SERVICE
      SQLSVCPASSWORD:                *****
      SQLSVCSTARTUPTYPE:             Automatic
      SQLSYSADMINACCOUNTS:           BAH\568385
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  False
      TCPENABLED:                    0
      UIMODE:                        AutoAdvance
      X86:                           False
      Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\ConfigurationFile.ini
    Detailed results:
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:      0xDC80C325
      Configuration error description: Access is denied
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
      Feature:                       SQL Client Connectivity SDK
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:      0xDC80C325
      Configuration error description: Access is denied
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
      Feature:                       Full-Text Search
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:      0xDC80C325
      Configuration error description: Access is denied
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
      Feature:                       Reporting Services
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:      0xDC80C325
      Configuration error description: Access is denied
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
      Feature:                       Management Tools - Basic
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Microsoft Sync Framework
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\SystemConfigurationCheck_Report.htm

    Hello,
    If you see error descriptioon it gives access denied so basically it is because of some access issue.I guess You must be using some domin account for installation make sure it is  added as local administrator also instead of using NT Authority network
    service  as SQL server service account use local system account .
    Below link would help
    http://serverfault.com/questions/212135/access-is-denied-error-installing-sql-server-2008-on-windows-7
    You can also browse to setup.exe file and RK on it and select run as administrator
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

Maybe you are looking for

  • How do I connect my G5 1.8 PowerMac to a new 2011 iMac?

    I'm planning on purchasing a new mid-year 2011 iMac soon, I'd like to connect my Power Mac G5 1.8 to the iMac;  to mount to the new iMac's desktop so that I can use the internal drives on the G5 as backups, and for retrieving files I currently have o

  • Unable to view other chart types for WAD

    Hi gurus Gotta ask for some help here. I manage to design my queries and web templates, and get the onto the Internet Explorer. However, I got a problem when displaying the chart items. I could only display the Bar Charts, and whenever I configure th

  • Flash CS5 not Publishing Files

    I made a simple flash animation and can preview it. I save it as a .fla file and publish it as the defult settings and can no longer preivew it nor does the .swf or .html files show up in the folder i saved the .fla file to. Also, when i search for t

  • Installation advice for xMII V12.0

    Hi all, xMII is my first foray into the SAP experience.  We are planning a POC using xMII to build a simple MES system with communication to existing SAP ECC/ERP, various PLCs and Proficy iHistorian and printing to Zebra label printers.  We have a sa

  • Readdle PDF Expert using JavaScript forms

    Hi there, I am trying to build a form that will handle three successive dependent drop-down menus.  I have this working as both a static and interactive PDF in Adobe Reader.  However, I need to ensure there integration with tablets and smart phones v