I don't understand the question. What's the relevance of Table D?
What are you trying to do, create a table or run a query? Or both, i.e. are you doing create table d as select...?
If a query, what columns do you want the query to display?