The declaration syntax for a DECIMAL column is DECIMAL(M,D). The ranges of values for the arguments are as follows:
M is the maximum number of digits (the precision). It has a range of 1 to 65.
D is the number of digits to the right of the decimal point (the scale). It has a range of 0 to 30 and must be no larger than M.
SELECT * FROM modx_site_content AS msc
LEFT JOIN modx_site_tmplvar_contentvalues AS mstc
ON msc.id = mstc.contentid AND mstc.tmplvarid = 1
ORDER BY mstc.contentid DESC
SELECT * FROM modx_site_tmplvar_contentvalues AS mstc
LEFT JOIN modx_site_content AS msc
ON msc.id = mstc.contentid
ORDER BY mstc.contentid DESC