Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: cummicon
Forum: SQL Language April 29th, 2004, 05:14 AM
Replies: 3
Views: 5,505
Posted By cummicon
Use a temporary table to hold the results of the...

Use a temporary table to hold the results of the initial query, something like

SELECT TheForiegnKey, COUNT(*) AS Expr1
INTO #temptable
FROM (SELECT DISTINCT ForiegnKey, [_Group_]
FROM ...
Forum: SQL Language April 28th, 2004, 05:29 AM
Replies: 3
Views: 5,505
Posted By cummicon
This will give the foreign key and the number of...

This will give the foreign key and the number of distinct groups for that key where there is more than 2 distincy groups for that key

SELECT TheForiegnKey, COUNT(*) AS Expr1
FROM ...
Showing results 1 to 2 of 2

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.