Python Forum
Sorting Data Returned From Database
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sorting Data Returned From Database
#3
Hi,

assuming you use a RDBMS, the table design is pretty weird. You should have at least three tables: one for ingredients, one for receipes and one respesenting the many-to-many relation between ingredient and receipe combined with holding the needed amount / weight of the ingredient for the given receipe. Then it will be way easier to query the database using SQL.

Regards, noisefloor
ibreeden likes this post
Reply


Messages In This Thread
Sorting Data Returned From Database - by Timbo03 - Feb-11-2023, 03:33 PM
RE: Sorting Data Returned From Database - by Yoriz - Feb-11-2023, 03:50 PM
RE: Sorting Data Returned From Database - by noisefloor - Feb-11-2023, 05:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  RE: Data isn't writing to the Database with Django and SQL Lite card51shor 15 5,478 Sep-16-2020, 08:27 AM
Last Post: metulburr
  Calling a Returned Value to Another Function valerydolce 9 6,829 Mar-28-2017, 09:54 PM
Last Post: valerydolce

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020