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.


  1. break a string into separate rows
    Is there a SQL way to break a string of values separated by space and put them into rows? Example: I have fileds user_id and symbol_ in the users table. Filed symbol_ can have multiple values or one, or can be blank. Select user_id, symbol_ from users user_id symbol_ 111 A B C H S 222 D 333 Lookin…
  2. Capturing old and new values in a Trigger
    I have this trigger...if I do an insert..new changes are captured; if I do an update, only old values are captured; if I do a delete old values are captured. What I need on the update is to also insert the 'new' values as well. So do I need to break the update and delete sections out so new values are placed in the update statement? create or replac…
  3. compute sum is not working
    I am trying to write a sql plus report which can break on product and compute sum of stats for each product. The output from oracle comes out to be Year month Product Stats 200901 ABC 50.00 200902 ABC 40.00 it should look like Product Jan2009 STATS Feb 2009 STATS DElta (col3-…
  4. how to split the values
    I have message like this 'A#B#C'; how to split and show the values with line break; A B C
  5. To_date to return just times-easy but important
    Hello, I am having problems with part of a query I want to run. I am using Oracle SQL+ against a Oracle 7.x database. The query is as follows: and TO_DATE(to_char(e.time_from, 'HH24:MI'),'HH24:MI') between to_date('&from_time','HH24:MI') an…

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