Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
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: Saturday, November 21, 2015 2:32 PM
Points: 410, Visits: 489
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 @ 5:30 AM
Points: 43,459, Visits: 40,609
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
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