Mar 12, 2007 #1 jimoblak Instructor Joined Oct 23, 2001 Messages 3,620 Location US Is it possible to select distinct domain names from an email field in a table in a single statement, extracting the domain after the token '@'?
Is it possible to select distinct domain names from an email field in a table in a single statement, extracting the domain after the token '@'?
Mar 12, 2007 #2 Sleidia Technical User Joined May 4, 2001 Messages 1,284 Location FR Should be this I think : Code: SELECT SUBSTRING_INDEX('user@domain.com', '@', -1) Upvote 0 Downvote