feature: viewnya ketinggalan

This commit is contained in:
2025-02-18 00:35:50 +07:00
parent ecc243d1cc
commit 2fb8aeceaa

View File

@@ -0,0 +1,5 @@
CREATE VIEW business_type_counts AS
SELECT b.business_type, COUNT(t.id) AS count
FROM tourisms t
JOIN business_type b ON t.business_type_id = b.id
GROUP BY b.business_type;