Hypothetical Weight Change Data in MySQL Format
Here's a hypothetical dataset tracking weight changes for 6 people over the past month in MySQL format:
-- Create the table structure
CREATE TABLE weight_tracking (
user_id INT NOT NULL,
date DATE NOT NULL,
weight_kg DECIMAL(5,2) NOT NULL,
comments VARCHAR(255),
PRIMARY KEY (user_id, date)
);
-- Insert data for 6 users with multiple entries over the past month
INSERT INTO weight_tracking (user_id, date, weight_kg, comments) VALUES
-- User 1: Consistent weight loss
(1, '2023-11-01', 85.5, 'Starting weight, goal is to lose 5kg'),
(1, '2023-11-08', 84.2, 'Good progress with new diet'),
(1, '2023-11-15', 83.7, 'Added daily walks'),
(1, '2023-11-22', 82.9, 'Feeling lighter and more energetic'),
(1, '2023-11-29', 81.8, 'Almost reached my goal!'),
-- User 2: Weight fluctuations
(2, '2023-11-01', 68.3, 'Starting point'),
(2, '2023-11-07', 67.8, 'Weekend was tough'),
(2, '2023-11-14', 68.5, 'Stressful week at work'),
(2, '2023-11-21', 67.9, 'Back on track with exercise'),
(2, '2023-11-28', 67.2, 'Finally seeing progress'),
-- User 3: Minimal change
(3, '2023-11-02', 72.1, 'Maintenance phase'),
(3, '2023-11-16', 72.0, 'Stable weight as expected'),
(3, '2023-11-30', 72.3, 'Holiday weight gain'),
-- User 4: Significant weight gain
(4, '2023-11-01', 90.2, 'Starting new job, less time to exercise'),
(4, '2023-11-10', 91.5, 'Eating out frequently'),
(4, '2023-11-20', 92.8, 'Need to get back to routine'),
(4, '2023-11-27', 93.4, 'Joined gym to reverse trend'),
-- User 5: Rapid weight loss
(5, '2023-11-03', 78.6, 'Starting keto diet'),
(5, '2023-11-10', 76.2, 'Water weight loss'),
(5, '2023-11-17', 74.9, 'Strict adherence to diet'),
(5, '2023-11-24', 73.5, 'Concerned about rapid loss'),
(5, '2023-11-30', 72.8, 'Consulted nutritionist'),
-- User 6: Inconsistent tracking
(6, '2023-11-05', 65.4, 'First weigh-in'),
(6, '2023-11-19', 64.7, 'Forgot to track for 2 weeks'),
(6, '2023-11-26', 65.1, 'Back from vacation');
This dataset includes:
- 6 different users with IDs 1 through 6
- Multiple weight entries over the past month (November 2023 in this example)
- Various patterns: consistent loss, fluctuations, maintenance, gain, rapid loss
- Realistic comments that might accompany weight changes
- Different tracking frequencies (some weekly, some bi-weekly, some irregular)
You can adjust the dates to match the current month if needed. The weights are in kilograms with 2 decimal places for precision.