Advertisement

02.02.2007 at 08:08AM PST, ID: 22147147
[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!

8.0

sql run okay using sqlplus command prompt but reports syntax errors when attempt using toad

Asked by jomfra in Oracle 3rd Party Tools

Tags: , ,

hello expert,

I have quite a few sql

I can run same via sqlplus prompt no error reported

and they all execute okay.

when i attempt to run same sql via toad for oracle (freeware)

a series or syntax errors are reported

could any say how i can convert these queries so

it can run successful using toad.



below is sample


column num1 format $9,999,999,999.00  heading '   CURRENT BAL  '
column num3 format $9,999,999.00      heading '     ARREARS   '
column num4 format 9,999.00          heading ' REPAYMENT '
break on report skip 2
set head off
select    'MORTGAGE GENERAL ARREARS LIST
                                        date :'|| to_char(sysdate,'dd/mm/yyyy')
from v$parameter
where name = 'db_name';
set head on
compute sum of num1 on report
compute sum of num3 on report
compute sum of num4 on report
select substr(loan_acc.acc_no,1,12)"ACCOUNT ",
substr(prop_name,1,5)"AREA ", substr(acc_name,1,20)"     NAME",
sum(curbal)                  num1,
sum(loan_finl.arrbal)        num3,
sum(pay_inarr2)              num4
from loan_acc, loan_finl, altern_acc,arr_accxt, prop_sec, address
where loan_acc.acc_no= altern_acc.acc_no
and loan_acc.acc_no = loan_finl.acc_no
and loan_acc.acc_no = arr_accxt.acc_no
and prop_sec.address = address.address
and loan_acc.acc_no = prop_sec.bus_id
and loan_acc.close_date is null
and loan_finl.arrbal < 0.00
and pay_inarr2 > 0.01
and arr_meth ='A'
and loan_acc.branch between '&branch' and '&branch'
group by loan_acc.acc_no,acc_name,prop_name
/

Start Free Trial
[+][-]02.02.2007 at 08:16AM PST, ID: 18453488

View this solution now by starting your 7-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 3rd Party Tools
Tags: sqlplus, command, prompt
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.02.2007 at 08:39AM PST, ID: 18453723

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32