473,396 Members | 1,924 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,396 software developers and data experts.

Simple question - excluding a groupby

Hello,

I am trying to sum together a number of rows by similarities that I
have grouped together with the pull down menu. I would like to exclude
one column if possible as it can be one of only two results and it is
most useful for me to not see a sum of results broken into those two
sections - I would rather see them all together.

Is there any way I can do this, or is it going to need to be mucking
around in the SQL?

Thx

Aug 14 '06 #1
2 1231
Greetings,

Your request is a little vauge because you haven't explained your
scenario in enough detail. But your quetions about "if you need to muck
around with sql" is a classic question for rdbms. Mucking around
(spaghetti code) is always an ALTERNATIVE solution. But whenever you
have to "Muck Arounnd/write spaghetti code" a red flag should pop up
immediately because that means that your database is not designed
correctly. It means that your database is not "Normalized" - you have
redundant columns, therefore, you have to hide them, do something with
them - "Muck around with the extra columns that you don't need/want".
The whole concept of database normalization is so that you can avoid
needing to write spaghetti code/ eliminate the need to "Muck around".
So, without knowing anything else about your system, I feel safe to
recommend that the solution is to normalize the database. But here is
the catch - Normalization is a complex subject and somewhat difficult to
grasp. This is the part that Microsoft leaves out in the Notes on its
"Ease of Use applications" like Access.

For simple/basic applications, normalization is usually not an issue.
But once you introduce one molecule of sophistication to your
application, if your DB is not propertly normalized, get ready to write
a ton of spaghetti code. It is doable, but not fun. I am still weaning
myself off of spaghetti code. It takes time.

HTH
Rich

*** Sent via Developersdex http://www.developersdex.com ***
Aug 14 '06 #2
th**********@gmail.com wrote in
news:11**********************@h48g2000cwc.googlegr oups.com:
Hello,

I am trying to sum together a number of rows by similarities
that I have grouped together with the pull down menu. I would
like to exclude one column if possible as it can be one of
only two results and it is most useful for me to not see a sum
of results broken into those two sections - I would rather see
them all together.

Is there any way I can do this, or is it going to need to be
mucking around in the SQL?

Thx
Are you asking "How do I delete a column from a query definition?"
Just go into the query design grid, hilight the column by clicking
in the band just above its name and {del}ete it.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Aug 14 '06 #3

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

Similar topics

0
by: G?nter Jantzen | last post by:
In the documentation http://www.python.org/dev/doc/devel/whatsnew/node7.html is written about itertools.groupby: """Like it SQL counterpart, groupby() is typically used with sorted input.""" ...
4
by: Bryan | last post by:
can some explain why in the 2nd example, m doesn't print the list which i had expected? >>> for k, g in groupby(): .... print k, list(g) .... 1 2 3
3
by: trebucket | last post by:
What am I doing wrong here? >>> import operator >>> import itertools >>> vals = .... (1, 16), (2, 17), (3, 18), (4, 19), (5, 20)] >>> for k, g in itertools.groupby(iter(vals),...
20
by: Frank Millman | last post by:
Hi all This is probably old hat to most of you, but for me it was a revelation, so I thought I would share it in case someone has a similar requirement. I had to convert an old program that...
1
by: Roman Bertle | last post by:
Hello, there is an example how to use groupby in the itertools documentation (http://docs.python.org/lib/itertools-example.html): # Show a dictionary sorted and grouped by value .... ...
13
by: 7stud | last post by:
Bejeezus. The description of groupby in the docs is a poster child for why the docs need user comments. Can someone explain to me in what sense the name 'uniquekeys' is used this example: ...
3
by: Steve Howell | last post by:
George Sakkis produced the following cookbook recipe, which addresses a common problem that comes up on this mailing list: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/521877 I...
10
by: 7stud | last post by:
I'm applying groupby() in a very simplistic way to split up some data, but when I timeit against another method, it takes twice as long. The following groupby() code groups the data between the...
3
by: Wiktor Zychla [C# MVP] | last post by:
could someone enlighten me on what would be the difference between GroupBy and ToLookup? I try hard but am not able to spot any difference between these two. the syntax and behavioral semantics...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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,...
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
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...

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.