473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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_NUM",

MIN(DETILPERMF."CALL_START"),

MAX(DETILPERMF."CALL_END"),

SUM(DETILPERMF."TOT_CALL"),

SUM(DETILPERMF."TOT_DUR")

FROM

"GENOB"."DETILPERMF" DETILPERMF,

"GENOB"."REJPROCESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MANAGED_FILE_ID" =

REJPROCESSLOG."MANAGED_FILE_ID"

GROUP BY

DETILPERMF."A_NUM"

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

SELECT

DETILPERMF."A_NUM",

DETILPERMF."CALL_START",

DETILPERMF."CALL_END",

DETILPERMF."TOT_CALL",

DETILPERMF."TOT_DUR"

FROM

"GENOB"."DETILPERMF" DETILPERMF,

"GENOB"."REJPROCESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MANAGED_FILE_ID" =

REJPROCESSLOG."MANAGED_FILE_ID"

ORDER BY

DETILPERMF."A_NUM" 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 3845
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****************@dbforums.com...

Dear all,

I am a new in using Crystal Report.

I'm trying to add this query in CR :

SELECT

DETILPERMF."A_NUM",

MIN(DETILPERMF."CALL_START"),

MAX(DETILPERMF."CALL_END"),

SUM(DETILPERMF."TOT_CALL"),

SUM(DETILPERMF."TOT_DUR")

FROM

"GENOB"."DETILPERMF" DETILPERMF,

"GENOB"."REJPROCESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MANAGED_FILE_ID" =

REJPROCESSLOG."MANAGED_FILE_ID"

GROUP BY

DETILPERMF."A_NUM"

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

SELECT

DETILPERMF."A_NUM",

DETILPERMF."CALL_START",

DETILPERMF."CALL_END",

DETILPERMF."TOT_CALL",

DETILPERMF."TOT_DUR"

FROM

"GENOB"."DETILPERMF" DETILPERMF,

"GENOB"."REJPROCESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MANAGED_FILE_ID" =

REJPROCESSLOG."MANAGED_FILE_ID"

ORDER BY

DETILPERMF."A_NUM" 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.swissonline.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****************@dbforums.com...

Dear all,

I am a new in using Crystal Report.

I'm trying to add this query in CR :

SELECT

DETILPERMF."A_NUM",

MIN(DETILPERMF."CALL_START"),

MAX(DETILPERMF."CALL_END"),

SUM(DETILPERMF."TOT_CALL"),

SUM(DETILPERMF."TOT_DUR")

FROM

"GENOB"."DETILPERMF" DETILPERMF,

"GENOB"."REJPROCESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MANAGED_FILE_ID" =

REJPROCESSLOG."MANAGED_FILE_ID"

GROUP BY

DETILPERMF."A_NUM"

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

SELECT

DETILPERMF."A_NUM",

DETILPERMF."CALL_START",

DETILPERMF."CALL_END",

DETILPERMF."TOT_CALL",

DETILPERMF."TOT_DUR"

FROM

"GENOB"."DETILPERMF" DETILPERMF,

"GENOB"."REJPROCESSLOG" REJPROCESSLOG

WHERE

DETILPERMF."MANAGED_FILE_ID" =

REJPROCESSLOG."MANAGED_FILE_ID"

ORDER BY

DETILPERMF."A_NUM" 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
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...
3
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...
0
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...
4
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...
1
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 ...
0
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,...
0
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...
0
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...
7
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,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.