Click here to Skip to main content
15,889,368 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 4 tables with foreign key in each tables to join and a date column(last updated date).
I want to get the recent updated date by comparing dates column from the 4 tables.

table#1 - pk_id | last_added

table#2 - pk_id | fk_id | last_updated_table2

table#3 - pk_id | fk_id | last_updated_table3

table#4 - pk_id | fk_id | last_updated_table4


Here i want to sort records(pk_id of table#1) by comparing all the date column of 4 tables.
Posted
Updated 26-Apr-12 20:08pm
v2
Comments
Dhanushka Madushan lk 27-Apr-12 2:17am    
check this
http://www.mssqltips.com/sqlservertip/1667/sql-server-join-example/
Mohibur Rashid 27-Apr-12 2:24am    
Well, Now we know what you want. Now you should know what we want. We want you to do some ground work. if there is error, then let us know we will help you
Sandeep Mewara 27-Apr-12 7:05am    
And the issue is...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900