364
Comment:
|
374
|
Deletions are marked like this. | Additions are marked like this. |
Line 11: | Line 11: |
{{{ | |
Line 14: | Line 15: |
}}} |
CategoryComputingTips > SQLCompTips
SQL Tips
This is more a collection of recipes than tips I guess.
Tip 1
SELECT COUNT(substring),substring FROM ( SELECT SUBSTRING(domainname FROM POSITION('.' in domainname)) FROM orders WHERE type=1) AS foo GROUP BY substring;
Group and count domain extensions.