Hi, it's me again
here's my question for today:
the query : $queryD = "SELECT round(sum(issiusta)/1024/1024) from statistika where vardas='".$login."' and YEAR(data)=".$this_year." and MONTH(data)=".$this_month." and HOUR(laikas) > 9 and HOUR(laikas) < 20";
shows me the info of this year, this month and between 9 and 20 h.
bet if i also need to know the info recorded between 20 and 9 h???
if i write and HOUR(laikas) > 21 and HOUR(laikas) < 9 it doesn't work, and if i write HOUR(laikas) > 21 or HOUR(laikas) < 9 it gives me like ~40000 Mbytes instead of ~100
here's my question for today:
the query : $queryD = "SELECT round(sum(issiusta)/1024/1024) from statistika where vardas='".$login."' and YEAR(data)=".$this_year." and MONTH(data)=".$this_month." and HOUR(laikas) > 9 and HOUR(laikas) < 20";
shows me the info of this year, this month and between 9 and 20 h.
bet if i also need to know the info recorded between 20 and 9 h???
if i write and HOUR(laikas) > 21 and HOUR(laikas) < 9 it doesn't work, and if i write HOUR(laikas) > 21 or HOUR(laikas) < 9 it gives me like ~40000 Mbytes instead of ~100
Kommentar