On 9/23/05, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> What DB are you using?  Perhaps that's a reserved word, and needs to
> be escaped/changed?
>

In Oracle, you'd do:

SELECT serialnumber, count(*) AS rowCount
FROM inventory
GROUP BY serialnumber
HAVING COUNT(*) > 1

Oracle doesn't like the reference to the rowCount alias in the HAVING
clause. I'm not sure how other RDBMS's deal with that.

Regards,
Dave.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219132
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to