Quote from nitro:
I am not sure I follow. Are you saying that it makes no sense to show duplicate rows? In the example I gave before, it makes perfect sense. Say you are storing news items in a database. Say your columns are
GUID(PK), DateTime, Headline, NewsStory, Author.
Say you want to return all the news stories and the author for a single day by a given author. Clearly this is a table that is a bunch of duplicate entries.
my understanding of the original 3 column table was different...
but in the case above why not SELECT * FROM @table WHERE Author = @author AND Date = @date?
my wonder is why do you want to see 2 exactly the same rows shown twice (instead of - at maximum - been notified of number of occurrences of the same row?)