2. Antipattern Categories Database Design Database Creation Antipatterns Antipatterns CREATE TABLE BugsProducts ( bug_id INTEGER REFERENCES Bugs, product VARCHAR(100) REFERENCES Products, PRIMARY KEY (bug_id, product) ); Query Application Antipatterns Antipatterns SELECT b.product, COUNT(*) $dbHandle = new PDO(‘mysql:dbname=test’); FROM BugsProducts AS b $stmt = $dbHandle->prepare($sql); GROUP BY