rupam_jaiswal Posted July 20, 2009 Share Posted July 20, 2009 HI, My table has 2 fields Id,Marks. Marks can be 100/200.Now I want to update marks by 2 ways. 1) add 5 to both numerator and denominator i,e 105/205. 2) add 5 to numerator i,e 105/200. What is the way to implement this? Regards Rupam Link to comment https://forums.phpfreaks.com/topic/166600-query-for-updating-fraction-value/ Share on other sites More sharing options...
trq Posted July 20, 2009 Share Posted July 20, 2009 Store your numerator and denominator in separate columns like they should be. Link to comment https://forums.phpfreaks.com/topic/166600-query-for-updating-fraction-value/#findComment-878482 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.