Extracting Year from the date field
Hi,
I want to extract year from the date field... I've tried following code but got the error
SELECT to_char(a.A_EXPIRY_DATE,'yyyy') as EXP_YEAR from Table_A a
Please advice
Thanks in advance
user12863454 wrote:
SELECT to_char(a.A_EXPIRY_DATE,'yyyy') as EXP_YEAR from Table_A aThis should work and returns a string.
What error did you get?
maybe your column name is wrong? Is it really A_somthing? This is possible but slightly unusual.
also possible
select extract(Year from sysdate) from dual;
/* with your table and column */
SELECT extract(year from a.A_EXPIRY_DATE) as EXP_YEAR from Table_A a;Edited by: Sven W. on Aug 18, 2010 6:41 PM
Similar Messages
-
Getting the year from the date field
Hi,
Please ltet me know how to get only YEAR form the DATE field
Thanks in advance
Ajaydata:
date like sy-datum,
year(4) type c,
month(2) type c,
day(2) type c.
year = date(4).
month = date+4(2).
day = date+6(2).
Regards,
Michael
Please mark question as anwered if so.... -
Data Extraction issue from the data source 2LIS_08TRTLP
Hi All,
We are facing one issue in time of extraction from data source 2LIS_08TRTLP(Shipment Delivery Item Data per Stage) in BW. For some out bound delivery no. Gross weight(BRGEW) is coming zero though there is value showing in the source system(ECC) in VL03 and in LIPS table. BRGEW (Gross weight) which is directly mapped in BW infosource. There is no restriction in the extraction and 0 is coming for this field in the first layer extraction.Even in the PSA all values are zero.
We have checked those delivery , delivery is being split into batch . But not the all split delivery is
giving this problem.
With Thanks
ShatadruYes I have done the same means I have filled setup table for those shipment no related to that delivery no and checked in the RSA 3 and required value is coming in RSA3 a. That means there is no problem in the Extractor .But I can not pull the data now in BW as it is in Production and every day delta comes .But the in the first layer ODS there is no value for that entry which was previously loaded(Though there is no routine and any restriction).
But I have one observation in the data source that particular field is in INVERSION marked in the Source. But that particular delivery for which it is giving is not canceled or returned or rejected. PGI created for that delivery and delivery status is completed for that. -
How to parse the year from a date.
Hi,
I have the following date format in database.
05-SEP-07
18-OCT-07
18-OCT-07
25-JUL-07
18-OCT-07
What I am trying to do is get only the full year from the date, example
2007
2008
2009
I tried to use extract function but that doesn't work due to ORA-01843: not a valid month.
Thanks in advance.
select extract(year from date '18-OCT-07') from dual;OK. You got an error using date literal. Did you at least look in documentation on date literals? I guess not, otherwise you'd see that data literal synatx is DATE 'YYYY-MM-DD':
SQL> select extract(year from date '18-OCT-07') from dual;
select extract(year from date '18-OCT-07') from dual
ERROR at line 1:
ORA-01843: not a valid month
SQL>
SQL> select extract(year from date '2007-10-18') from dual;
EXTRACT(YEARFROMDATE'2007-10-18')
2007
SQL> SY.
P.S. "I have the following date format in database" is completely wrong dates are always stored in one format - internal date format that stores year, month, day, hour, minute and second. When you select date using client tools like SQL*Plus, SQL Developer, Toad, etc. date is converted to string using either explicit or implicit format where you specify which parts of date you want to see. -
How do I pull just the year from a date?
I'm trying to pull just the year from a date and cannot figure out how this can be done. I tried the SUBSTR fuction but its not acting how I would expect. What I'm wanting to do is write a condition that says Item Birth Year = Current Year minus 23 I have a calc that figures the age from the difference in the birthdate and current year but I'd really like to just write a condition based just one years. Can this be done?
Hello
SUBSTR will only work on a string. To extract portions of a date you need to use the TO_CHAR command.
To get the year you would use this: TO_CHAR(the_date,'YYYY')
TO_CHAR takes 2 switches, the date to be manipulated and the portion to be extracted, with the portion in single quotes.
Once you get used to manipulating dates like this other common pieces are: DD - extracts the day of the month, MON extracts the 3 character code for the month.
Thus you can use this: TO_CHAR(sysdate,'DD-MON-YYYY') and it will convert the current date, June 7th 2012 to 07-JUN-2012
Hope this helps
Best wishes
Michael -
I have a numbers spreadsheet for tracking company data. I want to copy the format of the spreadsheet (rows, columns,and formulas) but have all of the data fields be blank for the new year. How do I do that?
click and hold on one cell, then drag to select the range, then release, then type the delete key. Only inlude cells in the range you do not want to keey the contents of the cell. You can remove one-off cells by holding the command key and clicking cells to add or remove as needed.
You can download the Numbers users guide here:
http://support.apple.com/manuals/#productivitysoftware -
How do you print the entire contents from a data field?
I have a simple Acrobat form that was sent to me and one of the data fields employs a scroll bar because it contains more text than the field can hold. How do I print my document so that it prints everything in that field, not just was is visible?
ThanksI'm not sure you can do this with a standard Adobe Acrobat form. If the form is created with Acrobat Designer (Windows, not Mac product) there is the possibility to have the field grow in size. Designer based forms can be used on a Mac, but cannot be created under the Mac OS (virtualization excluded).
-
How do i extract year from a variable???
Hi all,
I want to extract year from a parameter.
I tried the following, i'm getting errors.
When I executed the below code,
SELECT TO_CHAR(:X_PRM_YR_END_DT,'YYYY') FROM dual;
I got the following error.
ORA-01722:invalid number
When I executed the below code,
SELECT TO_DATE(:X_PRM_YR_END_DT,'YYYY') FROM dual;
SELECT to_char(TO_DATE(:X_PRM_YR_END_DT,'YYYY')) FROM dual;
I got the following error.
ORA-01830: date format end before converting entire input string
When I executed the below code,
SELECT extract(YEAR FROM :X_PRM_YR_END_DT) FROM dual;
SELECT extract(YEAR FROM 1/11/2013) FROM dual;
I got the following error.
ORA-30076: invalid extract field for extract source
How do i extract year from a variable???
Help me plz
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.Try This,
select TO_CHAR(to_date('01/01/1980','dd/mm/yyyy'),'YYYY') FROM dual; -
Viewing and Removing the Time part of the Date field
Hi,
I have Date field in a table.
but in SQL plus when I do
select date from table
this gives me only the Date values and not the timestamps in the date.
I believe Oracle stores 'Date' and 'Time' in fields with Data Type 'Date'.
How do I print the timestamps also in the SQL query?
Moreover, if I have to extract the date field, reset the timestamp to 00:00:00, and store back the date field (with 00 time), how do I do that?
Thanks in advance
- ManuHi,
If you want to retry date and time you can:
SELECT TO_CHAR(DATE,'YYYY/MM/DD HH24:MI:SS') FROM TABLE;
If you want truncate time when inserting in a table simply use TRUNC function
INSERT INTO TABLE (DATE) VALUES (TRUNC(YOUR_DATE));
To extract and insert with time 00:00:00
INSERT INTO TABLE1 (SELECT TRUNC(DATE) FROM TABLE2);
I hope this help you. -
Find the fiscal year for the date
My fiscal year starts from 1st of august to july31
if i pass the period Aug-2011 need to know in which fiscal year it falls in
Expected output as 2012.
How can i write simple queryhI,
893185 wrote:
select EXTRACT (YEAR FROM ADD_MONTHS ('AUG-2011', 5)) from dual
The above is giving non numeic character. How can i write the sqlThe first argument to ADD_MONTHS is supposed to be a DATE, not a string.
Use a DATE instead of the string 'AUG-2011'. For example:
EXTRACT (YEAR FROM ADD_MONTHS ( TO_DATE ( 'AUG-2011'
, 'MON-YYYY'
, 5
) -
Extracting text from BLOB data
Let me start by saying that I'm flying by the seat of my pants on this and I'm neither a CR expert nor can I write SQL. Short of a little basic back on my old Apple IIe (way back when,) my programming skills are essentially nil.
That said, here's what I'm trying to acheive.
I have created a report that uses an ODBC connection to an Oracle database. It works fine, all the tables are properly linked and it delivers a properly functioning report. I now need to extract some text from a BLOB field. I have all the necessary tables added to the report and I've linked them as well. However, when I add an SQL expression and paste in the SQL string that uses the function, "getprop" to try to extract the necessary text from the BLOB data, I get the error: "missing expression"
I notice that within the SQL Expression editor, the field for the BLOB data is not listed in the table in which it resides, though the non-BLOB fields are listed. That is, when I say: select getprop(sl.blobdata,'confirmCompany'), there is no sl.blobdata field which I believe is the source of the "missing expression" error.
If I create a new blank report and simply paste the SQL in as a command in the Database Expert, it will deliver the expected results. I get the two fields I need. This means the SQL string is fine. But, of course, all the other columns I need are not available. As I mentioned above, I can't write SQL and I have a fully functional report that has everything except the two columns i want to add from the BLOB field.
However if I go back to my complete report and add the SQL as a command in the Database Expert, it then asks me to link the fields to the other tables already in the report and that just doesn't work.
I apologize for any mucked up terminology and general concept confusing statements I've made above and hope someone will be able to help me out.
Thanks in advance.
~mSo, in this case you might create a subreport that has
"the SQL in as a command in the Database Expert, it will deliver the expected results. I get the two fields I need. This means the SQL string is fine. But, of course, all the other columns I need are not available. As I mentioned above, I can't write SQL and I have a fully functional report that has everything except the two columns i want to add from the BLOB field. "
of course, this will return all the results, every time it gets kicked off, this is why having something to link to is handy.
You can filter the subreport data, based on main report parameters, if that will help. -
Read Year from System Date & Compare - Assistance required
Hi All,
I am trying to read only the year part from the system date & then checking if any entry exists in EKKO table (EKKO-BEDAT) for the year. I think i am making an error in my data declaration for V_YEAR & in my select statement (EKKO~BEDAT LIKE V_YEAR), not sure how to compare only the year part, can someone help.
DATA:
V_EBELN TYPE EKPO-EBELN,
V_YEAR TYPE SY-DATUM.
CLEAR: V_EBELN, V_YEAR.
*Read year from system date
V_YEAR = SY-DATUM+0(4).
CONCATENATE '%' '%' '%' '%' V_YEAR INTO V_YEAR.
*Select section
SELECT SINGLE EKPO~EBELN INTO V_EBELN
FROM EKPO
INNER JOIN EKKO
ON EKPOEBELN = EKKOEBELN
INNER JOIN LFM1
ON EKKOLIFNR = LFM1LIFNR
WHERE EKKO~LIFNR = LFM1-LIFNR
AND EKKO~BEDAT LIKE V_YEAR
AND EKPO~LOEKZ = SPACE.Hi Sougata,
Thanks for the inputs, but it is not working:
Move: sy-datum(4) to v_begda, -> This reads the system year 2008
'0101' to v_begda, -> This changes 2008 to 0101
sy-datum(4) to v_endda, -> This reads system year i.e. 2008
'1231' to v_endda. -> This changes 2008 to 1231
Also in the select statement
AND EKKO~BEDAT between v_begda and v_endda
This would not work, as EKKO-BEDAT is in year month date format.
So can you please clarify why we are assigining 0101 & 1231 & also how we can compare only the year in EKKO-BEDAT with System Year
Update
I tried to
concatenate '0101 into v_begda.
concatenate '1231' into v_endda.
but system prompts "charlike-field" expected after "'0101'"
Can you please advice?
Edited by: Vivek on Jan 5, 2008 7:59 PM -
90days or 3months data from the date today
Hi,
I have problem on this query, I need to extract the customers that is on 90days or 3months in their subscription of the product from the date today. I know that the startdate field must be used on the condition but don't know the right formula. I have tried different condition but I'm not getting the exact data. I have tried this AND sysdate-startdate<=90 but this give me also customers with less 90 days into their subscription but I just need customers with exact 90days. While this one startdate=sysdate-90 doesn't give me 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
FROM customer c,
info i
WHERE i.id = s.id
AND sysdate-startdate<=90
AND c.enddate>=sysdate
AND c.cancellation_date >= sysdate
Thank you.As David says, there's a hell of a difference between 3 months ago and 90 days ago.
SQL> ed
Wrote file afiedt.buf
1 with t as (select trunc(sysdate,'YYYY') as start_date from dual)
2 ,x as (select rownum rn from dual connect by rownum <= trunc(add_months(sysdate,12),'YYYY')-trunc(sysdate,'YYYY'))
3 --
4 select start_date+rn-1 as dt
5 ,add_months(start_date+rn-1,-3) as "3_months_ago"
6 ,start_date+rn-1-90 as "90_days_ago"
7* from t,x
SQL> /
DT 3_months_ag 90_days_ago
01-Jan-2011 01-Oct-2010 03-Oct-2010
02-Jan-2011 02-Oct-2010 04-Oct-2010
03-Jan-2011 03-Oct-2010 05-Oct-2010
04-Jan-2011 04-Oct-2010 06-Oct-2010
05-Jan-2011 05-Oct-2010 07-Oct-2010
06-Jan-2011 06-Oct-2010 08-Oct-2010
07-Jan-2011 07-Oct-2010 09-Oct-2010
08-Jan-2011 08-Oct-2010 10-Oct-2010
09-Jan-2011 09-Oct-2010 11-Oct-2010
10-Jan-2011 10-Oct-2010 12-Oct-2010
11-Jan-2011 11-Oct-2010 13-Oct-2010
12-Jan-2011 12-Oct-2010 14-Oct-2010
13-Jan-2011 13-Oct-2010 15-Oct-2010
14-Jan-2011 14-Oct-2010 16-Oct-2010
15-Jan-2011 15-Oct-2010 17-Oct-2010
16-Jan-2011 16-Oct-2010 18-Oct-2010
17-Jan-2011 17-Oct-2010 19-Oct-2010
18-Jan-2011 18-Oct-2010 20-Oct-2010
19-Jan-2011 19-Oct-2010 21-Oct-2010
20-Jan-2011 20-Oct-2010 22-Oct-2010
21-Jan-2011 21-Oct-2010 23-Oct-2010
22-Jan-2011 22-Oct-2010 24-Oct-2010
23-Jan-2011 23-Oct-2010 25-Oct-2010
24-Jan-2011 24-Oct-2010 26-Oct-2010
25-Jan-2011 25-Oct-2010 27-Oct-2010
26-Jan-2011 26-Oct-2010 28-Oct-2010
27-Jan-2011 27-Oct-2010 29-Oct-2010
28-Jan-2011 28-Oct-2010 30-Oct-2010
29-Jan-2011 29-Oct-2010 31-Oct-2010
30-Jan-2011 30-Oct-2010 01-Nov-2010
31-Jan-2011 31-Oct-2010 02-Nov-2010
01-Feb-2011 01-Nov-2010 03-Nov-2010
02-Feb-2011 02-Nov-2010 04-Nov-2010
03-Feb-2011 03-Nov-2010 05-Nov-2010
04-Feb-2011 04-Nov-2010 06-Nov-2010
05-Feb-2011 05-Nov-2010 07-Nov-2010
06-Feb-2011 06-Nov-2010 08-Nov-2010
07-Feb-2011 07-Nov-2010 09-Nov-2010
08-Feb-2011 08-Nov-2010 10-Nov-2010
09-Feb-2011 09-Nov-2010 11-Nov-2010
10-Feb-2011 10-Nov-2010 12-Nov-2010
11-Feb-2011 11-Nov-2010 13-Nov-2010
12-Feb-2011 12-Nov-2010 14-Nov-2010
13-Feb-2011 13-Nov-2010 15-Nov-2010
14-Feb-2011 14-Nov-2010 16-Nov-2010
15-Feb-2011 15-Nov-2010 17-Nov-2010
16-Feb-2011 16-Nov-2010 18-Nov-2010
17-Feb-2011 17-Nov-2010 19-Nov-2010
18-Feb-2011 18-Nov-2010 20-Nov-2010
19-Feb-2011 19-Nov-2010 21-Nov-2010
20-Feb-2011 20-Nov-2010 22-Nov-2010
21-Feb-2011 21-Nov-2010 23-Nov-2010
22-Feb-2011 22-Nov-2010 24-Nov-2010
23-Feb-2011 23-Nov-2010 25-Nov-2010
24-Feb-2011 24-Nov-2010 26-Nov-2010
25-Feb-2011 25-Nov-2010 27-Nov-2010
26-Feb-2011 26-Nov-2010 28-Nov-2010
27-Feb-2011 27-Nov-2010 29-Nov-2010
28-Feb-2011 30-Nov-2010 30-Nov-2010
01-Mar-2011 01-Dec-2010 01-Dec-2010
02-Mar-2011 02-Dec-2010 02-Dec-2010
03-Mar-2011 03-Dec-2010 03-Dec-2010
04-Mar-2011 04-Dec-2010 04-Dec-2010
05-Mar-2011 05-Dec-2010 05-Dec-2010
06-Mar-2011 06-Dec-2010 06-Dec-2010
07-Mar-2011 07-Dec-2010 07-Dec-2010
08-Mar-2011 08-Dec-2010 08-Dec-2010
09-Mar-2011 09-Dec-2010 09-Dec-2010
10-Mar-2011 10-Dec-2010 10-Dec-2010
11-Mar-2011 11-Dec-2010 11-Dec-2010
12-Mar-2011 12-Dec-2010 12-Dec-2010
13-Mar-2011 13-Dec-2010 13-Dec-2010
14-Mar-2011 14-Dec-2010 14-Dec-2010
15-Mar-2011 15-Dec-2010 15-Dec-2010
16-Mar-2011 16-Dec-2010 16-Dec-2010
17-Mar-2011 17-Dec-2010 17-Dec-2010
18-Mar-2011 18-Dec-2010 18-Dec-2010
19-Mar-2011 19-Dec-2010 19-Dec-2010
20-Mar-2011 20-Dec-2010 20-Dec-2010
21-Mar-2011 21-Dec-2010 21-Dec-2010
22-Mar-2011 22-Dec-2010 22-Dec-2010
23-Mar-2011 23-Dec-2010 23-Dec-2010
24-Mar-2011 24-Dec-2010 24-Dec-2010
25-Mar-2011 25-Dec-2010 25-Dec-2010
26-Mar-2011 26-Dec-2010 26-Dec-2010
27-Mar-2011 27-Dec-2010 27-Dec-2010
28-Mar-2011 28-Dec-2010 28-Dec-2010
29-Mar-2011 29-Dec-2010 29-Dec-2010
30-Mar-2011 30-Dec-2010 30-Dec-2010
31-Mar-2011 31-Dec-2010 31-Dec-2010
01-Apr-2011 01-Jan-2011 01-Jan-2011
02-Apr-2011 02-Jan-2011 02-Jan-2011
03-Apr-2011 03-Jan-2011 03-Jan-2011
04-Apr-2011 04-Jan-2011 04-Jan-2011
05-Apr-2011 05-Jan-2011 05-Jan-2011
06-Apr-2011 06-Jan-2011 06-Jan-2011
07-Apr-2011 07-Jan-2011 07-Jan-2011
08-Apr-2011 08-Jan-2011 08-Jan-2011
09-Apr-2011 09-Jan-2011 09-Jan-2011
10-Apr-2011 10-Jan-2011 10-Jan-2011
11-Apr-2011 11-Jan-2011 11-Jan-2011
12-Apr-2011 12-Jan-2011 12-Jan-2011
13-Apr-2011 13-Jan-2011 13-Jan-2011
14-Apr-2011 14-Jan-2011 14-Jan-2011
15-Apr-2011 15-Jan-2011 15-Jan-2011
16-Apr-2011 16-Jan-2011 16-Jan-2011
17-Apr-2011 17-Jan-2011 17-Jan-2011
18-Apr-2011 18-Jan-2011 18-Jan-2011
19-Apr-2011 19-Jan-2011 19-Jan-2011
20-Apr-2011 20-Jan-2011 20-Jan-2011
21-Apr-2011 21-Jan-2011 21-Jan-2011
22-Apr-2011 22-Jan-2011 22-Jan-2011
23-Apr-2011 23-Jan-2011 23-Jan-2011
24-Apr-2011 24-Jan-2011 24-Jan-2011
25-Apr-2011 25-Jan-2011 25-Jan-2011
26-Apr-2011 26-Jan-2011 26-Jan-2011
27-Apr-2011 27-Jan-2011 27-Jan-2011
28-Apr-2011 28-Jan-2011 28-Jan-2011
29-Apr-2011 29-Jan-2011 29-Jan-2011
30-Apr-2011 31-Jan-2011 30-Jan-2011
01-May-2011 01-Feb-2011 31-Jan-2011
02-May-2011 02-Feb-2011 01-Feb-2011
03-May-2011 03-Feb-2011 02-Feb-2011
04-May-2011 04-Feb-2011 03-Feb-2011
05-May-2011 05-Feb-2011 04-Feb-2011
06-May-2011 06-Feb-2011 05-Feb-2011
07-May-2011 07-Feb-2011 06-Feb-2011
08-May-2011 08-Feb-2011 07-Feb-2011
09-May-2011 09-Feb-2011 08-Feb-2011
10-May-2011 10-Feb-2011 09-Feb-2011
11-May-2011 11-Feb-2011 10-Feb-2011
12-May-2011 12-Feb-2011 11-Feb-2011
13-May-2011 13-Feb-2011 12-Feb-2011
14-May-2011 14-Feb-2011 13-Feb-2011
15-May-2011 15-Feb-2011 14-Feb-2011
16-May-2011 16-Feb-2011 15-Feb-2011
17-May-2011 17-Feb-2011 16-Feb-2011
18-May-2011 18-Feb-2011 17-Feb-2011
19-May-2011 19-Feb-2011 18-Feb-2011
20-May-2011 20-Feb-2011 19-Feb-2011
21-May-2011 21-Feb-2011 20-Feb-2011
22-May-2011 22-Feb-2011 21-Feb-2011
23-May-2011 23-Feb-2011 22-Feb-2011
24-May-2011 24-Feb-2011 23-Feb-2011
25-May-2011 25-Feb-2011 24-Feb-2011
26-May-2011 26-Feb-2011 25-Feb-2011
27-May-2011 27-Feb-2011 26-Feb-2011
28-May-2011 28-Feb-2011 27-Feb-2011
29-May-2011 28-Feb-2011 28-Feb-2011
30-May-2011 28-Feb-2011 01-Mar-2011
31-May-2011 28-Feb-2011 02-Mar-2011
01-Jun-2011 01-Mar-2011 03-Mar-2011
02-Jun-2011 02-Mar-2011 04-Mar-2011
03-Jun-2011 03-Mar-2011 05-Mar-2011
04-Jun-2011 04-Mar-2011 06-Mar-2011
05-Jun-2011 05-Mar-2011 07-Mar-2011
06-Jun-2011 06-Mar-2011 08-Mar-2011
07-Jun-2011 07-Mar-2011 09-Mar-2011
08-Jun-2011 08-Mar-2011 10-Mar-2011
09-Jun-2011 09-Mar-2011 11-Mar-2011
10-Jun-2011 10-Mar-2011 12-Mar-2011
11-Jun-2011 11-Mar-2011 13-Mar-2011
12-Jun-2011 12-Mar-2011 14-Mar-2011
13-Jun-2011 13-Mar-2011 15-Mar-2011
14-Jun-2011 14-Mar-2011 16-Mar-2011
15-Jun-2011 15-Mar-2011 17-Mar-2011
16-Jun-2011 16-Mar-2011 18-Mar-2011
17-Jun-2011 17-Mar-2011 19-Mar-2011
18-Jun-2011 18-Mar-2011 20-Mar-2011
19-Jun-2011 19-Mar-2011 21-Mar-2011
20-Jun-2011 20-Mar-2011 22-Mar-2011
21-Jun-2011 21-Mar-2011 23-Mar-2011
22-Jun-2011 22-Mar-2011 24-Mar-2011
23-Jun-2011 23-Mar-2011 25-Mar-2011
24-Jun-2011 24-Mar-2011 26-Mar-2011
25-Jun-2011 25-Mar-2011 27-Mar-2011
26-Jun-2011 26-Mar-2011 28-Mar-2011
27-Jun-2011 27-Mar-2011 29-Mar-2011
28-Jun-2011 28-Mar-2011 30-Mar-2011
29-Jun-2011 29-Mar-2011 31-Mar-2011
30-Jun-2011 31-Mar-2011 01-Apr-2011
01-Jul-2011 01-Apr-2011 02-Apr-2011
02-Jul-2011 02-Apr-2011 03-Apr-2011
03-Jul-2011 03-Apr-2011 04-Apr-2011
04-Jul-2011 04-Apr-2011 05-Apr-2011
05-Jul-2011 05-Apr-2011 06-Apr-2011
06-Jul-2011 06-Apr-2011 07-Apr-2011
07-Jul-2011 07-Apr-2011 08-Apr-2011
08-Jul-2011 08-Apr-2011 09-Apr-2011
09-Jul-2011 09-Apr-2011 10-Apr-2011
10-Jul-2011 10-Apr-2011 11-Apr-2011
11-Jul-2011 11-Apr-2011 12-Apr-2011
12-Jul-2011 12-Apr-2011 13-Apr-2011
13-Jul-2011 13-Apr-2011 14-Apr-2011
14-Jul-2011 14-Apr-2011 15-Apr-2011
15-Jul-2011 15-Apr-2011 16-Apr-2011
16-Jul-2011 16-Apr-2011 17-Apr-2011
17-Jul-2011 17-Apr-2011 18-Apr-2011
18-Jul-2011 18-Apr-2011 19-Apr-2011
19-Jul-2011 19-Apr-2011 20-Apr-2011
20-Jul-2011 20-Apr-2011 21-Apr-2011
21-Jul-2011 21-Apr-2011 22-Apr-2011
22-Jul-2011 22-Apr-2011 23-Apr-2011
23-Jul-2011 23-Apr-2011 24-Apr-2011
24-Jul-2011 24-Apr-2011 25-Apr-2011
25-Jul-2011 25-Apr-2011 26-Apr-2011
26-Jul-2011 26-Apr-2011 27-Apr-2011
27-Jul-2011 27-Apr-2011 28-Apr-2011
28-Jul-2011 28-Apr-2011 29-Apr-2011
29-Jul-2011 29-Apr-2011 30-Apr-2011
30-Jul-2011 30-Apr-2011 01-May-2011
31-Jul-2011 30-Apr-2011 02-May-2011
01-Aug-2011 01-May-2011 03-May-2011
02-Aug-2011 02-May-2011 04-May-2011
03-Aug-2011 03-May-2011 05-May-2011
04-Aug-2011 04-May-2011 06-May-2011
05-Aug-2011 05-May-2011 07-May-2011
06-Aug-2011 06-May-2011 08-May-2011
07-Aug-2011 07-May-2011 09-May-2011
08-Aug-2011 08-May-2011 10-May-2011
09-Aug-2011 09-May-2011 11-May-2011
10-Aug-2011 10-May-2011 12-May-2011
11-Aug-2011 11-May-2011 13-May-2011
12-Aug-2011 12-May-2011 14-May-2011
13-Aug-2011 13-May-2011 15-May-2011
14-Aug-2011 14-May-2011 16-May-2011
15-Aug-2011 15-May-2011 17-May-2011
16-Aug-2011 16-May-2011 18-May-2011
17-Aug-2011 17-May-2011 19-May-2011
18-Aug-2011 18-May-2011 20-May-2011
19-Aug-2011 19-May-2011 21-May-2011
20-Aug-2011 20-May-2011 22-May-2011
21-Aug-2011 21-May-2011 23-May-2011
22-Aug-2011 22-May-2011 24-May-2011
23-Aug-2011 23-May-2011 25-May-2011
24-Aug-2011 24-May-2011 26-May-2011
25-Aug-2011 25-May-2011 27-May-2011
26-Aug-2011 26-May-2011 28-May-2011
27-Aug-2011 27-May-2011 29-May-2011
28-Aug-2011 28-May-2011 30-May-2011
29-Aug-2011 29-May-2011 31-May-2011
30-Aug-2011 30-May-2011 01-Jun-2011
31-Aug-2011 31-May-2011 02-Jun-2011
01-Sep-2011 01-Jun-2011 03-Jun-2011
02-Sep-2011 02-Jun-2011 04-Jun-2011
03-Sep-2011 03-Jun-2011 05-Jun-2011
04-Sep-2011 04-Jun-2011 06-Jun-2011
05-Sep-2011 05-Jun-2011 07-Jun-2011
06-Sep-2011 06-Jun-2011 08-Jun-2011
07-Sep-2011 07-Jun-2011 09-Jun-2011
08-Sep-2011 08-Jun-2011 10-Jun-2011
09-Sep-2011 09-Jun-2011 11-Jun-2011
10-Sep-2011 10-Jun-2011 12-Jun-2011
11-Sep-2011 11-Jun-2011 13-Jun-2011
12-Sep-2011 12-Jun-2011 14-Jun-2011
13-Sep-2011 13-Jun-2011 15-Jun-2011
14-Sep-2011 14-Jun-2011 16-Jun-2011
15-Sep-2011 15-Jun-2011 17-Jun-2011
16-Sep-2011 16-Jun-2011 18-Jun-2011
17-Sep-2011 17-Jun-2011 19-Jun-2011
18-Sep-2011 18-Jun-2011 20-Jun-2011
19-Sep-2011 19-Jun-2011 21-Jun-2011
20-Sep-2011 20-Jun-2011 22-Jun-2011
21-Sep-2011 21-Jun-2011 23-Jun-2011
22-Sep-2011 22-Jun-2011 24-Jun-2011
23-Sep-2011 23-Jun-2011 25-Jun-2011
24-Sep-2011 24-Jun-2011 26-Jun-2011
25-Sep-2011 25-Jun-2011 27-Jun-2011
26-Sep-2011 26-Jun-2011 28-Jun-2011
27-Sep-2011 27-Jun-2011 29-Jun-2011
28-Sep-2011 28-Jun-2011 30-Jun-2011
29-Sep-2011 29-Jun-2011 01-Jul-2011
30-Sep-2011 30-Jun-2011 02-Jul-2011
01-Oct-2011 01-Jul-2011 03-Jul-2011
02-Oct-2011 02-Jul-2011 04-Jul-2011
03-Oct-2011 03-Jul-2011 05-Jul-2011
04-Oct-2011 04-Jul-2011 06-Jul-2011
05-Oct-2011 05-Jul-2011 07-Jul-2011
06-Oct-2011 06-Jul-2011 08-Jul-2011
07-Oct-2011 07-Jul-2011 09-Jul-2011
08-Oct-2011 08-Jul-2011 10-Jul-2011
09-Oct-2011 09-Jul-2011 11-Jul-2011
10-Oct-2011 10-Jul-2011 12-Jul-2011
11-Oct-2011 11-Jul-2011 13-Jul-2011
12-Oct-2011 12-Jul-2011 14-Jul-2011
13-Oct-2011 13-Jul-2011 15-Jul-2011
14-Oct-2011 14-Jul-2011 16-Jul-2011
15-Oct-2011 15-Jul-2011 17-Jul-2011
16-Oct-2011 16-Jul-2011 18-Jul-2011
17-Oct-2011 17-Jul-2011 19-Jul-2011
18-Oct-2011 18-Jul-2011 20-Jul-2011
19-Oct-2011 19-Jul-2011 21-Jul-2011
20-Oct-2011 20-Jul-2011 22-Jul-2011
21-Oct-2011 21-Jul-2011 23-Jul-2011
22-Oct-2011 22-Jul-2011 24-Jul-2011
23-Oct-2011 23-Jul-2011 25-Jul-2011
24-Oct-2011 24-Jul-2011 26-Jul-2011
25-Oct-2011 25-Jul-2011 27-Jul-2011
26-Oct-2011 26-Jul-2011 28-Jul-2011
27-Oct-2011 27-Jul-2011 29-Jul-2011
28-Oct-2011 28-Jul-2011 30-Jul-2011
29-Oct-2011 29-Jul-2011 31-Jul-2011
30-Oct-2011 30-Jul-2011 01-Aug-2011
31-Oct-2011 31-Jul-2011 02-Aug-2011
01-Nov-2011 01-Aug-2011 03-Aug-2011
02-Nov-2011 02-Aug-2011 04-Aug-2011
03-Nov-2011 03-Aug-2011 05-Aug-2011
04-Nov-2011 04-Aug-2011 06-Aug-2011
05-Nov-2011 05-Aug-2011 07-Aug-2011
06-Nov-2011 06-Aug-2011 08-Aug-2011
07-Nov-2011 07-Aug-2011 09-Aug-2011
08-Nov-2011 08-Aug-2011 10-Aug-2011
09-Nov-2011 09-Aug-2011 11-Aug-2011
10-Nov-2011 10-Aug-2011 12-Aug-2011
11-Nov-2011 11-Aug-2011 13-Aug-2011
12-Nov-2011 12-Aug-2011 14-Aug-2011
13-Nov-2011 13-Aug-2011 15-Aug-2011
14-Nov-2011 14-Aug-2011 16-Aug-2011
15-Nov-2011 15-Aug-2011 17-Aug-2011
16-Nov-2011 16-Aug-2011 18-Aug-2011
17-Nov-2011 17-Aug-2011 19-Aug-2011
18-Nov-2011 18-Aug-2011 20-Aug-2011
19-Nov-2011 19-Aug-2011 21-Aug-2011
20-Nov-2011 20-Aug-2011 22-Aug-2011
21-Nov-2011 21-Aug-2011 23-Aug-2011
22-Nov-2011 22-Aug-2011 24-Aug-2011
23-Nov-2011 23-Aug-2011 25-Aug-2011
24-Nov-2011 24-Aug-2011 26-Aug-2011
25-Nov-2011 25-Aug-2011 27-Aug-2011
26-Nov-2011 26-Aug-2011 28-Aug-2011
27-Nov-2011 27-Aug-2011 29-Aug-2011
28-Nov-2011 28-Aug-2011 30-Aug-2011
29-Nov-2011 29-Aug-2011 31-Aug-2011
30-Nov-2011 31-Aug-2011 01-Sep-2011
01-Dec-2011 01-Sep-2011 02-Sep-2011
02-Dec-2011 02-Sep-2011 03-Sep-2011
03-Dec-2011 03-Sep-2011 04-Sep-2011
04-Dec-2011 04-Sep-2011 05-Sep-2011
05-Dec-2011 05-Sep-2011 06-Sep-2011
06-Dec-2011 06-Sep-2011 07-Sep-2011
07-Dec-2011 07-Sep-2011 08-Sep-2011
08-Dec-2011 08-Sep-2011 09-Sep-2011
09-Dec-2011 09-Sep-2011 10-Sep-2011
10-Dec-2011 10-Sep-2011 11-Sep-2011
11-Dec-2011 11-Sep-2011 12-Sep-2011
12-Dec-2011 12-Sep-2011 13-Sep-2011
13-Dec-2011 13-Sep-2011 14-Sep-2011
14-Dec-2011 14-Sep-2011 15-Sep-2011
15-Dec-2011 15-Sep-2011 16-Sep-2011
16-Dec-2011 16-Sep-2011 17-Sep-2011
17-Dec-2011 17-Sep-2011 18-Sep-2011
18-Dec-2011 18-Sep-2011 19-Sep-2011
19-Dec-2011 19-Sep-2011 20-Sep-2011
20-Dec-2011 20-Sep-2011 21-Sep-2011
21-Dec-2011 21-Sep-2011 22-Sep-2011
22-Dec-2011 22-Sep-2011 23-Sep-2011
23-Dec-2011 23-Sep-2011 24-Sep-2011
24-Dec-2011 24-Sep-2011 25-Sep-2011
25-Dec-2011 25-Sep-2011 26-Sep-2011
26-Dec-2011 26-Sep-2011 27-Sep-2011
27-Dec-2011 27-Sep-2011 28-Sep-2011
28-Dec-2011 28-Sep-2011 29-Sep-2011
29-Dec-2011 29-Sep-2011 30-Sep-2011
30-Dec-2011 30-Sep-2011 01-Oct-2011
31-Dec-2011 30-Sep-2011 02-Oct-2011
365 rows selected.
SQL>If you look at the dates around the end of May, 3 months ago stays at 28th Feb for 4 days, whilst 90 days ago is continually progressive.
Also, if you look at the dates around 29th and 30th November, then the 3 months ago misses the 30th August out (that's what David was talking about)
Depends what the actual requirements are, but if it's for a daily rolling window, I'd probably go for the 90 days version. If it's for months reports, I'd go for the monthly version.
Edited by: BluShadow on 11-Feb-2011 12:14 -
Powerpivot Error on Refresh -- "We couldn't get data from the data model..."
I'm using Excel 2013 and Windows 8.1. I have a spreadsheet I've been using for over a year, and I've just started getting this error message when I try to refresh the data.
"We couldn't get data from the Data Model. Here's the error message we got:
The 'attributeRelationship' with 'AttributeID' - 'PuttDistCat9' doesn't exist in the collection"
Any idea how I can fix this problem? I haven't changed anything related to that particular attribute. All the data is contained in separate sheets in the workbook, so there are no external sources of data.
Thanks.
JeanThanks for all the suggestions.
I found a slightly older version of the spreadsheet that still refreshes properly, so I don't think I have any issues with the version of Excel or Power Query. (I've had this same error before, and I believe I applied the hotfix at that time.)
I think this problem started after I updated a number of the date filters in the pivot tables. I haven't made any changes to the data model, and the only updates I've made were to add data (which I do all the time), and to change the date filters on
the pivot tables.
As suggested, I added a new pivot table querying one table (the table with the attribute that shows up in the error message), and it worked fine. I can also refresh this pivot table.
Then I tried adding a pivot table which went against several tables in the data model (including the table in question). The pivot table seemed to return that data properly. However, when I tried to refresh it, I got the same error message ("we
couldn't get data from the data model...").
Dany also suggested running the queries one at a time to see which one is in error. Without checking all the pivot tables, it appears that any which use the table "HolePlayedStrokes" generate the error (this is the table with the attribute
mentioned in the error message). Pivot Tables without that particular table seem to refresh OK. Unfortunately, that is the main table in my data model, so most of the pivot tables use it.
Any other suggestions? I'd be happy to send a copy of the spreadsheet.
Thanks for all the help.
Jean -
"An error occurred while extracting files from the package "BaseSystem.pkg".
Hello!
I have a
MacBookPro5,5
Prozessortyp:Intel Core 2 Duo
Prozessorgeschwindigkeit:2.26 GHz
Anzahl der Prozessoren:1
Gesamtzahl der Kerne:2
L2-Cache:3 MB
Speicher:2 GB
Busgeschwindigkeit:1.07 GHz
Boot-ROM-Version:MBP55.00AC.B03
SMC-Version (System):1.47f2
Hardware-UUID:A2DD27C4-9829-5A4D-854B-485EF8A6B20F
Problem:
I upgraded Leopard to Snow Leopard. Everything worked fine for a month. To free up disk space I deleted some of the iPhoto flders (modfied and original images). Everything worked still fine. Shut down the computer. Next day it was incredibly slow. At the same time the indexing was running. I stopped indexing, but stll slow. Every operation took minutes. I tried all the tricks that I found in the internet (repaired file permissions, repaired disk, cleared PRAM , moved big filed from desktop, etc.). After 24 full hours of trying all this I decided to erase the hard drive and reinstall, directly from the Snow Leopard Install disk, but it fails after downloading the packages. Below is the part of the log. Then I tried to use the old Leopard install DVD to reinstall Leopard, it then sais estimated time 12 hours or so and eventually crashed, spitting out a lot of "reportcrash" in the log. What is going on? I'm running out of options. Any advice? Would zeroing the hard drive help? If nothing else I plan to buy a new hard drive, since the only explanation I have is that there is a problem with the hard driven although the disk utility says it is OK. I need a bigger one anyway. Any ideas? Thank you!
Aug 16 05:17:31 localhost OSInstaller[139]: IFPKInstallElement (191 packages)
Aug 16 05:17:35 localhost OSInstaller[139]: PackageKit: ----- Begin install -----
Aug 16 05:17:35 localhost OSInstaller[139]: PackageKit: request=PKInstallRequest <191 packages, destination=/Volumes/Macintosh HD>
Aug 16 05:17:36 localhost OSInstaller[139]: PackageKit: Extracting /Volumes/Macintosh HD/Mac OS X Install Data/BaseSystem.pkg (destination=/Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root, uid=0)
Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/DataPool.c:116 : Error: finished pool without filling it
Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/commonUtils.c: 315: Error: fh_pread -1
Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:236: Error: write failed for /Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root//System/Library/Frameworks/OpenCL.framework/Versi ons/A/Resources/runtime.amdil.bc: Invalid argument
Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:260: Error: futimes failed for /Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root//System/Library/Frameworks/OpenCL.framework/Versi ons/A/Resources/runtime.amdil.bc: Invalid argument
Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:829: Error: returning errno 22 from FinishStreamCompressorQueue
Aug 16 05:32:10 localhost OSInstaller[139]: PackageKit: Install Failed: PKG: extracting "com.apple.pkg.BaseSystem"\nError Domain=PKInstallErrorDomain Code=110 UserInfo=0x12c8366a0 "An error occurred while extracting files from the package “BaseSystem.pkg”." Underlying Error=(Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 "The operation couldn’t be completed. FinishStreamCompressorQueue error") {\n NSFilePath = "/Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root";\n NSLocalizedDescription = "An error occurred while extracting files from the package \U201cBaseSystem.pkg\U201d.";\n NSURL = "BaseSystem.pkg -- file://localhost/Volumes/Macintosh%20HD/Mac%20OS%20X%20Install%20Data/index.pro duct";\n NSUnderlyingError = "Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 \"The operation couldn\U2019t be completed. FinishStreamCompressorQueue error\"";\n PKInstallPackageIdentifier = "com.apple.pkg.BaseSystem";\n}
Aug 16 05:32:10 localhost OSInstaller[139]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=110 UserInfo=0x12c8366a0 "An error occurred while extracting files from the package “BaseSystem.pkg”." Underlying Error=(Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 "The operation couldn’t be completed. FinishStreamCompressorQueue error")
Aug 16 05:32:11 localhost OSInstaller[139]: Install failed: Die Installation ist aufgrund eines Fehlers fehlgeschlagen. Wenden Sie sich an den Hersteller der Software.
Aug 16 05:32:13 localhost OSInstaller[139]: Allowing machine sleep.
Aug 16 05:32:15 localhost OSInstaller[139]: Memory statistics for 'Installation ist fehlgeschlagen' pane:
Aug 16 05:32:15 localhost OSInstaller[139]: Physical Memory Allocation: 139 MB wired, 259 MB trapped, 397 MB active, 7 MB inactive, 1246 MB free, 1650 MB usable, 2048 MB totalIt sounds to me like your Internal Hard Drive is failing.
I recommend you buy a new one, that is a good candidate for replacing the old one, but install it in an External enclosure and Install a fresh Mac OS X on it from the DVD. You can boot your Mac from any attached drive.
The new System can be used to get some work done, check your emails, and takes the pressure off resolving this immediately. You can also attempt to salvage files off the old drive if needed.
Once things seem to be working, then move the new drive inside the computer. Failures at this point may be due to bad cable, which has been a problem in some of these MacBooks.
Use security erase, write Zeroes, one pass, to re-write every block on the old drive. Any block discovered to be bad will be replaced with spares the drive holds in reserve for this purpose. If more than 10 blocks are pared on one pass, "Initialization Failed!" will be the result. Although you can try the erase again, there is some question whether you want to trust this drive with your precious data.
Maybe you are looking for
-
Error while deploying a Model.
Hi, I developed a Model and i tested it,it is working fine.Now i comiled it.No errors are found.I'am trying to deploy it but it is giving me an error "Error in compiling Flex application (1). Consult log file for details." I had seen some queries pos
-
Poor webcam image quality (HP Touchsmart Notebook
I recieved a HP touchsmart Notebook as a Christmas gift and the image quality is horrible! Even in a well lit environment, the image is still not clear. I have adjusted the settings to try to improve the image quality, but there is still not much o
-
Tried the various disable options with no joy. Don't know what else to do
-
How do you keep aggr permanent across reboots on Sol 10?
How can I keep my aggr permanent across the reboot?? The steps in the manual don't work for my system. It is the 1/06 build and the latest patch cluster has been added. (Kernel 118833-36) I created an aggr with bge1 and bge2 and enabled LACP on the N
-
Long running servlet in a single node of a cluster
Good evening, I am developing a J2EE application that consists of a number of web services that perform background processing of relatively long-running jobs. Status of the jobs actually need to be reported back to the SAP ABAP system, which we do v