mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 18:49:38 +00:00 
			
		
		
		
	
		
			
	
	
		
			7 lines
		
	
	
		
			152 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
		
		
			
		
	
	
			7 lines
		
	
	
		
			152 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
|   | CREATE VIEW habits_current
 | ||
|  | AS
 | ||
|  | SELECT habit_id, MAX(tracked_time) AS last_tracked_time
 | ||
|  | FROM habits_log
 | ||
|  | GROUP BY habit_id
 | ||
|  | ORDER BY MAX(tracked_time) DESC
 |