Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Need query assistance. Expand / Collapse
Posted Tuesday, June 18, 2013 11:57 AM


Group: General Forum Members
Last Login: Today @ 12:41 PM
Points: 432, Visits: 584
Is there a way to structure a single query to select all the unique values from field 1 of table A, and the unique values from field 2 of Table A and then select count(*) for all of the resulting combinations of field 1 and field 2 values?

Thanks in advance.
Post #1464822
Posted Tuesday, June 18, 2013 12:04 PM



Group: General Forum Members
Last Login: Today @ 6:31 PM
Points: 45,425, Visits: 43,761
Please don't cross post. It just wastes people's time and fragments replies

No replies to this thread please. Direct replies to

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1464824
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse