if I'm asking for those cities, what's the logical reason for preferring a bag instead of a set?
Take a simple table with columns Name(Primary key (ignoring the possibility of two John Smiths for now) and age. You do select Age from table Table;. Your purpose is to calculate the average age. If the results set returned did not include all the ages, including duplicates, your calculation would be wrong.
The tuples in the tabke are unique, but you aren't requesting tuples, you are requesting a substring of each tuple.
In reply to Re^5: (OT) Why SQL Sucks (with a little Perl to fix it)
by BrowserUk
in thread (OT) Why SQL Sucks (with a little Perl to fix it)
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |