0 Replies - 505 Views - Last Post: 22 February 2013 - 04:34 AM Rate Topic: -----

#1 cam0988  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 13-September 12

Django model database query

Posted 22 February 2013 - 04:34 AM

Hi,
Pretty new to Python and Django, trying to do a simple user based review on a business which has categories

How can I query one of my tables and find the most reoccurring values (strings) and store the results in another table?

eg, users add a dress code of some form, casual, business, formal etc. How can I get the most reoccurring value from this and then store it into another table (class) so dress_codeAv = mostReoccuring

Any help would be greatly appreciated.

Cheers

Campbell

Is This A Good Question/Topic? 0
  • +

Page 1 of 1