Subject Re: [firebird-support] Re: CrossTab Select
Author Thomas Beckmann
Hard to help, when there's no question...

Looking back the thread, you got some answers but did not relate on them
in your following questions.

Does

select
sum(iif(extract(weekday from t.DATAB) = 0, PRODUTO, 0)) as W0,
sum(iif(extract(weekday from t.DATAB) = 1, PRODUTO, 0)) as W1,
sum(iif(extract(weekday from t.DATAB) = 2, PRODUTO, 0)) as W2,
sum(iif(extract(weekday from t.DATAB) = 3, PRODUTO, 0)) as W3,
sum(iif(extract(weekday from t.DATAB) = 4, PRODUTO, 0)) as W4,
sum(iif(extract(weekday from t.DATAB) = 5, PRODUTO, 0)) as W5,
sum(iif(extract(weekday from t.DATAB) = 6, PRODUTO, 0)) as W6
from TABELAB t
where t.DATAB between date '23.06.2014' and date '28.06.2014'

what you expect (if you add HORA, you'll need to group by the other
columns)?

Thomas

Am 19.08.2014 21:36, schrieb sremulador@... [firebird-support]:
>
>
> Help my frields!
>
>

--
Mit freundlichen Grüßen,

Thomas Beckmann
Diplom-Informatiker


Wielandstraße 14c • 23558 Lübeck
Tel +49 (22 25) 91 34 - 545 • Fax +49 (22 25) 91 34 - 604
Mail thomas.beckmann@... <mailto:thomas.beckmann@...>

ASSFINET-Logo

*ASSFINET Dienstleistungs-GmbH*
Max-Planck-Straße 14 • 53501 Grafschaft bei Bonn
info@... <mailto:info@...> • www.assfinet.de
<http://www.assfinet.de/>

Geschäftsführer: Dipl. Wirtschaftsinformatiker Marc Rindermann
Registergericht Koblenz HRB 23331

Diese E-Mail enthält vertrauliche Informationen. Wenn Sie nicht der
richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist
nicht gestattet.