Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Local Scene Info / Discussion / EDM Event Listings > Europe > Europe - France > [HS] Webmasters inside TA#FR
Pages (21): « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [15] 16 17 18 19 20 21 »   Last Thread   Next Thread
Share
Author
Thread    Post A Reply
Eddy
DouDou Addict



Registered: Feb 2005
Location: Nantes

Oulala c'est caca les bd (smiley qui vomit)

Old Post Feb-04-2009 11:16  France
Click Here to See the Profile for Eddy Click here to Send Eddy a Private Message Add Eddy to your buddy list Report this Post Reply w/Quote Edit/Delete Message
alkoic
Senior tranceaddict



Registered: Feb 2004
Location: Lorraine

quote:
Originally posted by JoeHell
Je suis pas master en BDD, mais en voyant ta table A entre D et B, j'aurais plutôt fait un :
FROM a
OUTER JOIN d ON a.a.id = d.a.id
OUTER JOIN b ON a.a.id = b.a.id

j'ai tenté avec RIGHT/LEFT, LEFT/LEFT, LEFT/RIGHT, RIGHT RIGHT, j'ai soit le même résultat soit le meme résultat (faussé pour les COUNT) sans tous les A.

Merci quand même pour la tentative.
Vais attendre le loutron, sinon je ferai ça en mode caca


___________________

23/09/2011 : Evolution Zero #6 @ L'Envers Club (FR/54/Nancy)
08/10/2011 : Nancy Jazz Pulsations @ L'Autre Canal (FR/54/Nancy)
14/10/2011 : Kill The Hype #10 @ L'Envers Club (FR/54/Nancy)

Old Post Feb-04-2009 11:33  France
Click Here to See the Profile for alkoic Click here to Send alkoic a Private Message Visit alkoic's homepage! Add alkoic to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Hank608
Supreme tranceaddict



Registered: Nov 2004
Location: Est de la France

Si déjà à la base t'arrives pas à faire les count() séparés entre a et b, puis entre a et d, c'est pas la peine d'aller plus loin.

Old Post Feb-04-2009 14:55 
Click Here to See the Profile for Hank608 Click here to Send Hank608 a Private Message Add Hank608 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Insigma
poste utile.



Registered: Mar 2002
Location: A life of trance & running...

je vais foutre un gros coup de boule dans sa goule à IE6

Suis en train de faire un site pour ma boite là..

marche sous FF, sous IE7 (enfin avec qq hacks ^^) mais sous IE6, paye ta misère... (et comme au boulot on a tous IE6.. :fuck: ) J'ai pas encore testé Safari non plus


___________________

+ 800 Vinyles à vendre

Old Post Feb-05-2009 11:06  France
Click Here to See the Profile for Insigma Click here to Send Insigma a Private Message Visit Insigma's homepage! Add Insigma to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Eddy
DouDou Addict



Registered: Feb 2005
Location: Nantes

Et google chrome ?

Old Post Feb-05-2009 11:25  France
Click Here to See the Profile for Eddy Click here to Send Eddy a Private Message Add Eddy to your buddy list Report this Post Reply w/Quote Edit/Delete Message
chasis.fan
Uplift Addict



Registered: Oct 2006
Location: Paris, France

quote:
Originally posted by Insigma
et comme au boulot on a tous IE6...

Bienvenue au club


___________________
Next parties :
2013-04-05 - Luminosity Trance Gathering @ Westerunie, Amsterdam
2013-04-06 - ASOT 600 @ Brabanthallen, Den Bosh

Old Post Feb-05-2009 11:30  France
Click Here to See the Profile for chasis.fan Click here to Send chasis.fan a Private Message Add chasis.fan to your buddy list Report this Post Reply w/Quote Edit/Delete Message
_greggy_
SuperLoutre



Registered: Oct 2001
Location: Dans une rivière, telle une loutre

quote:
Originally posted by alkoic
Mon ptit Loutron need ya help here :






a froid je dirai

SELECT a.id, a.lib, count(d.a_ID) as nbAD, count(b.a_ID) as nbAB
FROM A
LEFT JOIN B ON A.ID = B.a_ID
LEFT JOIN C ON A.ID = C.a_ID
GROUP BY a.id

Dans tous les cas tu veux A; ensuite tu peux avoir ou non des éléments dans B & C relatif à ton A; Il faut donc utiliser un LEFT JOIN pour faire les jointures vers ces 2 tables

après tests, la solution :

A = admin_group
B = admin_group_folder
C = admin_user_group

SELECT admin_group.ID, group_name, count( DISTINCT admin_group_folder.ID ) , count( DISTINCT admin_user_group.ID )
FROM admin_group
LEFT JOIN admin_group_folder ON admin_group_folder.admin_groupID = admin_group.ID
LEFT JOIN admin_user_group ON admin_user_group.admin_groupID = admin_group.ID
GROUP BY group_name


___________________
NikklassTeam trip blog

basse qui tabasse ... apéro qui fracasse
basse qui tabasse ... ti ponch de Guada qui tabasse aussi
Like we say in France, tonight you don't send woods, you send the forest !

Last edited by _greggy_ on Feb-05-2009 at 12:16

Old Post Feb-05-2009 12:07  France
Click Here to See the Profile for _greggy_ Click here to Send _greggy_ a Private Message Add _greggy_ to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Nightflowers
prog lover



Registered: Jan 2002
Location: Vallée des Vents Brûlants

quote:
Originally posted by Eddy
Et google chrome ?


Et Opera ?
Et Lynx ?


___________________

WAYS OF CONSCIOUSNESS On PARIS ONE (P1 Trance)
Every Saturday @ 4pm, Monday @ 8am + Thursday @ 0am (GMT+1)
OUT NOW ! : Axelle Roch - Serial Lovers (Nightflowers pres. Neurologik Remix) [MPDR092]
Also available :
A Boy And A Radio - Continuum (Nightflowers pres. Wild Symmetry Remix) [MPDR083]
Ness - Balloon (Nightflowers pres. Neurologik Dub) [MPDR063]

Old Post Feb-05-2009 12:42  France
Click Here to See the Profile for Nightflowers Click here to Send Nightflowers a Private Message Visit Nightflowers's homepage! Add Nightflowers to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Insigma
poste utile.



Registered: Mar 2002
Location: A life of trance & running...

quote:
Originally posted by Nightflowers
Et Opera ?
Et Lynx ?


et mon cul !


___________________

+ 800 Vinyles à vendre

Old Post Feb-05-2009 13:10  France
Click Here to See the Profile for Insigma Click here to Send Insigma a Private Message Visit Insigma's homepage! Add Insigma to your buddy list Report this Post Reply w/Quote Edit/Delete Message
alkoic
Senior tranceaddict



Registered: Feb 2004
Location: Lorraine

quote:
Originally posted by _greggy_
a froid je dirai

SELECT a.id, a.lib, count(d.a_ID) as nbAD, count(b.a_ID) as nbAB
FROM A
LEFT JOIN B ON A.ID = B.a_ID
LEFT JOIN C ON A.ID = C.a_ID
GROUP BY a.id

Dans tous les cas tu veux A; ensuite tu peux avoir ou non des éléments dans B & C relatif à ton A; Il faut donc utiliser un LEFT JOIN pour faire les jointures vers ces 2 tables

après tests, la solution :

A = admin_group
B = admin_group_folder
C = admin_user_group

SELECT admin_group.ID, group_name, count( DISTINCT admin_group_folder.ID ) , count( DISTINCT admin_user_group.ID )
FROM admin_group
LEFT JOIN admin_group_folder ON admin_group_folder.admin_groupID = admin_group.ID
LEFT JOIN admin_user_group ON admin_user_group.admin_groupID = admin_group.ID
GROUP BY group_name

Alors ta version me donne les meme resultat que la mienne + les DISTINCT dans mes COUNT.
mais je suppose que la tienne est la plus optimisée/rapide/moins gourmande.

thanx again!

tu auras le droit a ton invitation pour l'inauguration du lieu de guinguette branchée de pont a mousson (a 2 pas de chez Bonaventure )

(bon ok pas 2 mais plutôt 20 )


___________________

23/09/2011 : Evolution Zero #6 @ L'Envers Club (FR/54/Nancy)
08/10/2011 : Nancy Jazz Pulsations @ L'Autre Canal (FR/54/Nancy)
14/10/2011 : Kill The Hype #10 @ L'Envers Club (FR/54/Nancy)

Old Post Feb-05-2009 13:30  France
Click Here to See the Profile for alkoic Click here to Send alkoic a Private Message Visit alkoic's homepage! Add alkoic to your buddy list Report this Post Reply w/Quote Edit/Delete Message
_greggy_
SuperLoutre



Registered: Oct 2001
Location: Dans une rivière, telle une loutre

Sans les DISTINCT les résultats sont faux


___________________
NikklassTeam trip blog

basse qui tabasse ... apéro qui fracasse
basse qui tabasse ... ti ponch de Guada qui tabasse aussi
Like we say in France, tonight you don't send woods, you send the forest !

Old Post Feb-05-2009 16:00  France
Click Here to See the Profile for _greggy_ Click here to Send _greggy_ a Private Message Add _greggy_ to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Insigma
poste utile.



Registered: Mar 2002
Location: A life of trance & running...

Besoin de vous !
Pb en PHP, et je sais pas trop comment m'y prendre sans monter une usine à gaz...

Le site en question : http://www.fayardnoir.fr/
La rubrique : signatures (pas encore en ligne)

La nana qui s'occupe de l'éditorial me balance ça :

code:
27-29 mars 2009, Lyon, Festival Quais du polar. Joseph Incardona, Jean-Bernard Pouy, Patrick Raynal et Romain Slocombe sont les invités de la cinquième édition de ce festival devenu incontournable. Pour plus d'informations : http://www.quaisdupolar.com/ 2 avril, Librairie Georges (33400 Talence) Pierre Hanot présentera dédicacera son nouveau livre, Les Clous du fakir 3-5 avril, Limoges, Festival Lire à Limoges Retrouvez Pierre Hanot (Les Clous du fakir) et un grand nombre d'auteurs Fayard ! Pour plus d'information : http://www.ville-limoges.fr/limoges/weblimog.nsf$files/CPLAL2009.PDF 22 avril, Librairie Virgule (54400 Longwy) Pierre Hanot présentera et dédicacera son nouveau livre, Les Clous du fakir 23 avril, Librairie Geronimo (57000 Metz) Pierre Hanot présentera et dédicacera son nouveau livre, Les Clous du fakir 25-26 avril, Saumur, Journée nationale du livre et vin Retrouvez Romain Slocombe autour d'un bon verre et de son roman Lolita complex 24- 26 avril, Livre et musique (14800 Deauville) Les Normands pourront dialoguer avec Pierre Hanot (Les Clous du fakir) et Noël Balen (Les Fleurs du bal, 2007), ainsi que d'autres auteurs publier par Fayard.


J'ai donc une page signatures.php dans laquelle je vais venir mettre tout ce contenu et pas de base de données (c'aurait été trop simple !)

Comment faire en sorte que, en fonction de la date du jour, ne soient affichées que les signatures à venir ?
En gros :

si dateSignature < dateJour
on squeeze
sinon
on affiche

c'est assez bête mais je sais pas trop comment m'y prendre ? Si vous avez une bonne idée.


___________________

+ 800 Vinyles à vendre

Old Post Mar-27-2009 07:54  France
Click Here to See the Profile for Insigma Click here to Send Insigma a Private Message Visit Insigma's homepage! Add Insigma to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Local Scene Info / Discussion / EDM Event Listings > Europe > Europe - France > [HS] Webmasters inside TA#FR
Post New Thread    Post A Reply

Pages (21): « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [15] 16 17 18 19 20 21 »  
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackPlease Help Id another track [2002] [1]

Click here to listen to the sample!Pause playbackTiësto - "Ancient History" [2004]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 16:31.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!