Meister_Knobi
Aktiver Benutzer
- Beiträge
- 27
kein 607
wieder ein 204
wieder ein 204
Code:
Starting transaction...
Preparing query: Create View vw_kunden(kundennr, belegnr, belegdat, belegart) As
Select k.kundennr,
b.belegnr,
b.belegdat,
b.belegart
From kunden k
Left Join beleg b
On k.kundennr = b.adressnr
And extract(Year From b.belegdat) = 2014
Prepare time: 0.016s
Plan not available.
Executing...
Done.
274 fetches, 50 marks, 0 reads, 2 writes.
12 inserts, 2 updates, 0 deletes, 29 index, 0 seq.
Delta memory: 20824 bytes.
RDB$RELATION_FIELDS: 4 inserts.
RDB$RELATIONS: 1 inserts. 2 updates.
RDB$VIEW_RELATIONS: 2 inserts.
RDB$USER_PRIVILEGES: 5 inserts.
Total execution time: 0.047s
Preparing query:
Create View vw_belegpos(kundennr, belegnr, belegdat, belegart, posnr, artikelnr) As
Select b.*,
bp.posnr,
bp.artikelnr
From vw_kunden b
Left Join belegpos bp
On b.belegnr = bp.belegnr
Prepare time: 0.000s
Plan not available.
Executing...
Done.
389 fetches, 60 marks, 0 reads, 2 writes.
14 inserts, 2 updates, 0 deletes, 52 index, 0 seq.
Delta memory: 4112 bytes.
RDB$RELATION_FIELDS: 6 inserts.
RDB$RELATIONS: 1 inserts. 2 updates.
RDB$VIEW_RELATIONS: 2 inserts.
RDB$USER_PRIVILEGES: 5 inserts.
Total execution time: 0.016s
Preparing query:
Create View vw_artikel(kundennr, belegnr, belegdat, belegart, posnr, artikelnr, steuervk) As
Select t.*,
a.steuervk
From vw_belegpos t
Left Join artikel a
On t.artikelnr = a.artikelnr
Prepare time: 0.000s
Plan not available.
Executing...
Done.
431 fetches, 57 marks, 0 reads, 0 writes.
15 inserts, 2 updates, 0 deletes, 63 index, 0 seq.
Delta memory: 3584 bytes.
RDB$RELATION_FIELDS: 7 inserts.
RDB$RELATIONS: 1 inserts. 2 updates.
RDB$VIEW_RELATIONS: 2 inserts.
RDB$USER_PRIVILEGES: 5 inserts.
Total execution time: 0.016s
Preparing query:
Select f.kundennr,
f.belegnr,
f.belegdat,
f.posnr,
f.artikelnr,
g.f2 As kostenstelle,
round(Sum(Case
When f.belegart = 'GU' Then
f.gesamt * -1
When f.belegart = 'RE' Then
f.gesamt
Else
0
End), 2) As umsatz2014
From vw_artikel f
Left Join gdidef g
On g.w0 = f.steuervk
And g.satzart = 'ST'
Group By f.kundennr,
f.belegnr,
f.belegdat,
f.posnr,
f.artikelnr,
kostenstelle
Error: *** IBPP::SQLException ***
Context: Statement::Prepare(
Select f.kundennr,
f.belegnr,
f.belegdat,
f.posnr,
f.artikelnr,
g.f2 As kostenstelle,
round(Sum(Case
When f.belegart = 'GU' Then
f.gesamt * -1
When f.belegart = 'RE' Then
f.gesamt
Else
0
End), 2) As umsatz2014
From vw_artikel f
Left Join gdidef g
On g.w0 = f.steuervk
And g.satzart = 'ST'
Group By f.kundennr,
f.belegnr,
f.belegdat,
f.posnr,
f.artikelnr,
kostenstelle )
Message: isc_dsql_prepare failed
SQL Message : -204
can't format message 13:796 -- message file C:\Programme\firebird.msg not found
Engine Code : 335544569
Engine Message :
Dynamic SQL Error
SQL error code = -204
Table unknown
VW_ARTIKEL
At line 17, column 19
Total execution time: 0.000s