So I have a column in mysql db that has values such as '34343|dollar' and '2343|dollar'. I wish to get all the column values, then remove the '|dollar' string and get the average of the numbers. How can I achieve this?
3
-
1And this, boys and girls, is why we don't violate first normal form of relational databases.Mike– Mike2016-05-12 19:27:46 +00:00Commented May 12, 2016 at 19:27
-
1Possible duplicate of Mysql, storing multiple value in single column from another tableMike– Mike2016-05-12 19:27:53 +00:00Commented May 12, 2016 at 19:27
-
See also: stackoverflow.com/questions/1258743/normalization-in-mysqlMike– Mike2016-05-12 19:33:42 +00:00Commented May 12, 2016 at 19:33
Add a comment
|