JoelH
20-12-2001, 22:02
SELECT DISTINCT (topics.tid) FROM topicbeitraege, topics WHERE topics.tid = topicbeitraege.tid AND topicbeitraege.datum = CURRENT_DATE ORDER BY datum DESC, uhrzeit DESC
| Zurück zum Forum |
|
Archiv verlassen und diese Seite im Standarddesign anzeigen : JoelH 20-12-2001, 22:02 SELECT DISTINCT (topics.tid) FROM topicbeitraege, topics WHERE topics.tid = topicbeitraege.tid AND topicbeitraege.datum = CURRENT_DATE ORDER BY datum DESC, uhrzeit DESC Sky 20-12-2001, 22:37 Keinen Schimmer.. Aber sag, warum machst du keinen inner join draus? JoelH 21-12-2001, 05:06 SELECT topics.tid FROM topicbeitraege, topics WHERE topics.tid = topicbeitraege.tid AND topicbeitraege.datum = CURRENT_DATE GROUP BY topics.tid ORDER BY datum DESC, uhrzeit DESC so gehts. Frag mich warum er das DISTINCT nicht schluckte? Blaster 21-12-2001, 10:49 Funktioniert es vielleicht ohne Klammern? SELECT DISTINCT topics.tid FROM... JoelH 21-12-2001, 14:16 noe. Könnte es daran liegen das topicbeitraege auch ein tid besitzt ? Aber kann ja eigentlich garnicht sein oder ? Blaster 21-12-2001, 15:01 Na klar, versuche SELECT DISTINCTROW topics.tid FROM...! Wetten jetzt funzt....!;) Siehe auch: http://www.it-development.de/showthread.php?threadid=3282 [Editiert von Blaster am 21-12-2001 um 15:13] |
- - |