That's right...exactly the conclusion I thought of after I emailed.

I should have just used the DISTINCT function.

Question:  What's the benefit to using the alias?  Is there a benefit
or is its usage just required?

Could it just be:

Select distinct Book_Genre
  from Books
order by Book_Genre

???

Rick

-----Original Message-----
From: Alan Rother [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 13, 2006 3:55 PM
To: CF-Talk
Subject: Re: Group By function for MS SQL Server Express 2005?

SELECT DISTINCT(Book_Genre) AS MyGenre
FROM Books
ORDER BY Book_Genre

This will accomplish what you want.

=]






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243404
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