Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
dev45
Yak Posting Veteran
54 Posts |
Posted - 2005-03-04 : 04:13:03
|
| Hello all,i have a table logging actions made on files.. table LOGS(folderFrom int, folderTo int, fileID int)so,if we move a file (with id = 23) from folder A (with id = 1) to folder B (with id = 12) we shall have a record as follows : 1,12,23table LOGS is referenced with foreing keys from tables FOLDERS (twice ,for both folderFrom and FolderTo columns) and FILES (for column fileID)in order to show the records to the users i have join LOGS to FOLDERS twice to get the names of folderFrom and folderTo respectively...any ideas ?thx ;-) |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-03-04 : 07:09:24
|
| What's the question?Yes, you have to join to folders twice to get the two folder names.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
dev45
Yak Posting Veteran
54 Posts |
Posted - 2005-03-04 : 08:42:06
|
| how should the query be...but i think i found it thx anyway :-) |
 |
|
|
|
|
|