![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
how would I get the most frequent part of a feild (telephone cntrex). I have some idea how to use "ORDER BY COUNT DESC LIMIT 1" but what if I want to compare the first seven characters (ie, area code and exchange) instead of the entire number? Just like one would do entering an expression in the querybuider |
|
- = - Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist http://www.facebook.com/vasjpan2 ---{Nothing herein constitutes advice. Everything fully disclaimed.}--- [Homeland Security means private firearms not lazy obstructive guards] [Urb sprawl confounds terror] [Remorse begets zeal] [Windows is for Bimbos] |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Many thanks.. BTW I was hoping to get only one value.. so I can build a pivot table.. (else 3d!) Add DISTINCT |
|
- = - Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist http://www.facebook.com/vasjpan2 ---{Nothing herein constitutes advice. Everything fully disclaimed.}--- [Homeland Security means private firearms not lazy obstructive guards] [Urb sprawl confounds terror] [Remorse begets zeal] [Windows is for Bimbos] |
![]() |
| Thread Tools | |
| Display Modes | |
| |