Forum: SQL |
Thema:
Re: select über 2 tabellen |
Von:
G. Guest (
27.01.2004 13:12) |
vielen dank für deine mühe! - auf die idee bin ich gar nicht gekommen
leider bekomme ich einen syntaxfehler - liegt wahrscheinlich daran dass ich access verwende
habe es jetzt so umgeschrieben:
select id, max(werte) as werte_ from
(select t1.id as id, (t1.wert & (select
IIF(ISNULL(max(t2.wert)), "", max(t2.wert) ) & (select
IIF(ISNULL(max(t3.wert)), "", max(t3.wert) )
from testo t3 where t3.wert != max(t2.wert) and t3.wert != t1.wert and t1.id = t3.id) from testo t2 where t1.wert != t2.wert and t1.id = t2.id)) as werte from testo t1) as willi group by id
(" auch durch einfaches hochkomma ersetzt)
funktioniert aber leider auch nicht -> syntaxfehler
hast du eine ahnung woran es liegt??
danke!
ciao
Betreff |
Von |
Datum |
|
|
G.
Guest
|
28.01.2004 09:39 |
|
|
Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!