Partition contain latest 30 days data
i have a table with range partition date colums.i want to a procedure that contain the latest 30 days data and previous partitions remove.how to solve this problem.
thx
i want to a procedure that contain the latest 30 days data and previous partitions removeCould you clarify ? Do you want code to keep 30 last days data and remove older ?
Nicolas.
Similar Messages
-
F110 - Bill of exchange - latest due date more than 999 days ?
Hi all:
We have a problem about Payment run / F110.
Because finance department want to open "Check" to bank and the due date is about 4 years later (1500 Days).
And we run the payment run it shows error message " FZ 732 Item not due in 000 - 999 days " .
I think the reason is because the maxium latest due date only allowed 999 days,right ??
"Latest due date in" of "Bill of exchange due date for outgoing payments" in paying Company Code (OBVS)
Is there any way ( IMG / Exit / Enhancement ) can resolve this problem ??
thanks a lot.Hi Mauri:
Thanks your reply.
actually, we have asked user to open their check - more then 999 days - manually.
Because this is the second case we met in past 6 months, so we are looking for any solution ( Exit / Enhancement ) to meet user's requirement.
We won't create any new add-on program to meet user's requirement, but hope exit or enhancement can make it, anyway, thanks again. -
How to directly access day/date in iOS 8 phone calendar?
I have an iPhone 5, and mistakenly downloaded the latest OS 8.0. I have not experienced some of the other problems reported with this upgrade, but am totally frustrated with the latest release of the Calendar app.
The new iPhone software does not seem to allow me to enter appointments/events directly to the date chosen. When in the Month display, this latest software will not allow access to the date chosen, but now pulls up a list of dates with already scheduled events. If I don't want one of those dates, there appears to be no way to get the date I want anymore. When the + (add event icon in upper right) is tapped, the app now displays whatever date it chooses but NOT the date I wanted to enter a new event in. I must then readjust the date wheel to the date I want before proceeding with the calendar entry.
It seems the calendar can now only find/display days/dates that have entries/events already in place. This is completely bass-ackwards prioritization of entry process. When I call up a date in the calendar from the month display, it should give me that date, NOT some other date(s) that already have entries/events/appointments. I want the date I am requesting.
What to do?Thanks!
When I tried the "list" icon previously, nothing happened to change the screen. Now it works fine (Doh!). -
How do you use the "Item Containing Start/End Date" in a Calendar?
Hi
I want to do a calendar where the days shown will be conditional to a certain interval. Now I though I could achieve that using the Item Containing Start Date of a calendar. But it doesn't seem to work. In the help it says :
Enter an item in the application which holds the start date of the calendar. The format of the date in this item must be YYYYMMDD.
This is what I did here
http://apex.oracle.com/pls/otn/f?p=34530:1::::::
I have 3 fields. 2 for the Start Date and End Date and 1 for the "Date Item" parameter. Only the latter has an effect on the calendar display, the calendar only displays the month of the "Date Item" (in monthly mode).
Wether or not I check "Begin at Start of Interval", it doesn't affect the way those fields are affecting the Calendar.
So, how do we use that "Item Containing Start/End Date" parameter?Hello,
does yout Script work when you begin with ?:
Start-Process powershell -Verb runAs
Best regards,
Stefan
German Orchestrator Portal ,
My blog in English -
Importing a file containing long raw data
I have got a .dmp file which was exported from an oracle 8i database & contains a long raw column.Now, when i try to import this file in to oracle 9i database, the import says,
C:\>imp
Import: Release 9.2.0.1.0 - Production on Sat Aug 20 14:51:03 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Username: sys@mydb2 as sysdba
Password:
Connected to: Personal Oracle9i Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Import file: EXPDAT.DMP > invoice_content.dmp
Enter insert buffer size (minimum is 8192) 30720>
Export file created by EXPORT:V08.01.07 via conventional path
Warning: the objects were exported by TPSYSADM, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
export client uses US7ASCII character set (possible charset conversion)
export server uses US7ASCII NCHAR character set (possible ncharset conversion)
List contents of import file only (yes/no): no >
Ignore create error due to object existence (yes/no): no >
Import grants (yes/no): yes >
Import table data (yes/no): yes >
Import entire export file (yes/no): no >
Username: tpsysadm
Enter table(T) or partition(T:P) names. Null list means all tables for user
Enter table(T) or partition(T:P) name or . if done:
. importing TPSYSADM's objects into SYS
Import terminated successfully without warnings.
Now, when i query from the sys user, i dont find any object with the name invoice_contents.
Can any 1 help me out of the above problem.
Thanks in advance.The import seems OK, but it also seems that no rows have been imported, maybe no tables. What is the result of :
SQL> select owner, table_name from dba_tables where table_name like '%INVOICE%';
BTW, is the name invoice_content or invoice_contents ?
If the query does not give result, then try to check the content of your dmp file
C:\> imp user/password@db file=invoice_content.dmp full=y show=y
Paul -
"This document contains Adobe photoshop data which appears to be damaged.
"This document contains Adobe photoshop data which appears to be damaged. Continue and ignore the photoshop data?" --- I am getting this message when im trying to open a photoshop file which I have worked last couple of days and when I say “OK” I’m just getting a blank black background screen and nothing on it.. but the file size remains 10mb... Please help me to recover my designs..!!! pls..
Did you try opening a flattened version of the file? Press and hold down Opt + Shift (Mac) or Alt + Shift (Win) as you open the file. See if you're able to at least recover a flattened copy of the file that you can save as a JPG.
If not, I'm sorry to break this - you may be out of luck. There are lot of PSD repair programs - but they hardly work to recover all of lost data.
This error message is very rare and is usually caused due to a bad sector on drive, improper eject of USB (if your file was once stored there) or a hard drive that is about to conk. This is one of the reasons you should keep 'Backing up' - make it a process!
Btw, are you on Windows/ Mac OS?
Good luck.
-ST -
Pickup the Latest Result Date (Query involves 3 tables)
Hello folks,
I have a relatively simple request. It involves 3 simple tables. I want to return the Student along with the Results based on the Latest Result Date and a Flag. Any help is appreciated.
Thanks
Assumptions
STUDENT_ID is unique in STUDENT_TB
EXAM_VISIT_ID is Unique in EXAM_RESULTS_TB.
Scripts for table creation and INSERT statements
create table student_tb (student_id varchar2(4));
create table exam_tb (student_id varchar2(4), exam_visit_id number, exam_date date);
create table exam_results (exam_visit_id number, result_date date, results number, result_flag varchar2(1));
insert into student_tb values('1001');
insert into student_tb values('1002');
Insert into EXAM_TB (STUDENT_ID,EXAM_DATE,EXAM_VISIT_ID) values ('1001',to_date('01-JAN-12','DD-MON-RR'),1);
Insert into EXAM_TB (STUDENT_ID,EXAM_DATE,EXAM_VISIT_ID) values ('1001',to_date('01-APR-12','DD-MON-RR'),2);
Insert into EXAM_TB (STUDENT_ID,EXAM_DATE,EXAM_VISIT_ID) values ('1001',to_date('01-JUL-12','DD-MON-RR'),3);
Insert into EXAM_TB (STUDENT_ID,EXAM_DATE,EXAM_VISIT_ID) values ('1001',to_date('01-SEP-12','DD-MON-RR'),4);
Insert into EXAM_RESULTS_TB (EXAM_VISIT_ID,RESULT_DATE,FLAG,RESULTS) values (1,to_date('01-FEB-12','DD-MON-RR'),'N',10);
Insert into EXAM_RESULTS_TB (EXAM_VISIT_ID,RESULT_DATE,FLAG,RESULTS) values (2,to_date('01-MAY-12','DD-MON-RR'),'Y',40);
Insert into EXAM_RESULTS_TB (EXAM_VISIT_ID,RESULT_DATE,FLAG,RESULTS) values (3,to_date('01-AUG-12','DD-MON-RR'),'Y',32);
Insert into EXAM_RESULTS_TB (EXAM_VISIT_ID,RESULT_DATE,FLAG,RESULTS) values (4,to_date('01-DEC-12','DD-MON-RR'),'N',20);I would like to pick up the Student along with the RESULT_DATE and RESULTS where the RESULT_DATE (EXAM_DATE is irrelevant for this exercise) is the most recent for that Student and the flag = 'Y'. EXAM_VISIT_ID is Unique. So, the record that needs to be returned from this Result set is
1001 3 01-AUG-12 32Hi,
That's an example of a Top-N Query , and here's one way to do it:
WITH got_r_num AS
SELECT e.student_id, e.exam_visit_id
, er.result_date, er.results
, RANK () OVER ( PARTITION BY e.student_id
ORDER BY er.result_date DESC
) AS r_num
FROM exam_tb e
JOIN exam_results_tb er ON er.exam_visit_id = e.exam_visit_id
WHERE er.flag = 'Y'
SELECT student_id, exam_visit_id
, result_date, results
FROM got_r_num
WHERE r_num = 1
;Thanks for posting the CREATE TABLE and INSERT statements. Please make sure they work before posting them. There is some confusion about the table (EXAM_RESULTS or EXAM_RESULTS_TB) and column (FLAG or RESULT_FLAG) names.
What results do you want if there is a tie for the most recent exam for a given student? (E.g., if we change the result_date on this row
Insert into EXAM_RESULTS_TB (EXAM_VISIT_ID,RESULT_DATE,FLAG,RESULTS) values (2,to_date('01-MAY-12','DD-MON-RR'),'Y',40);to be August 1, 2012, just like the row with exam_visit_id=3)?
Depending on your requirements, you may want to add tie-breaking columns to the end of the analytic ORDER BY clause, and/or use ROW_NUMBER instead of RANK. -
User exit for "Latest GR date"
Hi Experts,
Please can any one provide me user exit for "Latest GR date" field in PO item level to update the value with 180 days plus on the delevery date mentioned for PO item.
Thanks in advance.
Regards,
VijayPlease check this answered link:
Common USER EXIT for ME21N,ME22N
Edited by: Afshad Irani on Jun 18, 2010 11:08 AM -
How to pull the Latest Time/Date of the update?
Hi BW gurus,
Hope everyone is fine.
I have a doubt to meet my user requirement.
I have a developed the infocubes and Infoset(combining only two master data infoprovider infoobjects) and created few reports on them.
Now the requirement is
"Client is asking for the latest date on which the data target is updated".
Say if we run the infopackage on a particular day say "Dec 1st 2006"
For example one cube is a full update, always by dropping the previously loaded data and one cube is updated with the delta update.
For all the reports , if we run the query, the report should give the information stating that the latest update was made on "UPDATED DATE=Dec 1st 2006".
how to achieve this?
Please somebody help me out.
Please tell me the step by step that I need to follow to achieve this.
Any kind of help is appreciated.
I am still in DEV.
Thanks in advance,
Regards
Sam MathewHello
This can be achieved
First add an infoobject to your Data targets for Update date
Second , include the update date infoobject in your infosource
Map the infoobject with the field sys-datum which is current system date
So whenever you execute an infopackage, the sys-datum field will pick up the current date at which it is executed.
This is what you want in BW as latest update date of data target
Regards
Ganesh N -
Since the latest up-date I can't see any movies. It always returns to the main menu. Is anyone else having this problem and how do I fix it? We have gone 3 days without the use of renting movies.
Welcome to the Apple Community.
First you should try logging out of your iTunes Store account (settings > iTunes Store > accounts) and then back in again.
If that doesn't help, try resetting the Apple TV (Settings > General > Reset > Reset all settings). You should also try restarting your router.
If both of the above don't help, you should try a restore (Settings > General > Reset > Restore). -
Latest backup date can't be found
Hello.
Since a few day, my Time Machine icon in the menubar won't give me the latest backup date ! I've the same problem in the system preferences. The system shows me only two dashes.
It was before I update to 10.5.3, and the update didn't do anything.
Thanks for your help.
J-B
PS : please excuse me for my bad English, I'm French.Open your home folder, then double-click "Library". From there, double click "Preferences".
In there, there should be a com.apple.timemachine.plist file.
Move that to your Desktop as well as the one located at MacHD>Library>Preferences>com.apple.timemachine.plist (make SURE you know which is which.)
Then restart.
Good luck! -
Latest GR date to be automated
Hi Experts,
Pls note, my client uses Latest GR date slot in the PO (delivery tab) for almost all POs. Now to speed up the process they want the slot to be in display mode and it should add ten days (example) to del. date & reflect a latest date. For ex: Del. date is 20-Jan, latest GR date to be 30-Jan.
If not for all cases at least they want it to be done for few of the materials OR few of the vendors.
Is this possible? Please help.
Thanks,
Rajoohi
unfortunatly no such functionality is available with std SAP where system will propose latest GR date as delivery date +10 days automaticaly
u have to do this manualy
May be check with ABAPer whether he can fill that field using any enhancements
Vishal... -
01-jan-09 5
02-jan-09 3
03-jan-09 2
01-feb-09 1
02-feb-09 1
03-feb-09 1
04-feb-09 1
05-feb-09 1
06-feb-09 1
07-feb-09 1
select sum(featured_moveouts) OVER (PARTITION BY propertynumber ORDER BY relavantdate
RANGE BETWEEN ADD_MONTHS (TRUNC ( relavantdate, 'MM'), 1)-relavantdate FOLLOWING
AND ADD_MONTHS (TRUNC ( relavantdate, 'MM'), 1) + 6-relavantdate FOLLOWING) "FW1_NEXT_MONTH_OUTS"
from fact_occupancy
if i give the above query i will get the sum of next months first week data if i give any date in jan
for example: if i give 09-jan-09 i will get the sum of next months first week data.. i,e 7
...i dont want that i need next months 7th(07-feb-09) day data if i give any date in jan
Edited by: sai praneeth on Mar 14, 2009 12:56 AMI'm sorry but I don't understand... could you post the tables (CREATE TABLE statements) and some sample data (INSERT statements). And the expected outcome, the results.
-
Find the latest Start date after a gap in date Field For each id
Hi All, Can anyone help me in this, as it is so urgent ..My requirement is to get the latest start date after a gap in a month for each id and if there is no gap for that particular id minimum date for that id should be taken….Given below the scenario
ID StartDate
1 2014-01-01
1 2014-02-01
1 2014-05-01-------After Gap Restarted
1 2014-06-01
1 2014-09-01---------After last gap restarted
1 2014-10-01
1 2014-11-01
2 2014-01-01
2 2014-02-01
2 2014-03-01
2 2014-04-01
2 2014-05-01
2 2014-06-01
2 2014-07-01
For Id 1 the start date after the latest gap is 2014-10-01 and for id=2 there is no gap so i need the minimum date 2014-01-01
My Expected Output
id Startdate
1 2014-10-01
2 2014-01-01
Expecting your help...Thanks in advanceIf you're using SQL Server 2012 this will work for you...
IF OBJECT_ID('tempdb..#temp') IS NOT NULL
DROP TABLE #temp
GO
CREATE TABLE #temp (
ID INT,
StartDate DATE
INSERT #temp (ID, StartDate) VALUES
(1,'2014-01-01'),
(1,'2014-02-01'),
(1,'2014-05-01'),
(1,'2014-06-01'),
(1,'2014-09-01'),
(1,'2014-10-01'),
(1,'2014-11-01'),
(2,'2014-01-01'),
(2,'2014-02-01'),
(2,'2014-03-01'),
(2,'2014-04-01'),
(2,'2014-05-01'),
(2,'2014-06-01'),
(2,'2014-07-01')
-- SQL 2012 and later --
;WITH gg AS (
SELECT
COALESCE(DATEDIFF(mm, LAG(t.StartDate, 1) OVER (PARTITION BY t.ID ORDER BY t.StartDate), t.StartDate), 2) AS GetGap
FROM #temp t
), did AS (
SELECT DISTINCT t.ID FROM #Temp t
SELECT
did.ID,
x.StartDate
FROM
did
CROSS APPLY (
SELECT TOP 1
gg.StartDate
FROM gg
WHERE did.ID = gg.ID
AND gg.GetGap > 1
ORDER BY gg.StartDate DESC
) x
If you're on an earlier version than 2012, let me know. It's an easy rewrite but the final code isn't as efficient.
Jason Long -
Hi :
I am trying to select Work Orders based on
Planning Plant M600; system status excluding CNF, TECO, CLSD, DLFL including PCNF, CRTD, REL; excluding work order types PM04 & PM09; and excluding latest finish dates greater than 42 days in the future.
How can i write condition for excluding work orders whose
latest finish date ( mcafvgv-ssedd) greater than 42days in the future.
Thanks.
Raghudeclare a variable & store the latest finish date in it for comparison. ie
data: w_fin_dt type sy-datum.
w_fin_dt = sy-datum + 42.
check mcafvgv-ssedd gt w_fin_dt.
~Suresh
Maybe you are looking for
-
Razer Lachesis not always working on MSI 790FX-GD70 - needs to be replugged
When I boot my new system, my Razer Lachesis (gaming mouse) doesn't always work directly, it doesn't more or click. I need to unplug and then plug it back in to get it to work. First I thought it had to have something to do with the driver, so I inst
-
Issue with services being published in SR
Hi Experts, We have an issue with services being published in SR 1. Service is created and published from ECC to Service registry 2. End points are created in Soa manager But the service state is shown as u2018Modelledu2019 instead of u20
-
Motive of checkpoint and SCN using with DBWr and LOGWr processes ??
What checkpoint has to do with log writer process i am not getting exactly ?.. Like see i fire 1 update query and apparently it is generating some redo blocks which in turn will come to my redo log files now in tihs whole cycle where the checkpoint w
-
firefox new upgrade will not let new (untitled) tab to open. I'm using windows vista with firefox Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.15) Gecko/20110303 AskTbBLT/3.11.3.15590 Firefox/3.6.15 ( .NET CLR 3.5.30729; .NET4.0C)
-
In 11i, can you develop model specifications by item? It appears whatever model you select gets imposed on every SKU and customer. What if you want to adjust the model specification by SKU or a group of skus?