Hi All,
I'm trying to join data from three tables into one, but also create a column to hold the name (or in my case set As Path) of the table that the data came from.
Maybe an example will help explain this better....
tbl_one
1.jpg | 2010-06-08
2.jpg | 2010-06-06
tbl_two
1.jpg | 2010-06-06
2.jpg | 2010-06-07
tbl_three
1.jpg | 2010-06-07
2.jpg | 2010-06-08
the result (order by #date# desc) being...
#name# #date# #path#
1.jpg | 2010-06-08 | folder1
2.jpg | 2010-06-08 | folder3
1.jpg | 2010-06-07 | folder3
2.jpg | 2010-06-07 | folder2
1.jpg | 2010-06-06 | folder2
2.jpg | 2010-06-06 | folder1
note: folder1 is data from tbl_one, folder2 is data from tbl_two.... so on....
If anyone has any ideas, that'd be great.
Thanks for reading.
I'm trying to join data from three tables into one, but also create a column to hold the name (or in my case set As Path) of the table that the data came from.
Maybe an example will help explain this better....
tbl_one
1.jpg | 2010-06-08
2.jpg | 2010-06-06
tbl_two
1.jpg | 2010-06-06
2.jpg | 2010-06-07
tbl_three
1.jpg | 2010-06-07
2.jpg | 2010-06-08
the result (order by #date# desc) being...
#name# #date# #path#
1.jpg | 2010-06-08 | folder1
2.jpg | 2010-06-08 | folder3
1.jpg | 2010-06-07 | folder3
2.jpg | 2010-06-07 | folder2
1.jpg | 2010-06-06 | folder2
2.jpg | 2010-06-06 | folder1
note: folder1 is data from tbl_one, folder2 is data from tbl_two.... so on....
If anyone has any ideas, that'd be great.
Thanks for reading.