General discussion
February 12, 2007 at 04:20 AM
lavan_baloo

T-SQL querying multiple tables based on certain conditions

by lavan_baloo . Updated 19 years, 8 months ago

Hi,

I have a situation where i need to query multiple tables (12 tables) within a database for records containing values that are listed in another table and also based on a certain conidition.

Specifically, i have a EMP table with a list of employee names, date of joining, office address etc. I have 12 other tables that contain detailed information for all employees split into 12 monthly tables, based on date of joining.

I need a query to list all information in these 12 tables for all employees that are listed in table EMP for employees that joined before certain date (the date field and EMP number is common to the EMP field and all the 12 tables).

Can you help me?
thnak you in advance!

This discussion is locked

All Comments