PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 25 → Aula 1137 WinDev Tabelas 059 /... - Tabela Ano Mes Query
Aula 1137 WinDev Tabelas 059 /... - Tabela Ano Mes Query
Débuté par amarildo, 03 mai 2017 02:55 - Aucune réponse
Membre enregistré
535 messages
Popularité : +14 (14 votes)
Posté le 03 mai 2017 - 02:55
Na Aula de Hoje ,
Vou mostrar como fazer uma tabela
ter mes e ano , e no lado, todas as notas
hoje, sera a query , select

In today's class,
I'll show you how to make a table
Have month and year, and on the side, all notes
Today, it will be a query, select

En la clase de hoy,
Voy a mostrar cómo hacer una tabla
tienen meses y años, y en el lado, todas las notas
Hoy en día, será la consulta, seleccione


// QRY_NOTA_FISCAL_LER_ANO
SELECT
DISTINCT Left(nota_fiscal.data_emissao,4) AS ano,
Right(Left(nota_fiscal.data_emissao,6),2) AS mes,
Left(nota_fiscal.data_emissao,6) AS ano_mes
FROM
nota_fiscal
WHERE
nota_fiscal.id_empresa={parametro_nota_fiscal_id_empresa}
AND
nota_fiscal.data_emissao is NOT Null
AND
nota_fiscal.data_emissao != ''
ORDER by
Left(nota_fiscal.data_emissao,4) DESC,Right(Left(nota_fiscal.data_emissao,6),2) DESC


http://windevdesenvolvimento.blogspot.com.br/2017/05/aula-1137-windev-tabelas-059-tabela-ano.html