I am storing email addresses in a column as varchar and I will be making queries to select emails based on the the suffix (the domain name). So for example:
---------------
EMAIL
---------------
[email protected]
[email protected]
[email protected]
[email protected]
I want to be able to efficiently select all emails with "aol.com" suffix, for example – and there could eventually be millions of records matching the query. Is there an efficient way to do this, or would it be better to just create another column and store just the suffix and add an index to that column?