473,398 Members | 2,212 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,398 software developers and data experts.

issue with group by

I have four columns in a table called rpot1(on overdraft bank a/c)
Actually it is a reporting table
1)sum(os)---outstandings(sm_os)
2)sum(lmt_gap)---limit gap (limit allowed for overdraft-actual overdraft taken)
3)lmt_bnd_----(outstanding in each limit band i.e 100-200,200-500 etc)
4)lmt_bnd_lmtgap(outstanding in each limit gap )


OUTPUT
OS_BND LMT_GAP_BND SM_OS SM_L_G

bnd_1 -25755419
bnd_2 25650968
bnd_3 53983065
bnd_4 238107406
bnd_5 269816479
bnd_6 4632194812
NOLMT NOLMT 5733753644 5193997310
bnd_1 8231633
bnd_2 51784857
bnd_3 108944365
bnd_4 218809561
bnd_5 220968795
bnd_6 5125014433

you can see my result i am getting some blank fields which are giving me
problem when i am dumping this date into crystal report since crystal report
does not accept string values(blanks it is assuming string since blanks are null)
can you suggest me an idea so that i can put all the four columns in one line
i know by doing this my data will get corrupted but i need it only for reporting purpose
hope you understand my problem
bye.
Apr 2 '07 #1
1 1363
shezam
1
Hi,

you can simply concat the results from each column into one

I have four columns in a table called rpot1(on overdraft bank a/c)
Actually it is a reporting table
1)sum(os)---outstandings(sm_os)
2)sum(lmt_gap)---limit gap (limit allowed for overdraft-actual overdraft taken)
3)lmt_bnd_----(outstanding in each limit band i.e 100-200,200-500 etc)
4)lmt_bnd_lmtgap(outstanding in each limit gap )


OUTPUT
OS_BND LMT_GAP_BND SM_OS SM_L_G

bnd_1 -25755419
bnd_2 25650968
bnd_3 53983065
bnd_4 238107406
bnd_5 269816479
bnd_6 4632194812
NOLMT NOLMT 5733753644 5193997310
bnd_1 8231633
bnd_2 51784857
bnd_3 108944365
bnd_4 218809561
bnd_5 220968795
bnd_6 5125014433

you can see my result i am getting some blank fields which are giving me
problem when i am dumping this date into crystal report since crystal report
does not accept string values(blanks it is assuming string since blanks are null)
can you suggest me an idea so that i can put all the four columns in one line
i know by doing this my data will get corrupted but i need it only for reporting purpose
hope you understand my problem
bye.
Apr 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ahaque38 | last post by:
Hello. Using A2K SP3, I am having the following problem with a report using "Sorting and Grouping". I have recently added a grouping in the reports for "Category2<>'CONTRACTS'". I have...
14
by: Mark O'Flynn | last post by:
I would like some advice regarding implementing inheritance using vb.net. I have an application written in vb6 that I am rewritting from the ground up in vb.net to take full advantage of .net,...
2
by: Jim | last post by:
I have command line PKZip (pkzipc.exe) installed on my SQL Server 2000. I want to use it to zip up some text files that I receive and process on a daily basis to save space. I want to schedule it...
3
by: laurentc via AccessMonster.com | last post by:
Hi. I have an issue with my Access project. I have rather big tables of data (about 11 000 rows). These tables are historical product quotations, so they are very simple : - MyDate...
1
by: tleeuwenburg | last post by:
G'day Pythonistas! Welcome to Issue Two of The Python Papers. It has been an exciting time and we are pleased to have reached this milestone. I'd like to say a big hello to all the people who have...
5
by: empiresolutions | last post by:
Hello Fellow Developers, I am using the awesome drag and drop script found at http://script.aculo.us/. I have also added a modification that interacts to a db for reordering upon release of a...
1
by: Edmund | last post by:
I hope someone can help me out set up the security properly. I have Microsoft Access 97 and Access 2000 in my computer and I developed my database with Access 2000 with the updated patch...
5
by: tjaink | last post by:
Hi I have a vc++ dll and its stored in Windows directory. I am using OS Windows 2003 server. And i am using ASP Legacy application migrated from NT to Windows 2003 server. Now there is no problem...
1
by: nsarkar | last post by:
Hello Friends, We are using HPU (B.11.23 U 9000/800 908196403), and aCC (HP ANSI C++ B3910B A.03.70), and it is regarding a warning we got at the time of compiling our C++ Application. ...
2
by: =?Utf-8?B?bWF0dA==?= | last post by:
Recently when I try to watch any TV channel thru Media Center, I hear a ringing/beeping type sound, instead of the regular audio. I only hear this sound when trying to watch live TV. My recorded TV...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.