[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

oracle - sql or plsql

Asked by Sara_j_11 in Oracle Database

Tags: oracle

I have a table of accounts called accts. Now for each account in that table I need to get the shipment revenue for the last five years from a table called ship. But the table called ship does not have 5 years of data. So I need to go to teh corresponding history table.

How do i do this.
acct table has acct_no
ship table has account_no, ship_YYYYMM, revenue
ship_history  table has account_no, ship_YYYYMM, revenue
when i ran the query against data for five years , I am getting the foloowing error:
ORA-12801: error signaled in parallel query server P009
ORA-01652: unable to extend temp segment by 64 in tablespace TEMP_MKV02
What does this mean?> I know that that is a lot of data...is that the problem? Also I am going to run this query just one time to get the shipment history for 5 years  for all accounts that exist in the alliance table
SELECT fedex_acct_nbr,net_rev_amt, shp_dt_YYYYMM  
FROM dom_trans d,
alliance1 ali
where d.fedex_acct_nbr = ali.expr_acct_nbr
--where rownum<100
UNION
SELECT fedex_acct_nbr, net_rev_amt, shp_dt_YYYYMM  
FROM dom_trans_hist d,
 alliance1 ali
WHERE shp_dt_YYYYMM <= to_char(ADD_MONTHS((trunc(sysdate)),-60),'YYYYMM')
and d.fedex_acct_nbr = ali.expr_acct_nbr
--and  rownum<100

1. Now going forward I want to get the "new" shipment data every month ((from the shipment table is is aggregated at the monthly level) for accounts for which history has already been populated by the one time lod of 5 year history
2. for the new accounts(that got inserted into the alliance table new and did not exist in the table previously, I want to get 5 years shipment data
3. I want to run a clean up process that removes data that is greater than 5 years of history

Please help with me these 3 points above. I am right now changing the question in this forum..
Can you please assist with this?
[+][-]10/03/07 11:43 PM, ID: 20012152Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/04/07 07:30 AM, ID: 20014402Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/04/07 09:44 AM, ID: 20015598Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Oracle Database
Tags: oracle
Sign Up Now!
Solution Provided By: markgeer
Participating Experts: 2
Solution Grade: A
 
[+][-]10/05/07 12:48 PM, ID: 20024981Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/05/07 12:49 PM, ID: 20024985Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/05/07 01:01 PM, ID: 20025060Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/05/07 01:14 PM, ID: 20025128Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/09/07 10:26 AM, ID: 20251714Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/09/07 12:20 PM, ID: 20252636Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/16/07 11:15 AM, ID: 20300568Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/16/07 12:00 PM, ID: 20300987Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/19/07 07:24 AM, ID: 20312957Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/19/07 11:18 AM, ID: 20314569Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/19/07 11:48 AM, ID: 20314807Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/19/07 11:57 AM, ID: 20314892Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/19/07 12:01 PM, ID: 20314940Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/19/07 01:31 PM, ID: 20315626Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/20/07 09:57 AM, ID: 20321659Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/20/07 11:49 AM, ID: 20322480Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 / EE_QW_2_20070628