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 |
|
vijmeena
Starting Member
10 Posts |
Posted - 2003-01-03 : 00:52:50
|
| I have 2 tables with the following data.Table 1FlagN YNTable 2FlagYYNIf I group by the field flag for both the tables separately I get the results asN 2Y 1 for table 1and Y 2N 1 form table 2How can I write a single query to get the results as Y 3N 3There are other columns also present in the 2 tables. |
|
|
byrmol
Shed Building SQL Farmer
1591 Posts |
Posted - 2003-01-03 : 03:31:07
|
| Look up "UNION" in Books on Line (BOL)DavidM"SQL-3 is an abomination.." |
 |
|
|
|
|
|