Question

BREAK ON

Rating8.2Very Good

Hello,

First posting, so please bear with me.  I am using SQL+ against an Oracle 7 database and am having problems using the BREAK ON function.  When i retreive 2 columns in my select statement the BREAK ON works fine.  But when I use BREAK ON in my full query I also get an error at line 1 (the BREAK ON line) saying invalid SQL Statement.  my simple query that works ok is as follows:

 BREAK ON call__t
 select c.call__t,t.TEXT_TEXT
 from texts t, call c
 where c.call__t = 237223
 and c.text__ft = t.text__ft
 order by call__t,t.TEXT_TEXT;


Each call no (call__t) can have many lines of text (text_text) associated with it.  Therefore the query above retreives all th lines of text associated with a particular call.

The problem I have is when I use this principle in a more complicated query.  I have included the query below (and I appreciate it will not make too much sense as the table structures will not be available for you guys to see, but I thought you may be able to point me in the direction of what may be wrong/thing to check).

Break on a.call__t
select a.call__t, a.action_no, c.centre_logged, s.zone__t, z.zone_desc, c.client_log,
c.site__t, s.site_name, c.cust__t, cu.cust_name, c.book_date, c.book_time, c.fault_grade, a.who_action__c, e.employee_name, T.TEXT_TEXT,
C.CONTRACT_DATE||' '||C.CONTRACT_TIME, C.FIX_DATE||' '||C.FIX_TIME
from action a, call c, customer cu, site s, TEXTS T, zone z, employees e
where
c.call__t = a.CALL__T
and c.site__t = s.site__t
and c.cust__t = cu.cust__t
and a.action_status__c NOT in ('A501', 'A601', 'A701', 'A702')
AND C.text__ft = t.text__ft
and s.zone__t = z.zone__t
and z.zone__t in ('C1', 'C2', 'CC', 'CD', 'CB', 'C5', 'C6')
and a.who_action__c = e.employees__key (+)
order_by a.call__t, a.action_no, c.centre_logged, s.zone__t, z.zone_desc, c.client_log,
c.site__t, s.site_name, c.cust__t, cu.cust_name, c.book_date, c.book_time, c.fault_grade, a.who_action__c, e.employee_name,
T.TEXT_TEXT, C.CONTRACT_DATE||' '||C.CONTRACT_TIME, C.FIX_DATE||' '||C.FIX_TIME

Thanks for any help, and I am sorry for the sketchy information around this problem.


See More

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution
View This Solution - Start Your 30 Day Free Trial
Zone
General
Tags
oracle
Participating Experts
1
Solution Grade
A

Replies

 
by:

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 
by: truxntrax

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 
by: truxntrax

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 
by: ypwitkow

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 
by: truxntrax

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Stay Connected

Oracle Around the Web

The latest Oracle news, tips, and tricks

Oracle Unveils Netra SPARC T3 Servers

New Carrier-Grade Blade and Rackmount Servers Deliver Better Performance, Density and Power Efficiency for the Communications Industry ...

read more

Oracle fixes 21 flaws in Java SE, Java for Business

Oracle is fixing 21 flaws in its Java SE and Java for Business products in its February critical patch update issued this week ...

read more

Obama’s Silicon Valley “Tech Supper”

Why was he there? Who wasn’t invited and why? What did they talk about? Why was he really there? These are the questions being debated ...

read more

Featured Oracle Experts

slightwv

slightwv has answered more than 2,000 Oracle questions and oversees database management within the U.S. Government. Slightwv

sdstuber

A regular presenter at the Collaborate conference, Oracle developer sdstuber is a top expert in PL/SQL and Oracle 9, 10 and 11. sdstuber

Testimonials

What users are saying about our experts

"The Oracle gurus provide answers, solutions and valuable workarounds"

User: schwertner

"Wow! Excellent, valuable explanation. Hats off to you"

User: aseshu70

"Solution worked fantastic and performs excellent! Thanks heaps"

User: klausbrandlhuber

Top Experts

  1. slightwv

    2,000

    0 points yesterday

    Profile

BrowseBecome an Expert