Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38150

Re: Improve reduce functions of SQLite3 request

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'does,': 0.09; 'identifier,': 0.09; 'imply': 0.09; 'name)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'applies': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'suggestion.': 0.16; 'mon,': 0.16; 'subject:request': 0.17; 'feb': 0.19; '+0000': 0.20; 'define': 0.20; 'germany': 0.21; 'idea': 0.24; 'separate': 0.27; 'header:X-Complaints-To:1': 0.28; 'key,': 0.29; 'probably': 0.29; 'maybe': 0.29; 'primary': 0.30; 'stuff': 0.30; '(and': 0.32; 'could': 0.32; 'club': 0.33; 'url:home': 0.33; 'handle': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'needed': 0.35; 'same.': 0.35; 'stores': 0.35; 'table': 0.35; 'received:org': 0.36; 'but': 0.36; "didn't": 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'does': 0.37; 'why': 0.37; 'ones': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'mentioned': 0.63; 'more': 0.63; 'more...': 0.65; 'foreign': 0.72; 'special': 0.73; '2013': 0.84; 'season': 0.84; 'dennis': 0.91; 'league': 0.91; 'received:108': 0.91; 'youth': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Improve reduce functions of SQLite3 request
Date Mon, 04 Feb 2013 18:47:14 -0500
Organization > Bestiaria Support Staff <
References <kelbl0$1jv$1@nerdhammel.gnuher.de> <mailman.1317.1359915110.2939.python-list@python.org> <keogmb$dml$1@nerdhammel.gnuher.de> <mailman.1331.1360010737.2939.python-list@python.org> <kepbak$ne$1@nerdhammel.gnuher.de>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host adsl-108-79-219-20.dsl.klmzmi.sbcglobal.net
X-Newsreader Forte Agent 3.3/32.846
X-No-Archive YES
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1340.1360021639.2939.python-list@python.org> (permalink)
Lines 39
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1360021639 news.xs4all.nl 6938 [2001:888:2000:d::a6]:60081
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:38150

Show key headers only | View raw


On Mon, 4 Feb 2013 22:05:08 +0000 (UTC), Steffen Mutter
<steffen@webanimations.de> declaimed the following in
gmane.comp.python.general:


> There's much more stuff in the table of the database, but these ones
> does not matter, the table Runde20122013 stores all the data needed for
> gameplay during this season and is made to handle ALL leagues in germany
> and if you enter another federation name as 'dhb' it could handle even
> more...
>  Jutst to explain: the numbers define the team(s) of the club in a
> special category (male/female, youth E,D,C,B,A adults, senior), playing
> in a league. 

	Which does, to me, imply an unnormalized database. The
"team/category" should be a separate field.

club(*ID*, name)

team(*ID*, /club/, category)

{where *..* is primary key, /../ is a foreign key}

and league should probably be another table (and "club" may have a
/league/ entry).

	Yes, that would imply using JOINs to get a full identifier, and
maybe more complex GROUP BY terms...

> Woha!
> Why didn't I get this out by myself?

	Well, I only got the idea after someone else mentioned using min();
but I don't recall if they had GROUP BY in that suggestion. GROUP BY
ensures the min() only applies when the "nr" is the same.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Improve reduce functions of SQLite3 request Steffen Mutter <steffen@webanimations.de> - 2013-02-03 09:46 +0000
  Re: Improve reduce functions of SQLite3 request Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-03 13:11 -0500
    Re: Improve reduce functions of SQLite3 request Steffen Mutter <steffen@webanimations.de> - 2013-02-04 14:30 +0000
      Re: Improve reduce functions of SQLite3 request Dave Angel <davea@davea.name> - 2013-02-04 10:30 -0500
      Re: Improve reduce functions of SQLite3 request Peter Otten <__peter__@web.de> - 2013-02-04 17:29 +0100
      Re: Improve reduce functions of SQLite3 request Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-04 15:45 -0500
        Re: Improve reduce functions of SQLite3 request Steffen Mutter <steffen@webanimations.de> - 2013-02-04 22:05 +0000
          Re: Improve reduce functions of SQLite3 request Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-04 18:47 -0500
            Re: Improve reduce functions of SQLite3 request Steffen Mutter <steffen@webanimations.de> - 2013-02-06 09:18 +0000
              Re: Improve reduce functions of SQLite3 request Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-06 12:26 -0500
                Re: Improve reduce functions of SQLite3 request Steffen Mutter <steffen@webanimations.de> - 2013-02-06 23:33 +0000
                Re: Improve reduce functions of SQLite3 request Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-07 00:40 -0500
                Re: Improve reduce functions of SQLite3 request Steffen Mutter <steffen@webanimations.de> - 2013-02-07 11:33 +0000
                Re: Improve reduce functions of SQLite3 request Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-07 13:03 -0500
                Re: Improve reduce functions of SQLite3 request Steffen Mutter <steffen@webanimations.de> - 2013-02-07 22:54 +0000
                Re: Improve reduce functions of SQLite3 request Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-08 12:17 -0500
                Re: Improve reduce functions of SQLite3 request Steffen Mutter <steffen@webanimations.de> - 2013-02-08 19:59 +0000

csiph-web