Suppose I have a table 'customer
' like this:
+--------------------------------------------------+--------+
| Customer | ID |
+--------------------------------------------------+--------+
| OSHKOSH CORPORATION-17180 | cust12 |
| L&T-IES-P&G KABUSHIKI KAISHA-4216 | cust13 |
| THE PROCTER-GAMBLE MANUFACTURING COMPANY-17214 | cust14 |
+--------------------------------------------------+--------+
I should get only one row since column customer has only one hyphen.
| OSHKOSH CORPORATION-17180 | cust12 |