-4
Personal as illustrated in my table below, I would like to get the following data:
Time the POST spent from DATA_ENTRADA to DATA_SAÍDA
Overall average time that all STATIONS take from DATA_ENTRADA to DATA_SAÍDA
TABELA: OS
+--------------------------------------------------------------+
| ID | POSTO | MODELO | DATA_ENTRADA | DATA_SAIDA |
+--------------------------------------------------------------+
| 1 | SÃO PAULO | FW100 | 2014-11-17 | 2014-11-19 12:59:00 |
+--------------------------------------------------------------+
Test and see if it works properly.
– Jorge B.
yes @Jorgeb. tested and apparently works
– smigol
@Hugo What doubt remains then?
– Thomas
That is, why do you doubt that your logic is incorrect? If the only question is about the
TOP 10
(item 3), because quotePOSTO
andPOSTOS
(item 1 and 2)?– brasofilo
@Thomas edited the post, see if you can understand me
– smigol
@brasofilo better now?
– smigol
@Hugo Could you put the table name in the question too? To help in the examples of who will give the answer.
– Thomas
Okay, what you’d like seems clear, I think it remains now to say what you tried and what problems you had trying to implement. If not, it looks like you’re asking them to do the job for you.
– brasofilo
@Thomas made ;)
– smigol
Next time Hugo, or even this one (editing), try to demonstrate what you did. Then put the doubt.
– Jorge B.