If "type of sugar taken" is binary (dichotomous), you could use a point-biserial correlation, which is equal to Pearson's product-moment correlation.
If "type of sugar taken" is polytomous (more than 2 nominal categories), you can compute Eta-squared (using one-way ANOVA) as well as Eta (by taking the square-root of Eta-squared). Note that Eta does not have the same interpretation as a "regular" correlation coefficient such as Pearson's correlation.
Christian Geiser Eta-squared was calculated for association between poly chotomous categorical and continuous variables, whereas, Pearson's R between two continuous variables. quite interpreting results. Thanks for guideline.