473,611 Members | 2,236 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem on Viewing SQL in Crystal Report


Dear all,

I am a new in using Crystal Report.

I'm trying to add this query in CR :

SELECT

DETILPERMF."A_N UM",

MIN(DETILPERMF. "CALL_START "),

MAX(DETILPERMF. "CALL_END") ,

SUM(DETILPERMF. "TOT_CALL") ,

SUM(DETILPERMF. "TOT_DUR")

FROM

"GENOB"."DETILP ERMF" DETILPERMF,

"GENOB"."REJPRO CESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MAN AGED_FILE_ID" =

REJPROCESSLOG." MANAGED_FILE_ID "

GROUP BY

DETILPERMF."A_N UM"

But after i added it, CR keep returned/changed the query to :

SELECT

DETILPERMF."A_N UM",

DETILPERMF."CAL L_START",

DETILPERMF."CAL L_END",

DETILPERMF."TOT _CALL",

DETILPERMF."TOT _DUR"

FROM

"GENOB"."DETILP ERMF" DETILPERMF,

"GENOB"."REJPRO CESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MAN AGED_FILE_ID" =

REJPROCESSLOG." MANAGED_FILE_ID "

ORDER BY

DETILPERMF."A_N UM" ASC

I dont understand why CR always changed the query. In Oracle Developer,
the query wont be changed.

What i'm trying to do is, i want to view the date from minimum start
date (call_start) until maximum end date (call_end) and summarize the
call (call_tot) and duration (dur_tot) per A number (A_num). for that, i
should group by the A_num. May be, there is a way from CR role to group
by field(s), but yet, i need advices how to do it.

Any help would be helpfull. Thank you.

rgds,

windos
--
-
Posted via http://dbforums.com
Jul 19 '05 #1
2 3860
Hi,
as far as I know and been testing, Crystal Reports manages Oracle functions
and Group by Aggregates very badly...

one of the easiest solution consist in creating a view in the Oracle DB with
your query and then base your Report in CR directly from the view...

hope this helps !

Gilles

"windos" <wi******@yahoo .com> a écrit dans le message de
news:33******** ********@dbforu ms.com...

Dear all,

I am a new in using Crystal Report.

I'm trying to add this query in CR :

SELECT

DETILPERMF."A_N UM",

MIN(DETILPERMF. "CALL_START "),

MAX(DETILPERMF. "CALL_END") ,

SUM(DETILPERMF. "TOT_CALL") ,

SUM(DETILPERMF. "TOT_DUR")

FROM

"GENOB"."DETILP ERMF" DETILPERMF,

"GENOB"."REJPRO CESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MAN AGED_FILE_ID" =

REJPROCESSLOG." MANAGED_FILE_ID "

GROUP BY

DETILPERMF."A_N UM"

But after i added it, CR keep returned/changed the query to :

SELECT

DETILPERMF."A_N UM",

DETILPERMF."CAL L_START",

DETILPERMF."CAL L_END",

DETILPERMF."TOT _CALL",

DETILPERMF."TOT _DUR"

FROM

"GENOB"."DETILP ERMF" DETILPERMF,

"GENOB"."REJPRO CESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MAN AGED_FILE_ID" =

REJPROCESSLOG." MANAGED_FILE_ID "

ORDER BY

DETILPERMF."A_N UM" ASC

I dont understand why CR always changed the query. In Oracle Developer,
the query wont be changed.

What i'm trying to do is, i want to view the date from minimum start
date (call_start) until maximum end date (call_end) and summarize the
call (call_tot) and duration (dur_tot) per A number (A_num). for that, i
should group by the A_num. May be, there is a way from CR role to group
by field(s), but yet, i need advices how to do it.

Any help would be helpfull. Thank you.

rgds,

windos
--
-
Posted via http://dbforums.com

Jul 19 '05 #2
remember, you can do your way both in database side and crystal side.
eg: in crystal side, you can create a function to sort it out. you
will get loads of help from crystal help!

good luck!

"Gilles Mercier" <gi************ @urbanet.ch> wrote in message news:<3f******@ news.swissonlin e.ch>...
Hi,
as far as I know and been testing, Crystal Reports manages Oracle functions
and Group by Aggregates very badly...

one of the easiest solution consist in creating a view in the Oracle DB with
your query and then base your Report in CR directly from the view...

hope this helps !

Gilles

"windos" <wi******@yahoo .com> a écrit dans le message de
news:33******** ********@dbforu ms.com...

Dear all,

I am a new in using Crystal Report.

I'm trying to add this query in CR :

SELECT

DETILPERMF."A_N UM",

MIN(DETILPERMF. "CALL_START "),

MAX(DETILPERMF. "CALL_END") ,

SUM(DETILPERMF. "TOT_CALL") ,

SUM(DETILPERMF. "TOT_DUR")

FROM

"GENOB"."DETILP ERMF" DETILPERMF,

"GENOB"."REJPRO CESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MAN AGED_FILE_ID" =

REJPROCESSLOG." MANAGED_FILE_ID "

GROUP BY

DETILPERMF."A_N UM"

But after i added it, CR keep returned/changed the query to :

SELECT

DETILPERMF."A_N UM",

DETILPERMF."CAL L_START",

DETILPERMF."CAL L_END",

DETILPERMF."TOT _CALL",

DETILPERMF."TOT _DUR"

FROM

"GENOB"."DETILP ERMF" DETILPERMF,

"GENOB"."REJPRO CESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MAN AGED_FILE_ID" =

REJPROCESSLOG." MANAGED_FILE_ID "

ORDER BY

DETILPERMF."A_N UM" ASC

I dont understand why CR always changed the query. In Oracle Developer,
the query wont be changed.

What i'm trying to do is, i want to view the date from minimum start
date (call_start) until maximum end date (call_end) and summarize the
call (call_tot) and duration (dur_tot) per A number (A_num). for that, i
should group by the A_num. May be, there is a way from CR role to group
by field(s), but yet, i need advices how to do it.

Any help would be helpfull. Thank you.

rgds,

windos
--
-
Posted via http://dbforums.com

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
6295
by: mharris | last post by:
I need help with merging two Word documents into one through C# code. The problem isn't so much getting the documents put into one as it is maintaining the appropriate formatting, or rather reformating, after the merge. This is a full description of my needs. I have a C# class library that creates two Crystal Reports, and then exports them to the harddrive as Word documents. One's orientation is landscape, the other is portrait. I then...
3
15029
by: Milan Todorovic | last post by:
Hello, I need help. I have experience in ASP.NET programming, but this is my first dealing with Crystal Reports. I'm trying to make the most basic report purely for testing purposes: connect to the remote SQL DB and create a report on one of the tables. Every time I do it, I get the Logon Failed error (CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed) The internet search shows that this is a common problem,...
0
814
by: Shahid Juma | last post by:
Hi, I am using the Crystal Report Viewer. I can get the report to work on the web if the report doesn't have any database connection. However once I put a database connection, I get the "Logon failed". I have setup my ODBC locally on the machine. I am not sure what is wrong. Additionally, how do I get the "export" / "print" option to display once the report is loaded?
4
3753
by: John R. Dougherty | last post by:
I have developed an application with VB.NET, which includes the Crystal Reports (Visual Studio .NET 2003 edition) controls. I can run the application on my PC and it does work fine, but on any other PC it throws an error message once the user tries to view an existing Crystal Report file. How can I use my application to view Crystal Reports from other PCs? Do I have to include the .RPT files in the VB.NET project? What about when .RPT...
1
4902
by: cantonarv | last post by:
Just trying to do a basic crystal report and viewing it with dynamic sql server database but dont no what i'm doing wrong? I am using integrated security. Dim myRpt As crpt1 = New crpt1 'Where crpt1 is an existing crystal report 'set databse interaction with crystal Crystalviewer1.LogOnInfo.Item(0).ConnectionInfo.DatabaseName =
0
1294
by: mmcd79 | last post by:
I am using .NET 2005 and the integrated Crystal Reporting Engine (v10.2). I don't know what in the world is happening but something isn't right. When I prevew my report in the designer, everything LOOKS just as I designed it. When I actually run the application utilizing a reportviewer control, the report loses and adds it's own formatting. For instance. I have text fields all over the form that are set with their fonts to...
0
3113
by: David P. Donahue | last post by:
This is the first time I've had any problems viewing a report in any of my applications, so I'm not sure where to begin. But when I try to render my report in a report viewer, the application throws the output at the end of this message. My question, I guess, is what is this Keycode it's talking about? ----------BEGIN PASTE---------- See the end of this message for details on invoking
0
2417
by: r0ckster | last post by:
Hi! I have an asp application that is using crystal report 10/crystal report viewer to view reports on the web. This app works well in windows 2k but when i migrated the code to xp, the error below displays. Server object, ASP 0177 (0x800401F3) Invalid class string /cem/reports/AlwaysRequiredSteps.asp, line 9 ******************************** This is where the error is found:
7
2761
by: MarkTingson | last post by:
Hello guys, I am having a difficult time connecting VB6 to CR 8.5... I have tried adding Crystal report 8.5 in my project and use it as a designer tool.. i am successful designing the report, here's my question... 1. How can i view my report? 2. is there any connection needed? 3. before i did this, there is an error message saying: "Failed to add viewer". 4. what could be the impact of this eror? 5. does the error related to my...
0
8149
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8097
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8596
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8240
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8411
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4042
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1692
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.