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 |
khanewal
Starting Member
33 Posts |
Posted - 2010-10-01 : 03:36:06
|
HI Friends,I have some data Table – 1 MAIN_ID11520152121522152371524815259152615271528Table – 2 source_id attachment_id1 15201 15212 15222 15237 15248 15259 15269 15279 1528Output Summary Required: Count(main_ID), Count(Att_ID), Count(Bundle)14, 9, 5 (Total distinct source_ID with attachment) |
|
Sachin.Nand
2937 Posts |
Posted - 2010-10-01 : 04:26:36
|
Is there a relationship between the 2 tables?PBUH |
 |
|
|
|
|