[Solved] Table in Spring [closed]

You are misunderstanding the concept of a database. You don’t add a column for each entry. Instead, look at your items, ores in this case, what do they have in common? Could be something like Id, OreName Or could be somwthing complex like: Id, OreName, price + a bunch of other columns with relations It … Read more

[Solved] sql get query to get any student records who have passed multiple certificates? [closed]

SELECT * FROM student_certificates GROUP BY student_id HAVING COUNT([DISTINCT] certificate_id) >= 20 Join students table if some columns from it needed (do not forget to expand GROUP BY expression accordingly). 1 solved sql get query to get any student records who have passed multiple certificates? [closed]

[Solved] Database schema with categories, subcategories and products [closed]

I would recommend structuring your category table like below: Category ———- CategoryId ParentCategoryId –nullable CategoryName I’m not sure what you want to store in products so it’s hard for me to tell you how to design that, but at a minimum you should have a CategoryId column in there. I would leave it to your … Read more

[Solved] SQL Query – Need some assistance with a query [closed]

One way of doing this is to filter your select by using a subselect in the where clause. I did this really fast just to demonstrate: select * from manufacturer m inner join manufacturer_has_product mhp on m.manufacturer_id = m.manufacturer_id inner join product p on mhp.product_id = p.product_id where m.manufacturer_id in ( select m.manufacturer_id from manufacturer … Read more