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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2001-09-01 : 13:07:49
|
| John writes "I have 2 tables as follows :-table1 fieldspgrp char 12desc char 200act char 1this is a list of group codes and their descriptions and a flag indicating where that group is active or not.table2 fieldspgrp char 12sgrp char 12this shows which subgroups belong to which main groupsGiven a group code, I would like to returnsgrp from table2 and matching desc from table1 where the corresponding act in table1 = 1 ie subgroup codes and their descriptions where the subgroup is active.I assume that this can be done with a JOINW2K - SP2SQL7" |
|
|
|
|
|