ms access - SQL query to get all dependencies of needed DLLs -



ms access - SQL query to get all dependencies of needed DLLs -

i'm trying manage application's dependencies in access database, , utilize help sql query give me list of every component single result.

for example, suppose have next 3 tables additional columns aren't shown here:

currentbuild versions dependencies ============== ============== ======================================= item version item version item version dependency depversion ------ ------- ------ ------- ------ ------- ---------- ---------- myexe 1.3 myexe 1.0 myexe 1.0 n/a n/a mydll1 1.0 myexe 1.1 myexe 1.1 n/a n/a mydll2 1.0 myexe 1.2 myexe 1.2 n/a n/a mydll3 1.1 myexe 1.3 myexe 1.3 n/a n/a myexe 1.4 mydll1 1.0 mydll4 1.0 mydll1 1.0 mydll2 1.0 somemsdll 1.0 mydll2 1.0 mydll3 1.0 mydll4 1.0 mydll2 1.1 mydll3 1.0 mydll5 1.0 mydll3 1.0 mydll3 1.1 mydll4 1.0 mydll3 1.1 mydll4 1.0 mydll6 1.0 mydll4 1.0 mydll5 1.0 mydll6 1.0 mydll5 1.0 mydll6 1.0 mydll7 1.0 mydll6 1.0 mydll7 1.0 mydll8 1.0 mydll7 1.0

what query can utilize next result currentbuild table? prefer simple query on vba macro; however, i'm not opposed vba macro if can't done query.

item version ----------- ------- myexe 1.3 mydll1 1.0 mydll2 1.0 mydll3 1.1 mydll4 1.0 mydll6 1.0 mydll7 1.0 mydll8 1.0 somemsdll 1.0

so far, have following, doesn't give me desired results; gives me contents of currentbuild table:

select w.item, w.version (select distinct v.[item], v.[version] ([versions] v inner bring together [dependencies] d on v.[item] = d.[dependency] , v.[version] = d.[depversion]) inner bring together [currentbuild] s on d.[item] = s.[item] , d.[version] = s.[version] union select distinct v.[item], v.[item] [versions] v inner bring together [currentbuild] s on v.[item] = s.[item] , v.[version] = s.[version]) w;

in case you're curious why myexe doesn't have dependencies on mydlls, simple reply it's not needed reply question query; however, fyi, dlls loaded dynamically, myexe has no build-time dependency on mydlls.

thanks.

pack sucker union query , grab max version values each item:

select max(item) item, max(version) version (select item, version currentbuild union select item, version versions union select item, version dependencies union select dependency item, depversion version dependencies) allitem grouping item, version

sql ms-access dependencies

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -