WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Lines overlapping each other for normalization...

Romoblogger

New member

0

0%

Status

Offline

Posts

28

Likes

0

Rep

0

Bits

150

3

Months of Service

0%
As seen above, I want to create a separate table to eliminate duplicate rows. Instead of writing the same sections repeatedly, I will use the IDs of the sections. So far, no problem. However, as visualized, the difference between Mechanical Engineering and Mechanical Engineering (English) is not in the sections, only the language of the section is different. I should consider this as a separate column in the sections table. There is no issue logically, but how can I handle cases like Mechanical Engineering, Mechanical Engineering (O), and Mechanical Engineering (English)? I haven't been able to generate a suitable query. Is there anyone who can help with this? (EDIT: The issue was resolved with the query select IF(LOCATE('(', sectionName),SUBSTRING_INDEX(`sectionName`, '(', -1), null) from sections.)
 

249

6,622

6,642

Top