|
|
|
|
@@ -0,0 +1,226 @@
|
|
|
|
|
-- Expand pet and product seed data
|
|
|
|
|
|
|
|
|
|
INSERT INTO pet (petName, petSpecies, petBreed, petAge, petStatus, petPrice)
|
|
|
|
|
VALUES
|
|
|
|
|
('Rocky', 'Dog', 'German Shepherd', 1, 'Available', 475.00),
|
|
|
|
|
('Daisy', 'Dog', 'Poodle', 2, 'Available', 512.00),
|
|
|
|
|
('Cooper', 'Dog', 'Bulldog', 3, 'Available', 560.00),
|
|
|
|
|
('Ruby', 'Dog', 'Boxer', 4, 'Available', 575.00),
|
|
|
|
|
('Tucker', 'Dog', 'Dachshund', 5, 'Available', 634.00),
|
|
|
|
|
('Rosie', 'Dog', 'Shih Tzu', 1, 'Available', 660.00),
|
|
|
|
|
('Bear', 'Dog', 'Rottweiler', 2, 'Available', 686.00),
|
|
|
|
|
('Maggie', 'Dog', 'Corgi', 3, 'Available', 745.00),
|
|
|
|
|
('Leo', 'Dog', 'Husky', 4, 'Available', 749.00),
|
|
|
|
|
('Penny', 'Dog', 'Border Collie', 5, 'Available', 808.00),
|
|
|
|
|
('Jax', 'Dog', 'German Shepherd', 1, 'Available', 823.00),
|
|
|
|
|
('Nala', 'Dog', 'Poodle', 2, 'Available', 871.00),
|
|
|
|
|
('Finn', 'Dog', 'Bulldog', 3, 'Available', 447.00),
|
|
|
|
|
('Sadie', 'Dog', 'Boxer', 4, 'Available', 495.00),
|
|
|
|
|
('Ace', 'Dog', 'Dachshund', 5, 'Available', 510.00),
|
|
|
|
|
('Zoe', 'Dog', 'Shih Tzu', 1, 'Available', 547.00),
|
|
|
|
|
('Ollie', 'Dog', 'Rottweiler', 2, 'Available', 606.00),
|
|
|
|
|
('Millie', 'Dog', 'Corgi', 3, 'Available', 654.00),
|
|
|
|
|
('Murphy', 'Dog', 'Husky', 4, 'Available', 691.00),
|
|
|
|
|
('Willow', 'Dog', 'Border Collie', 5, 'Available', 728.00),
|
|
|
|
|
('Bentley', 'Dog', 'German Shepherd', 1, 'Available', 776.00),
|
|
|
|
|
('Lily', 'Dog', 'Poodle', 2, 'Available', 780.00),
|
|
|
|
|
('Scout', 'Dog', 'Bulldog', 3, 'Available', 828.00),
|
|
|
|
|
('Gracie', 'Dog', 'Boxer', 4, 'Available', 876.00),
|
|
|
|
|
('Ranger', 'Dog', 'Dachshund', 5, 'Available', 452.00),
|
|
|
|
|
('Hazel', 'Dog', 'Shih Tzu', 1, 'Available', 478.00),
|
|
|
|
|
('Moose', 'Dog', 'Rottweiler', 2, 'Available', 515.00),
|
|
|
|
|
('Mia', 'Dog', 'Corgi', 3, 'Available', 530.00),
|
|
|
|
|
('Simba', 'Cat', 'Ragdoll', 1, 'Available', 295.00),
|
|
|
|
|
('Cleo', 'Cat', 'Bengal', 2, 'Available', 321.00),
|
|
|
|
|
('Oreo', 'Cat', 'British Shorthair', 3, 'Available', 358.00),
|
|
|
|
|
('Pepper', 'Cat', 'Sphynx', 4, 'Available', 417.00),
|
|
|
|
|
('Jasper', 'Cat', 'Scottish Fold', 5, 'Available', 454.00),
|
|
|
|
|
('Phoebe', 'Cat', 'Russian Blue', 1, 'Available', 491.00),
|
|
|
|
|
('Shadow', 'Cat', 'Abyssinian', 2, 'Available', 528.00),
|
|
|
|
|
('Mochi', 'Cat', 'Birman', 3, 'Available', 554.00),
|
|
|
|
|
('Louie', 'Cat', 'Ragdoll', 4, 'Available', 591.00),
|
|
|
|
|
('Ivy', 'Cat', 'Bengal', 5, 'Available', 606.00),
|
|
|
|
|
('Theo', 'Cat', 'British Shorthair', 1, 'Available', 654.00),
|
|
|
|
|
('Piper', 'Cat', 'Sphynx', 2, 'Available', 251.00),
|
|
|
|
|
('Nova', 'Cat', 'Scottish Fold', 3, 'Available', 277.00),
|
|
|
|
|
('Archie', 'Cat', 'Russian Blue', 4, 'Available', 336.00),
|
|
|
|
|
('Olive', 'Cat', 'Abyssinian', 5, 'Available', 362.00),
|
|
|
|
|
('Boots', 'Cat', 'Birman', 1, 'Available', 399.00),
|
|
|
|
|
('Maple', 'Cat', 'Ragdoll', 2, 'Available', 436.00),
|
|
|
|
|
('Gizmo', 'Cat', 'Bengal', 3, 'Available', 473.00),
|
|
|
|
|
('Nina', 'Cat', 'British Shorthair', 4, 'Available', 499.00),
|
|
|
|
|
('Salem', 'Cat', 'Sphynx', 5, 'Available', 547.00),
|
|
|
|
|
('Stella', 'Cat', 'Scottish Fold', 1, 'Available', 595.00),
|
|
|
|
|
('Kiki', 'Cat', 'Russian Blue', 2, 'Available', 610.00),
|
|
|
|
|
('Sunny', 'Cat', 'Abyssinian', 3, 'Available', 658.00),
|
|
|
|
|
('Mabel', 'Cat', 'Birman', 4, 'Available', 244.00),
|
|
|
|
|
('Coco', 'Bird', 'Cockatiel', 1, 'Available', 119.00),
|
|
|
|
|
('Sky', 'Bird', 'Parakeet', 2, 'Available', 145.00),
|
|
|
|
|
('Sunny', 'Bird', 'Canary', 3, 'Available', 204.00),
|
|
|
|
|
('Kiwi', 'Bird', 'Lovebird', 1, 'Available', 230.00),
|
|
|
|
|
('Pico', 'Bird', 'Finch', 2, 'Available', 81.00),
|
|
|
|
|
('Blue', 'Bird', 'Conure', 3, 'Available', 118.00),
|
|
|
|
|
('Rio', 'Bird', 'Cockatiel', 1, 'Available', 144.00),
|
|
|
|
|
('Angel', 'Bird', 'Parakeet', 2, 'Available', 203.00),
|
|
|
|
|
('Chirpy', 'Bird', 'Canary', 3, 'Available', 251.00),
|
|
|
|
|
('Peach', 'Bird', 'Lovebird', 1, 'Available', 91.00),
|
|
|
|
|
('Mango', 'Bird', 'Finch', 2, 'Available', 128.00),
|
|
|
|
|
('Pearl', 'Bird', 'Conure', 3, 'Available', 165.00),
|
|
|
|
|
('Bubbles', 'Fish', 'Goldfish', 1, 'Available', 30.00),
|
|
|
|
|
('Splash', 'Fish', 'Betta', 2, 'Available', 56.00),
|
|
|
|
|
('Coral', 'Fish', 'Guppy', 1, 'Available', 23.00),
|
|
|
|
|
('Neptune', 'Fish', 'Molly', 2, 'Available', 23.00),
|
|
|
|
|
('Marlin', 'Fish', 'Tetra', 1, 'Available', 49.00),
|
|
|
|
|
('Finley', 'Fish', 'Angelfish', 2, 'Available', 27.00),
|
|
|
|
|
('Pebble', 'Fish', 'Goldfish', 1, 'Available', 64.00),
|
|
|
|
|
('Wave', 'Fish', 'Betta', 2, 'Available', 20.00),
|
|
|
|
|
('Aqua', 'Fish', 'Guppy', 1, 'Available', 57.00),
|
|
|
|
|
('Flash', 'Fish', 'Molly', 2, 'Available', 46.00),
|
|
|
|
|
('Nemo', 'Fish', 'Tetra', 1, 'Available', 13.00),
|
|
|
|
|
('Pearl', 'Fish', 'Angelfish', 2, 'Available', 61.00),
|
|
|
|
|
('Thumper', 'Rabbit', 'Mini Lop', 1, 'Adopted', 147.00),
|
|
|
|
|
('Clover', 'Rabbit', 'Netherland Dwarf', 2, 'Adopted', 138.00),
|
|
|
|
|
('Biscuit', 'Rabbit', 'Lionhead', 3, 'Adopted', 177.00),
|
|
|
|
|
('Hazel', 'Rabbit', 'Rex', 1, 'Adopted', 91.00),
|
|
|
|
|
('Juniper', 'Rabbit', 'Mini Lop', 2, 'Adopted', 83.00),
|
|
|
|
|
('Poppy', 'Rabbit', 'Netherland Dwarf', 3, 'Adopted', 111.00),
|
|
|
|
|
('Snowball', 'Rabbit', 'Lionhead', 1, 'Adopted', 172.00),
|
|
|
|
|
('Maple', 'Rabbit', 'Rex', 2, 'Adopted', 150.00),
|
|
|
|
|
('Peanut', 'Hamster', 'Syrian', 1, 'Adopted', 29.00),
|
|
|
|
|
('Nibbles', 'Hamster', 'Dwarf', 2, 'Adopted', 42.00),
|
|
|
|
|
('Pumpkin', 'Hamster', 'Roborovski', 1, 'Pending', 49.00),
|
|
|
|
|
('Mocha', 'Hamster', 'Syrian', 2, 'Pending', 48.00),
|
|
|
|
|
('Buttons', 'Hamster', 'Dwarf', 1, 'Pending', 61.00),
|
|
|
|
|
('Teddy', 'Hamster', 'Roborovski', 2, 'Pending', 35.00),
|
|
|
|
|
('Pip', 'Hamster', 'Syrian', 1, 'Pending', 39.00),
|
|
|
|
|
('Toffee', 'Hamster', 'Dwarf', 2, 'Pending', 52.00),
|
|
|
|
|
('Sprout', 'Hamster', 'Roborovski', 1, 'Available', 26.00),
|
|
|
|
|
('Bean', 'Hamster', 'Syrian', 2, 'Available', 28.00);
|
|
|
|
|
|
|
|
|
|
INSERT INTO product (prodName, prodPrice, categoryId, prodDesc)
|
|
|
|
|
VALUES
|
|
|
|
|
('Chicken Recipe Dog Food', 42.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Beef Feast Dog Food', 51.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Salmon Blend Dog Food', 17.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Lamb Dinner Dog Food', 28.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Puppy Starter Kibble', 39.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Senior Care Dog Food', 40.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Small Breed Kibble', 44.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Large Breed Kibble', 57.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Grain Free Dog Food', 68.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Turkey Rice Formula', 79.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Duck Sweet Potato Meal', 25.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Venison Protein Blend', 36.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Healthy Weight Dog Food', 48.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Sensitive Stomach Kibble', 62.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('High Energy Dog Food', 72.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Organic Dog Biscuits', 18.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Peanut Butter Dog Treats', 33.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Dental Chew Sticks', 38.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Training Treat Bites', 48.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Soft Chicken Treats', 57.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Pumpkin Fiber Treats', 70.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Joint Support Biscuits', 14.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Mini Breed Dinner', 17.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Farmhouse Dog Meal', 30.00, 1, 'Nutritious food and treats for dogs'),
|
|
|
|
|
('Feather Teaser Wand', 30.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Catnip Mouse Toy', 24.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Jingle Ball Set', 18.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Scratching Post Small', 6.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Crinkle Tunnel', 31.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Laser Pointer Toy', 6.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Plush Fish Toy', 19.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Spring Coil Pack', 20.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Hanging Door Toy', 12.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Interactive Puzzle Toy', 22.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Catnip Kicker Toy', 20.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Rolling Bell Ball', 20.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Ribbon Chase Toy', 19.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Mini Plush Mouse', 21.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Treat Dispensing Ball', 16.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Double Pom Toy', 12.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Window Perch Toy', 10.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Scratch Pad Refill', 8.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Rainbow Wand Toy', 23.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Carpet Scratcher', 23.00, 2, 'Play items for active cats'),
|
|
|
|
|
('Bird Perch Set', 27.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Parakeet Seed Mix', 40.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Canary Food Blend', 53.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Mineral Cuttlebone', 57.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Bird Ladder Toy', 68.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Mirror Bell Combo', 80.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Clip On Food Cup', 92.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Bird Cage Liner Pack', 108.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Nesting Material Pack', 121.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Treat Spray Millet', 8.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Wooden Swing Perch', 22.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Foraging Ball Toy', 32.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Cage Cleaning Spray', 47.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Parrot Rope Perch', 54.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Bird Bath Dish', 54.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Songbird Vitamin Drops', 78.00, 3, 'Care supplies for pet birds'),
|
|
|
|
|
('Aquarium Filter Cartridge', 36.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Decorative Aquarium Gravel', 49.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Fish Net Medium', 34.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Water Conditioner', 45.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Aquarium Thermometer', 59.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('LED Tank Light', 67.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Air Stone Pack', 76.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Aquarium Heater 50W', 92.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Aquarium Heater 100W', 106.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Fish Flake Food', 95.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Algae Scraper', 105.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Aquarium Plant Set', 122.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Bubble Curtain Kit', 136.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Breeder Box Insert', 149.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Filter Sponge Pack', 164.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Aquarium Background Roll', 183.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Glass Lid Clips', 174.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Submersible Pump', 191.00, 4, 'Essential aquarium equipment and accessories'),
|
|
|
|
|
('Hamster Bedding Pack', 50.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Rabbit Hay Bundle', 49.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Guinea Pig Pellets', 15.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Small Pet Water Bottle', 31.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Hamster Hideout Hut', 40.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Chew Stick Bundle', 48.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Rabbit Litter Tray', 58.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Exercise Ball Large', 68.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Small Pet Food Bowl', 20.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Timothy Hay Cubes', 28.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Guinea Pig Tunnel', 38.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Hamster Nesting Fluff', 47.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Rabbit Grooming Brush', 60.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Small Pet Carrier', 7.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Hay Rack Feeder', 11.00, 5, 'Supplies for small pets'),
|
|
|
|
|
('Wooden Chew Blocks', 27.00, 5, 'Supplies for small pets');
|
|
|
|
|
|
|
|
|
|
INSERT INTO productSupplier (supId, prodId, cost)
|
|
|
|
|
SELECT CASE MOD(p.prodId - 7, 5)
|
|
|
|
|
WHEN 0 THEN 1
|
|
|
|
|
WHEN 1 THEN 2
|
|
|
|
|
WHEN 2 THEN 3
|
|
|
|
|
WHEN 3 THEN 4
|
|
|
|
|
ELSE 5
|
|
|
|
|
END,
|
|
|
|
|
p.prodId,
|
|
|
|
|
ROUND(p.prodPrice * (0.62 + (MOD(p.prodId - 7, 5) * 0.03)), 2)
|
|
|
|
|
FROM product p
|
|
|
|
|
WHERE p.prodId >= 7
|
|
|
|
|
AND NOT EXISTS (
|
|
|
|
|
SELECT 1 FROM productSupplier ps WHERE ps.prodId = p.prodId
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
INSERT INTO inventory (prodId, quantity)
|
|
|
|
|
SELECT p.prodId,
|
|
|
|
|
CASE p.categoryId
|
|
|
|
|
WHEN 1 THEN 120 + MOD((p.prodId - 7) * 17, 60)
|
|
|
|
|
WHEN 2 THEN 180 + MOD((p.prodId - 7) * 17, 60)
|
|
|
|
|
WHEN 3 THEN 70 + MOD((p.prodId - 7) * 17, 60)
|
|
|
|
|
WHEN 4 THEN 45 + MOD((p.prodId - 7) * 17, 60)
|
|
|
|
|
ELSE 95 + MOD((p.prodId - 7) * 17, 60)
|
|
|
|
|
END
|
|
|
|
|
FROM product p
|
|
|
|
|
WHERE p.prodId >= 7
|
|
|
|
|
AND NOT EXISTS (
|
|
|
|
|
SELECT 1 FROM inventory i WHERE i.prodId = p.prodId
|
|
|
|
|
);
|