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 |
|
prompratan
Starting Member
30 Posts |
Posted - 2005-01-03 : 05:00:43
|
| emp_table------------id * name 1001 * a1002 * b1003 * ctime_table--------------------id * t_id 1001 * 01 1002 * 02 t_table------------t_id * times01 * 8:0002 * 11:00I want Result is Result_table -----------------------------------------------------------id * name * t_id * times1001 * a * 01 * 8:001002 * b * 02 * 11:001003 * c * NULL * NULL* is separate for fields and data |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-01-03 : 05:14:21
|
| select e.id, e.name, t.t_id, tt.timesfrom emp_table eleft join time_table ton e.id = t.t_idleft join t_table tton t.t_id = tt.timesorder by e.id==========================================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. |
 |
|
|
prompratan
Starting Member
30 Posts |
Posted - 2005-01-03 : 20:21:10
|
| Thank you for Question nr |
 |
|
|
prompratan
Starting Member
30 Posts |
Posted - 2005-01-03 : 20:42:22
|
| I have any questions. If I want Result isResult_table -----------------------------------------------------------id * name * t_id * times1003 * c * NULL * NULLI should write sql ??? |
 |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-01-03 : 21:27:36
|
| select e.id, e.name, t.t_id, tt.timesfrom emp_table eleft join time_table ton e.id = t.t_idleft join t_table tton t.t_id = tt.timeswhere t.t_id is nullorder by e.id==========================================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. |
 |
|
|
prompratan
Starting Member
30 Posts |
Posted - 2005-01-03 : 21:52:01
|
| Thank you very much |
 |
|
|
|
|
|