🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #11434

Re: Dos dudas sobre SQL.

#11434
From: Jesús Carrete Montaña
Date: Sun, 02 Dec 2001 10:10
30 lines
2241 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Jes�s" == Jes�s Carrete Monta�a <kuantiko@escomposlinux.org> writes:

    Jes�s> b) Si ejecuto la siguiente sentencia: SELECT o.nombre,
    Jes�s> (e1.nota + e2.nota) AS notatotal FROM opositores o, examen1
    Jes�s> e1, examen2 e2 WHERE o.dni = e1.dni AND e1.dni = e2.dni;
    Jes�s> Tarda much�simo, de hecho tarda tanto que no tengo
    Jes�s> paciencia para esperar XD. Seguro que estoy haciendo alguna
    Jes�s> burrada gord�sima y se puede formular de una manera m�s
    Jes�s> eficiente.

        Me autorrespondo para decir que esta parte ya est�
solucionada. Poniendo como clave primaria el dni en las tres tablas
las consultas que antes tardaban >40min ahora tardan 10s. No est� mal
el cambio :)

Un saludo.
- -- 
I am Telecom of Borg. Connection is irrelevant. Modem will be assim
+++ NO CARRIER
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>

iD8DBQE8Cf3/fUtQQKOnZ1IRAlIKAJ95Eqr/BtkFz26KUaTU1CUCmctSBQCgimda
2yW0ogVIeh0bsVx6csxrCGQ=
=o+P/
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <87heraoruo.fsf@meltdown.ion>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!213.98.91.117!not-for-mail
References: <87g06u69nh.fsf@meltdown.ion>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,b998237532da112b
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-12-02 03:20:12 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!213.98.91.117!not-for-mail
From: kuantiko@escomposlinux.org (Jesús Carrete
  Montaña)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Dos dudas sobre SQL.
Date: 02 Dec 2001 11:10:07 +0100
Organization: ecolnet
Lines: 30
Sender: kuantiko@meltdown.ion
Message-ID: <87heraoruo.fsf@meltdown.ion>
References: <87g06u69nh.fsf@meltdown.ion>
NNTP-Posting-Host: 213.98.91.117
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1007292009 7978433 213.98.91.117 (16 [63420])
X-Orig-Path: julieta.escomposlinux.net!antonio.escomposlinux.net!relativistic.homeip.net!nobody
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7