Leser: 3
|< 1 2 >| | 15 Einträge, 2 Seiten |
SELECT a.name, fotos.id FROM users a LEFT JOIN fotos ON fotos.user = a.user WHERE a.id = 'Froschpopo'
SELECT a.name, fotos.id FROM users a LEFT JOIN fotos ON fotos.user = a.user ORDER BY fotos.datum DESC WHERE a.id = 'Froschpopo'
ORDER BY fotos.id DESC LIMIT 1
1
2
3
4
5
SELECT users.name, fotos.id AS aktuellstes_foto FROM users
LEFT JOIN fotos ON
fotos.user = users.name
ORDER BY users.datum DESC
LIMIT 3,40
1
2
3
4
5
SELECT users.name, fotos.id, fotos.name AS aktuellstes_foto FROM users
LEFT JOIN fotos ON
fotos.userid = users.name AND fotos.id = max(fotos.id)
ORDER BY users.datum DESC
LIMIT 3,40
1
2
3
4
5
SELECT users.name, fotos.name FROM users
LEFT JOIN photos ON
fotos.id = (SELECT MAX(id) FROM fotos WHERE userid = users.id)
ORDER BY users.datum DESC
LIMIT 3,40
1
2
3
SELECT users.name, MAX(fotos.id) AS MaxFotoID, fotos.name AS aktuellstes_foto FROM users
LEFT JOIN fotos ON
fotos.userid = users.name
Quote\n\nSELECT
SQL_CALC_FOUND_ROWS
FD.id,
DATE_FORMAT(FS1.status_datum, '%d.%m.%Y %H:%i') AS meldung_datum,
FD.meldung_name,
FD.meldung_rufnummer,
FD.meldung_mail,
FD.fehler_rufnummer,
FD.fehler_kundennummer,
MAX(FS1.status) AS MaxStatus,
FS1.status_datum
FROM
qkan_fehlerdaten as FD INNER JOIN
qkan_fehler_status as FS1 ON
FD.id = FS1.fehler_id
GROUP BY
FD.id
ORDER BY
$order_by
LIMIT
$start, $MeldungenProSeite
|< 1 2 >| | 15 Einträge, 2 Seiten |