This might give you an idea
Re: SQL: Dynamic table names for course modules in a sql query
by Darko Miletić -
Number of replies: 0
This might give you an idea