<div dir="ltr"><div><div>Hallo Friedrich,<br><br><br></div>kannst Du Deine "<span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">kleine Datenverdichtung mit sql-Mitteln und php</span>" mal ein bissl näher ausführen.<br></div>Ich bin prinzipiell auch ein Freund, die Rechnerei direkt von SQL machen zu lassen - das ist einfach performanter.<br><br><div class="gmail_extra"><br><div class="gmail_quote">Am 16. Mai 2016 um 19:46 schrieb Friedrich @ Volkszaehler <span dir="ltr"><<a href="mailto:vz@riare.de" target="_blank">vz@riare.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="white" link="blue" vlink="purple" lang="DE"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hallo,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">ich hab mir eine kleine Datenverdichtung mit sql-Mitteln und php gebastelt – ich bekomme damit Pivotabellen für alle meine S0 Zähler pro Tag / Monat / Jahr<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Jahr / Monat:<u></u><u></u></span></p><p class="MsoNormal"><img src="cid:image002.png@01D1AFAB.ABAAF030" height="543" width="1108"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Tage :<u></u><u></u></span></p><p class="MsoNormal"><img src="cid:image001.png@01D1AFAB.783BD2F0" height="362" width="1154"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u><u></u></span></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Mach ich seit über einem Jahr – funktioniert super und ich sehe sofort Veränderungen <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Mfg<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Fritz <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> volkszaehler-users [mailto:<a href="mailto:volkszaehler-users-bounces@demo.volkszaehler.org" target="_blank">volkszaehler-users-bounces@demo.volkszaehler.org</a>] <b>Im Auftrag von </b>Klaus Reichenecker<br><b>Gesendet:</b> Montag, 16. Mai 2016 19:18<br><b>An:</b> <a href="http://volkszaehler.org" target="_blank">volkszaehler.org</a> - users <<a href="mailto:volkszaehler-users@demo.volkszaehler.org" target="_blank">volkszaehler-users@demo.volkszaehler.org</a>><br><b>Betreff:</b> [vz-users] SQL-Abfrage ohne alle Tupel als Antwort ?<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Ich bastke gerade an einer Verbrauchsanzeige, angezeigt werden sollen die aktuellen Tagesverbräuche</span><u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Mit <a href="http://link_zu_volkszaehler/htdocs/middleware.php/data/UUID.json?from=today" target="_blank">http://link_zu_volkszaehler/htdocs/middleware.php/data/UUID.json?from=today</a></span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">kommt eigentlich am Ende genau das was ich will, nur werden halt auch alle Tupel mit ausgegeben, was bei einem S0-Stromzähler ganz schön viele sein können</span><u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Gibt es eine einfache Möglichkeit, das nur das Relevante, also z.B. "<u></u><u></u></span></p><pre><span style="color:black">"uuid":"2dcfe7a0-c2a2-11e1-a9f6-7f2fe7ff59fc","from":1463349588000,"to":1463418336000,"min":[1463363152000,15.503875968992],"max":[1463352668000,4000],"average":457.439,"consumption":8735.556,"rows":9234}}"<u></u><u></u></span></pre><pre style="WORD-WRAP:break-word;white-space:pre-wrap;word-spacing:0px"><span style="color:black"> <u></u><u></u></span></pre><pre style="WORD-WRAP:break-word;white-space:pre-wrap;word-spacing:0px"><span style="color:black">ausgegeben wird ?<u></u><u></u></span></pre><pre style="WORD-WRAP:break-word;white-space:pre-wrap;word-spacing:0px"><span style="color:black"> <u></u><u></u></span></pre><pre style="WORD-WRAP:break-word;white-space:pre-wrap;word-spacing:0px"><span style="color:black"> <u></u><u></u></span></pre><pre style="WORD-WRAP:break-word;white-space:pre-wrap;word-spacing:0px"><span style="color:black">Viele Grüße<u></u><u></u></span></pre><pre style="WORD-WRAP:break-word;white-space:pre-wrap;word-spacing:0px"><span style="color:black"> <u></u><u></u></span></pre><pre style="WORD-WRAP:break-word;white-space:pre-wrap;word-spacing:0px"><span style="color:black">Klaus<u></u><u></u></span></pre></div></div></div></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Martin Heinze<br><br></div>
</div></div>