I need to write a query that will query data from 18 tables. Any suggestions on the best way to do this? Should I just list all the columns that I need and then proceed to join all the tables together.
I tried to start out with 2 tables and kept adding on so that I can check the results, but once I get half way to two thirds done, I get alot of null data, so I'm not sure if my query is correct, or it could be that there isn't any data that matches the joins once I start to join alot of tables.
Any suggestions would be appreciated. Also, would joins be the only way to do this and also, any suggestions on good books that would be helpful with writing complex SELECT/JOINS statements.
I tried to start out with 2 tables and kept adding on so that I can check the results, but once I get half way to two thirds done, I get alot of null data, so I'm not sure if my query is correct, or it could be that there isn't any data that matches the joins once I start to join alot of tables.
Any suggestions would be appreciated. Also, would joins be the only way to do this and also, any suggestions on good books that would be helpful with writing complex SELECT/JOINS statements.