PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
QUERY
QUERY
Started by José Francisco Curti, Apr., 25 2020 11:43 PM - 2 replies
Connect yourself…
José Francisco Curti
#1
Posted on April, 25 2020 - 11:43 PM
Montei a query abaixo e preciso que retorne acumulado por data.
O problema que o campo "DataFimEmbarque " é datetime,
então está retornado acumulado por data e hora.
Tem como desconsiderar a hora ?
SELECT Cargas.Id AS IdCarga,
Cargas.DataFimEmbarque AS DataEmbarque,
SUM(ProdutosCarga.QtdePalete) AS QtdPCarga,
SUM(ProdutosCarga.QtdeFardo) AS QtdBCarga,
SUM(( ProdutosCarga.QtdeFardo + ProdutosCarga.QtdePalete ) ) AS QtdFCarga
FROM Cargas
INNER JOIN ProdutosCarga ON Cargas.Id = ProdutosCarga.Carga
WHERE
Cargas.Id > 0
GROUP BY
Cargas.Id,
Cargas.DataFimEmbarque
Report
0
0
Mister ANDRE MARTINI
#2
Registered member
205 messages
Popularité : +25 (25 votes)
Posted on April, 27 2020 - 2:17 AM
usa o comando cast ...
--
André Martini
IS2
http://www.is2.inf.br/
-
http://www.is2.com.br/
KW2MKT
https://www.kw2mkt.com/
Blog
http://is2sisinfo.blogspot.com/
*Websites Desenvolvidos
https://www.educacaocaninars.com.br/
http://www.qualosegredodogesso.com.br/localpages/
Report
0
0
José Francisco Curti
#3
Posted on May, 02 2020 - 4:11 PM
Obrigado, com esses comandos consegui o resultado que eu queria.
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text