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: Tuesday, November 1, 2016 9:01 AM
Points: 433, Visits: 597
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: Saturday, December 3, 2016 5:18 AM
Points: 45,619, Visits: 44,147
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