我正在处理用户注册页面。当用户上传图像时,我通过attachment id
将该图像附加到用户元中,现在当用户添加评论时,他上传的照片不会出现在评论旁边的评论列表中。经过一番搜索后,我在头像中获得了一些信息...但是无法了解如何从正面上传头像?
答案 0 :(得分:0)
--OCCUPIED UNBUDGETED BEDS (IF # of 'Regular' beds for the Program is < max_budgeted_beds than this is 0, If its > than the Budgeted than this value = max_budgeted_beds + max_unbudgeted_beds - # of 'Regular' beds for the program)
, SUM(
CASE WHEN (SUM(CASE WHEN Bed_Type.bed_type_description = 'Regular' THEN 1 ELSE 0 END)) > UNIT.unit_beds_max_budgeted
THEN Unit.unit_beds_max_unbudgeted + Unit.unit_beds_max_budgeted - (SUM (CASE WHEN Bed_Type.bed_type_description = 'Regular' THEN 1 ELSE 0 END))
ELSE 0 END
) AS 'Occupied Unbudgeted Beds'
请检查此代码。这应该有用。