Fetching the latest record
Hi,
I have testcycl table which holds the results of tests for each testid and the status with execution date and time as below:
TESTCYCL
TESTID STATUS TEST_EXEC_DATE TEST_EXEC_TIME
1234 Passed
01/12/2014 00:00:00 9:00
1234 Failed
01/14/2014 00:00:00 11:00
1234 Passed
01/14/2014 00:00:00 22:00
456 Passed
01/12/2014 00:00:00 9:00
456 Failed
02/14/2014 00:00:00 11:00
999 Passed
01/14/2014 00:00:00 22:00
I need to fetch the latest status of each test id based and date and time of execution.
ie
1234 Passed
01/14/2014 00:00:00 22:00
456 Failed
02/14/2014 00:00:00 11:00
999 Passed
01/14/2014 00:00:00 22:00
Please help me abt this. Thanks in advance
Sam
Please try the following.
;with TESTCYCL as
SELECT 1234 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/12/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'9:00') AS TEST_EXEC_TIME
union all
SELECT 1234 AS TESTID, 'Failed' AS [STATUS], CONVERT(DATE,'01/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'11:00') AS TEST_EXEC_TIME
union all
SELECT 1234 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'22:00') AS TEST_EXEC_TIME
union all
SELECT 456 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/12/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'9:00') AS TEST_EXEC_TIME
union all
SELECT 456 AS TESTID, 'Failed' AS [STATUS], CONVERT(DATE,'02/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'11:00') AS TEST_EXEC_TIME
union all
SELECT 999 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'22:00') AS TEST_EXEC_TIME
union all
SELECT 999 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'21:00') AS TEST_EXEC_TIME
union all
SELECT 998 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'9:00') AS TEST_EXEC_TIME
union all
SELECT 998 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/15/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'8:00') AS TEST_EXEC_TIME
SELECT *
FROM TESTCYCL as t
WHERE NOT EXISTS (
SELECT 1
FROM TESTCYCL
WHERE
( TESTID = t.TESTID )
AND
(TEST_EXEC_DATE > t.TEST_EXEC_DATE)
OR
(TEST_EXEC_DATE = t.TEST_EXEC_DATE AND TEST_EXEC_TIME > t.TEST_EXEC_TIME )
Similar Messages
-
Hi all,
I have to fetch a record from the table T71ADM10, which is eefective. This could be done with the help of the filed EFFDT. Is there any function module to fetch the latest record?
Regards,
Bharath Mohan BHello check out FM: HR_ECM_HANDLE_NEW_EFFDT
reward points if helpful -
Hi ,
How to find out the latest Record in per_all_people_f and per_all_assignments_f
Requirement : Need to find out the latest record in per_all_people_f and per_all_assignments_f to update the attribute column with pre defined value . Its not possible to track only with person_id / assignment_id and effective end date
SELECT pp_id
FROM (SELECT app.person_id pp_id,
asf.*
FROM apps.per_all_people_f app,
apps.per_all_assignments_f asf
WHERE --app.person_id=123568 and
asf.person_id = app.person_id AND
app.effective_end_date = to_date('31-dec-4712') AND
asf.effective_end_date = to_date('31-dec-4712')
GROUP BY app.person_id)
HAVING COUNT(pp_id) > 1
GROUP BY pp_id
This query also returns more than 1 value for person_id .
It would be great if you put comment on this .. Thanks in advance ,
AryaI am getting more records with asf.primary_flag='Y' . If you give ur mail id , i will send the sample data
ASSIGNMENT_ID EFFECTIVE_START_DATE EFFECTIVE_END_DATE BUSINESS_GROUP_ID RECRUITER_ID GRADE_ID POSITION_ID JOB_ID ASSIGNMENT_STATUS_TYPE_ID PAYROLL_ID LOCATION_ID PERSON_REFERRED_BY_ID SUPERVISOR_ID SPECIAL_CEILING_STEP_ID PERSON_ID RECRUITMENT_ACTIVITY_ID SOURCE_ORGANIZATION_ID ORGANIZATION_ID PEOPLE_GROUP_ID SOFT_CODING_KEYFLEX_ID VACANCY_ID PAY_BASIS_ID ASSIGNMENT_SEQUENCE ASSIGNMENT_TYPE PRIMARY_FLAG APPLICATION_ID ASSIGNMENT_NUMBER CHANGE_REASON COMMENT_ID DATE_PROBATION_END DEFAULT_CODE_COMB_ID EMPLOYMENT_CATEGORY FREQUENCY INTERNAL_ADDRESS_LINE MANAGER_FLAG NORMAL_HOURS PERF_REVIEW_PERIOD PERF_REVIEW_PERIOD_FREQUENCY PERIOD_OF_SERVICE_ID PROBATION_PERIOD PROBATION_UNIT SAL_REVIEW_PERIOD SAL_REVIEW_PERIOD_FREQUENCY SET_OF_BOOKS_ID SOURCE_TYPE TIME_NORMAL_FINISH TIME_NORMAL_START BARGAINING_UNIT_CODE LABOUR_UNION_MEMBER_FLAG HOURLY_SALARIED_CODE REQUEST_ID PROGRAM_APPLICATION_ID PROGRAM_ID PROGRAM_UPDATE_DATE ASS_ATTRIBUTE_CATEGORY ASS_ATTRIBUTE1 ASS_ATTRIBUTE2 ASS_ATTRIBUTE3 ASS_ATTRIBUTE4 ASS_ATTRIBUTE5 ASS_ATTRIBUTE6 ASS_ATTRIBUTE7 ASS_ATTRIBUTE8 ASS_ATTRIBUTE9 ASS_ATTRIBUTE10 ASS_ATTRIBUTE11 ASS_ATTRIBUTE12 ASS_ATTRIBUTE13 ASS_ATTRIBUTE14 ASS_ATTRIBUTE15 ASS_ATTRIBUTE16 ASS_ATTRIBUTE17 ASS_ATTRIBUTE18 ASS_ATTRIBUTE19 ASS_ATTRIBUTE20 ASS_ATTRIBUTE21 ASS_ATTRIBUTE22 ASS_ATTRIBUTE23 ASS_ATTRIBUTE24 ASS_ATTRIBUTE25 ASS_ATTRIBUTE26 ASS_ATTRIBUTE27 ASS_ATTRIBUTE28 ASS_ATTRIBUTE29 ASS_ATTRIBUTE30 LAST_UPDATE_DATE LAST_UPDATED_BY LAST_UPDATE_LOGIN CREATED_BY CREATION_DATE TITLE OBJECT_VERSION_NUMBER
931510 7-Nov-08 31-Dec-12 122 (null) (null) (null) 3978 1 (null) 14402 (null) 220150 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 2 E Y (null) 100035417-2 (null) (null) (null) 45948739 (null) (null) (null) (null) (null) (null) (null) 868007 (null) (null) (null) (null) 449 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
797386 26-Aug-08 26-Aug-08 122 (null) (null) (null) 3980 3 (null) 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 E Y (null) 100035417 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) 740071 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
916076 26-Aug-08 31-Dec-12 122 (null) (null) (null) 3980 1 4 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 B Y (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
797386 25-Feb-08 25-Aug-08 122 (null) (null) (null) 3980 1 (null) 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 E Y (null) 100035417 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) 740071 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) -
How to fetch the latest change number from CDPOS Table..?
Hi All,
im trying to fetch teh change number from CDPOS with the below select, but my requirement is always i wants to fetch the latest change number.
SELECT SINGLE objectid changenr FROM cdpos
INTO wa_cdpos
WHERE objectid = wa_e1kna1m-kunnr
AND ( tabname = 'KNA1' OR tabname = 'KNVV')
AND fname = 'AUFSD'
AND ( value_new = '01' OR value_new = space ).
Please let me know how to achive this..?
Ashoktry this way
" SELECT SINGLE objectid changenr FROM cdpos
" INTO wa_cdpos
SELECT objectid changenr FROM cdpos
INTO table t_cdpos
WHERE objectid = wa_e1kna1m-kunnr
AND ( tabname = 'KNA1' OR tabname = 'KNVV')
AND fname = 'AUFSD'
AND ( value_new = '01' OR value_new = space ).
SORT t_cdpos by changenr Descending.
read t_cdos index 1. "this is the latest change
Prabhudas -
Formula to get the latest record
Hi,
I looking to have only the last record logged displayed on my report, can any one help me with the formula ?
Sorry,
Actually to be more precise I'm looking to the latest record for each equipment (where there are many records for the equipment during the day).
Many thanks,
Andreia
Edited by: andreia silva on Dec 22, 2009 3:12 PM
Edited by: andreia silva on Dec 22, 2009 3:15 PMHi,
You could use a SQL Expression field. The following example uses the Northwind database (SQL Server) as an example.
Type the following query in the SQL Expression editor
(SELECT MAX("Orders"."OrderDate")
FROM Orders
WHERE CustomerID = Customers.CustomerID)
Then create a record selection formula:
{Orders.OrderDate} = {%datum}
{%datum} is the sql expression
When you run the report, you will see only the last order for each customer -
Select the one record with the latest record
I have the following table called tblSales:
SKU TransDate Color
=== ====== ====
123 1/1/2015 Red
123 1/2/2015 Red
123 1/5/2015 Red
123 1/1/2015 White
123 1/2/2015 White
123 1/3/2015 White
123 1/1/2015 Blue
123 1/2/2015 Blue
123 1/5/2015 Blue
I need to create a query along the lines "SELECT the latest record FROM tblSales WHERE Color = 'White''
In this example, the record dated 1/3/2015 would be the result. I know that MAX(TransDate) is used here, but not sure how.
Thanks.
KenKarl,
I had already tried that. It returns all 3 records having SKU = 123 and Color = White.
Worst case scenario is I can always search for White 123s using a query with TransDate DESC and then get the first record. I was just hoping for something a bit more elegant.
Thanks for your help though.
Ken -
Fetching the latest drawing No. after changing Sampling Drawing Procedure
Hi QM Masters,
I have 1 Report in that I fetch Drawing No. against Inspection Lot.
When I create a Inspection Lot at that time Drawing No. will generated in the system. Sampling Drawing procedure is assigned to the Lot. But the problem is that When I change the sampling procedure New Drawing No. is generated against the same lot.
Both Drawing No. are updated in QPRS table against the same lot. That's why It is difficult to fetch the latest Drawing no.
How I fetch the latest drawing no. after changing the SDP?
Gives me the Expert logic to fetch the data.Hi can you check the fields ENTDATUM and ENTZEIT for sample drawing date and time or this date is different for you in the same table QPRS
Regrads,
Smruti
Edited by: smruti.ranjan on Feb 7, 2012 12:02 PM -
How to fetch the distict records from xcelsius excel column
i have brought the datas from database using webservice
from this data i want to fetch the distinct records in another column
how to do this without using third party tool like "Centigon filtered summary"
plz help me.
Regards
Ram.G
Edited by: g.ram84 on Dec 1, 2009 6:57 AMHi Ram,
This can be achieved using functionalities within excel of the Xcelsius.
Please try the steps below:
1) From the excel menu choose Data | Filter | advaced Filter.
2) choose your entire range.
3) choose location to copy.
4) choose Unique records only
and only unique records will be copied.
Hope this helps...
Regards,
Ankeet -
How to get only the latest record in a folder
Hi all,
We have an OA SIT that is not a "standard" SIT in that it does not have the traditional Begin and End date. It only has an Effective date. Is there some way I can filter this table to only give me the latest record in the series? I know how to do this in SQL, but don't see how it would be possible in the EUL.
We're trying to avoid creating database views, but at this point, I'm thinking it may be the easiest way to address this. Any other suggestions?
Thanks in advance,
JewellJewell.
Of course I'm not going to mention that I have no idea what a 'standard' SIT is compared to your basic 'non-standard' SIT ... and I have to watch my spelling of such ... but however ...
As you're most likely aware, in SQL you would get all the 'standard' SIT records first by going through the table. Then you'd go back through them all and find the most recent one.
Because of this 2 table pass, I agree that just putting the SQL code in a custom folder (as you're not using views) would make the most sense.
Russ -
Problem in fetching the latest updated record.
Hello ,
I have a program in which i am creating a BDC session and submit the same in program rsbdcsub, now the problem is that i need to capture the Field Qstate from the table APQI, its not updated instantaneously, so i am not able to get the latest value of QSTATE from updated APQI table,
I have used commit work, commit work and wait , SET UPDATE TASK LOCAL, nothing is working, only if i put wait up to '1.5' seconds before fetching the value from table APQI i get the updated Qstate, but this will create a performance issue so please suggest.
Can any one please help me resolve this problem.
Regards,
Abhinavit's quite normal that status is updated after the job is modified
and you cannot know beforehand how much time it will take to do it (even the start time is not sure because it could be delayed !)
you could select the value until it is one of a list that you expect (for example, finished or cancelled) -
Need to fetch the last record/row from a table
Hi,
I have a requirement like fetching the closing balance of the last record of the table and inserting the same into the opening balance of the immediatetly created next record.
In simple words, I need to fetch a value from the last row of the record.
For example, I use the below query,
select rownum, empno, ename from emp
where rownum = (select count(rownum) from emp);
But, the above query does not return any of the record.
Hence, need help on this.
Regards,
Shivakumar A
Edited by: shiva on Mar 27, 2011 10:14 PMRows in a table are inherently unordered. In order to introduce the concept of "first" and "last", you would need to specify how to order the rows which would require that there was one or more columns in the table that you could order by in order to determine the "last" record.
In your closing balance example, if we assume that there is something like a BALANCE_DATE column,
SELECT account_number, balance_amount, balance_date
FROM (
SELECT account_number,
balance_amount,
balance_date,
rank() over (partition by account_number order by balance_date desc) rnk
FROM table_of_balances )
WHERE rnk = 1Justin -
Cursor not fetching the latest value in the loop.
Hi!
I'm facing a peculear problem. I've a procedure which will check the total number of records in a loop. It will fetch that value. If that value mathced with certain condition then the outer loop execution need to stop. Here is my script -
<<Outer Loop Script>>
declare
j number(5);
begin
j := 1;
dbms_output.enable(100000);
while j <> 3 and j <=3
loop
sel_pri(3,j);
dbms_output.put_line('J is : '||j);
end loop;
dbms_output.put_line('Executes.....');
exception
when others then
dbms_output.put_line(sqlerrm);
end;
-- Procedure Script --
create or replace procedure sel_pri(x in number,y out number)
is
pragma autonomous_transaction;
begin
select count(a.flg) cnt
into y
from (
select flg
from t_priority
where flg <= x
and flg < 4
union
select flg
from t_priority
where flg > x
and flg < 4
) a;
--commit;
end; Now, the problem is -
Suppose i've two records are there in t_priority table. So, when i run my anonymous pl/sql block it won't satisfy the condition - as a result the loop will iterate untill the condition satisfiy. Now, if i insert data from a different session and commit the value in table t_priority which have only one field named flg and if count is 3. Then the process of the while loop should be stopped. But, it that is not happening. Infact it is fetching the old value. Why is it so?
Thanks in advance for your reply.
Regards.
Satyaki De.sir i cannot understand your example.
SQL> declare
2
3 cursor bc is
4 select ename from emp;
5
6 procedure change_in_another_trans
7 is
8 pragma autonomous_transaction;
9 begin
10 update emp set ename = ename || '?';
11 commit;
12 end;
13 begin
14
15 for v in bc loop
16
17 if bc%rowcount = 3 then
18 change_in_another_trans;
19 end if;
20
21 dbms_output.put_line(v.ename);
22
23 end loop;
24
25 end;
26 /
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
PL/SQL procedure successfully completed.
Procedure change_in_another_trans is autonomous and is executed
only once in the loop - when I fetched 3 rows from cursor. It updates
the data I fetch in cursor loop and commits autonomous transaction.
If Oracle would not support the read consistency for queries you had
SMITH
ALLEN
WARD
JONES?
MARTIN?
BLAKE?
CLARK?
SCOTT?
KING?
TURNER?
ADAMS?
JAMES?
FORD?
MILLER?
But you see the data as they were at the moment (exactly SCN - System Change Number) of the query issue dispite they have been changed by another transaction after the cursor has been open. Hope I'm clear now.
Rgds. -
How to fetch the data records in summary format based on previous day
drop table T1;
create table T1(Class, Fees_Collected, Submit_Date) as select
'MBA', 100000, '7/30/2012' from dual union all select
'Btech', 20000, '7/10/2012' from DUAL union all select
'MBA', 45000, '8/1/2012' from dual union all select
'Btech', 55550, '7/31/2012' from DUAL union all select
'BBA', 250660, '7/30/2012' from dual union all select
'MBBS', 44556000, '7/31/2012' from DUAL union all select
'BDS', 420050, '8/1/2012' from DUAL union all select
'BBA', 30450, '7/30/2012' from DUAL union all select
'MBBS', 120450, '7/31/2012' from DUAL union all select
'BDS', 45950, '7/30/2012' from DUAL union all select
'MBA', 252450, '8/1/2012' from DUAL;My requirment is to fetch the records based on summary format to display the data with following columns -
Class |Prev Day Traded Value |Prev Day % of Total |Prev Day % MBA
Note - Previous Day definiton (Buisness Day) = calendar days - (weekends + US Holidays)
Kindly help me, as i want to keep it customized so that without specifying the hard coded dates ( Previous Day) it runs through and provide me the resultset....
All of your help and time is highly appericated.You mean business days I guess ?
I use a function (I had to write it myself) <tt><b> next_business_day(p_start_date in date,p_days_count in number) return date </b></tt>
where I loop forward/backward from p_start_date according to the sign of p_days_count the required number of steps skipping weekends and holidays as the absolute value of p_days_count is mostly under 30 for the rest (at least around here) Oracle's <tt><b> add_months </b></tt> gets it done.
Regards
Etbin
Edited by: Etbin on 6.8.2012 17:55
Year till date: <tt><b> your_date between trunc(sysdate,'year') and sysdate </b></tt> is it ? http://en.wikipedia.org/wiki/Year-to-date ?
Edited by: Etbin on 6.8.2012 18:27
NOT TESTED!
function next_business_date(p_start_date in date,p_count_days in number) return date is
steps number := abs(p_count_days);
retval date := p_start_date;
begin
if p_start_date is null or p_count_days is null then
return to_date(null);
end if;
while steps > 0
loop
/* skipping weekends and (yet to be implemented) holidays */
while to_char(retval,'dy') in ('sat','sun') /* or is_holiday(retval) */
loop
retval = retval + sign(p_count_days);
end loop;
/* retval contains a business day now */
retval = retval + sign(p_count_days);
step := step - 1;
end_loop
return retval;
end; -
How to fetch the required record into the cache
Dear sirs...
An application written in Jdeveloper 10g 10.1.2.1 that uses ADF. It is requred to process some records. When i get the view object & try to go to the first record i get the following error:
05/11/30 23:13:26 Error Message:JBO-25046: Requested row not available in row set iterator FilesView1.
oracle.jbo.RowNotAvailableException: JBO-25046: Requested row not available in row set iterator FilesView1.
at oracle.jbo.client.remote.RowSetIteratorImpl.first(RowSetIteratorImpl.java:851)
at oracle.jbo.client.remote.RowSetImpl.first(RowSetImpl.java)
at oracle.jbo.client.remote.ViewUsageImpl.first(ViewUsageImpl.java)
at oracle.jbo.common.ws.WSRowSetIteratorBase.first(WSRowSetIteratorBase.java:328)
at view.ViewmailAction.onDelete(ViewmailAction.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java)
at oracle.adf.controller.lifecycle.PageLifecycle.handleEvent(PageLifecycle.java:544)
at oracle.adf.controller.struts.actions.StrutsPageLifecycle.handleEvent(StrutsPageLifecycle.java:252)
at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleEvent(StrutsUixLifecycle.java:249)
at oracle.adf.controller.lifecycle.PageLifecycle.processComponentEvents(PageLifecycle.java:477)
at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processComponentEvents(StrutsUixLifecycle.java:162)
at oracle.adf.controller.struts.actions.DataAction.processComponentEvents(DataAction.java:236)
at oracle.adf.controller.struts.actions.DataAction.processComponentEvents(DataAction.java:430)
at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:126)
at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
How can I fetch the first row into the cache?
I checked the documentation & it says i should call the required API to put the record into the cache & then retry the operation, so what is this API? what should i do?
Thanks alot for any help
best regardsI'd recommend processing the records inside a custom method on your application module. This is a best practice whever you can do it, and it makes your application easier to maintain and test.
I'd also recommend using Immediate Mode instead of Batch Mode. Please see this article on the subject:
http://www.oracle.com/technology/products/jdev/tips/muench/batchmode/index.html -
Getting the Latest Record.
Consider 2 tables TestCases and TestRun
a test Case can have multiple test runs ie. TestCaseId from the Test Case Table will map into N number of Rows in TestRuns table.
I want to do a count of all the test runs which are pass, but as there are multiple entries in TestRun against the testcaseid all the test runs are counted.
what we require is to add up Results against the latest test run.
*The TestRun table has a Run Date field.Play around with the RANK function:
SELECT RANK("D0 Time"."T00 Calendar Date") saw_0, "D0 Time"."T00 Calendar Date" saw_1, "F2 Units"."2-01 Billed Qty (Sum All)" saw_2 FROM "Sample Sales" WHERE RANK("D0 Time"."T00 Calendar Date") = 1 ORDER BY saw_1 DESC
Regards
John
http://obiee101.blogspot.com/
Maybe you are looking for
-
i have an apple id. when i go onto app store and type it in it says that i have not used account in store and to rectify the problem. when i go in to do this it is asking me for credit card details, i dont have a credit card. what do i do? i want to
-
Cann't open a *.fmb file (with the same version of Form Builder)
Hello everybody, My Form Builder 6.0 cann't open a *.fmb file, created with the same version, even with the same Form Builder tool. I worked for long time ago at this module, I saved it many times, I compiled it and it worked very well. But last time
-
HT4623 why is itunes not activating my new phone
i got my phone. went through the set up. synced with itunes and it updated my phone ios but still says no service. What the hey. I cannot figure it out.
-
HTTP or SOAP Adapter Can't Reach "Outside"
Does anyone have any direction or could anyone point me to some SAP docs on how to configure your network to allow the adapters to get out to the "wild internet". I have tried configuring the SOAP adapter to hit our normal web browsing proxy/port al
-
When I go to sync the media from my 9700 to my computer it shows my all of the images on the camera - including what appears to be every image that was cached when visiting a web site! I can't find any options (other than to select the media card) to