Mailinglisten-Archive |
Hallo,
> SELECT `table_1`.`recieve` - `table`.`recieve`,
> ...
> FROM `table`
> LEFT JOIN `table` AS `table_1`
> ON `table_1`.`timestamp` / 600
> BETWEEN `table`.`timestamp` / 600
> AND (`table`.`timestamp` + 1200) / 600
>
> oder so ähnlich, weiß jetzt nicht genau ob das mit den Timestamp werten
> genau so hinheut, eventuell muss man noch umwandeln zwischendurch,
> glaube aber nicht.
Danke.
Mmmm table ist der Tabellenname? Also traffic_eth? Dann sieht das
so aus (?):
SELECT table_1.recieve - traffic_eth.recieve
FROM traffic_eth
LEFT JOIN traffic_eth AS table_1
ON table_1.timestamp / 600
BETWEEN traffic_eth.timestamp / 600
AND (traffic_eth.timestamp + 1200) / 600
MySQL said:
Unknown column 'table_1.recieve' in 'field list'
Wirklich verstehen tue ich das nicht :|
Gruß, Reinhold
--
ASC telecom AG Research & Development
Seibelstr. 2 F: +49-6021-5001-309
D-63768 Hösbach E: r.jordan at asc.de
Visit us on http://www.asctelecom.com
--
Infos zur Mailingliste, zur Teilnahme und zum An- und Abmelden unter
-->> http://www.4t2.com/mysql
php::bar PHP Wiki - Listenarchive