I have a "Tickets" table with the following structure (unnecessary columns removed)
int | string | int |
ID | Window | Count |
------------------------
0 | Internet | 10 |
1 | Phone | 20 |
2 | Fax | 15 |
3 | Fax | 10 |
4 | Internet | 5 |
. | . | . |
. | . | . |
And I matched this table with the "Ticket" class. Therefore, I can get all the entries:
var tickets = from t in db.Tickets
select t;
Now I need to get a list of unique window names in the table. For the table above, the list will look something like this:
- the Internet
- Telephone
- fax machine
Do I need to create this list at all without selecting all the entries and repeating them?
I am using SQL Server 2008 Express.
EDIT:
, . , . :