Mam tabeli tak:rekordy oddzielając i GROUP BY w dostępie
title part desc
Blah This 1 This begins the
Blah This 2 example table.
Some Record 1 Hello
Another 1 This text extends a bit
Another 2 further so it is in
Another 3 another record in the
Another 4 table
W programie Access, szukam zbudować kwerendy/SQL do GROUP BY title
i złączyć pole desc
więc wygląda to tak :
title desc
Blah This This begins the example table.
Some Record Hello
Another This text extends a bit further so it is in another record in the table
Jak można tego dokonać za pomocą samego SQL (bez VBA/skryptów)? FOR XML PATH
nie działa w programie Access, tylko w SQL Server. Próbowałem VBA tutaj How to improve efficiency of this query & VBA?, ale jest po prostu zbyt wolny.
Czy istnieje funkcja, która może być używana, która nie jest uruchamiana bez przerwy, gdy zapytanie jest już otwarte?
Spójrz na to. Nie jestem pewien, czy FOR XML PATH działa w programie Access, ale jeśli tak, to jest to odpowiedź: http://stackoverflow.com/questions/14082863/concatenation-of-strings-by-for-xml-path –
Nie ma sposobu, aby zrób to za pomocą samego Sql w Access. [Musisz użyć funkcji] (http://wiki.lessthandot.com/index.php/Concatenate_a_List_into_a_Single_Field_%28Column%29). –