473,378 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Help with user profiles



Im creating a food site where registered users can set a long list of
'dislikes' from a menu that can be added to, with the aim of the site being
searchable for things that DONT MATCH the 'dislikes' of a user - dislikes
would be in categories i.e. Fruit / Tomatos / Diced (because i like tomato
sauce, but not tomatos so id be able to select everything but sauce and
puree)

BTW im doing it this way because fussy eaters like me can list loads of what
they dont like but not much of what we do - the idea is id be able to be
shown recipes for meals that i will like.

anyone suggest the best format for structuring the tables in the database
for this project, because every avenue i try gets overcomplex really
quickly, or becomes un expandable.

Mark


Jul 22 '05 #1
2 1151
mark | r wrote on 20 jun 2005 in
microsoft.public.inetserver.asp.general:


Im creating a food site where registered users can set a long list of
'dislikes' from a menu that can be added to, with the aim of the site
being searchable for things that DONT MATCH the 'dislikes' of a user -
dislikes would be in categories i.e. Fruit / Tomatos / Diced (because
i like tomato sauce, but not tomatos so id be able to select
everything but sauce and puree)

BTW im doing it this way because fussy eaters like me can list loads
of what they dont like but not much of what we do - the idea is id be
able to be shown recipes for meals that i will like.

anyone suggest the best format for structuring the tables in the
database for this project, because every avenue i try gets overcomplex
really quickly, or becomes un expandable.


There is no "best" way, Mark.

It depends on the way of programming you are familiar or happy with.

============================

I would:

Make a new 2 column DislikeTbl table of all dislikes, be it group or
individual dislikes.
dislikeID*, dislikeName

All products are coded in the productTbl table with say a maximum of 3
productDislikes.
[3 fields additional]

Make a new 3 column UserDislikeTbl table with
UserDislikeID*, userID, dislikeID, weight
[eight: 2 heavy, 1 slight, -1 like, -2 love, 0 off]
So any user can have a unlimited number of dislikes, each with it's
weight. [I suppose most will have no dislikes at all, but others have, so
the last table won't grow too large]

No dislikes are stored in the userTbl itself.

Tomato sauce will have 3 productDislikes:
Tomatos general & Tomato sauce specific, vegetable conserve.
Fresh tomato's 3:
Tomatos general & fresh Tomato specific, fresh vegetables.
You could have:

+1 Tomatos general
-2 Tomato sauce specific
-1 Tomato Ketchup specific

the SQL string will test for entries in UserDislikeTbl and you compute
the resultingDislikeValue being positive or not.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #2

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.242...


mark | r wrote on 20 jun 2005 in
microsoft.public.inetserver.asp.general:


Im creating a food site where registered users can set a long list of
'dislikes' from a menu that can be added to, with the aim of the site
being searchable for things that DONT MATCH the 'dislikes' of a user -
dislikes would be in categories i.e. Fruit / Tomatos / Diced (because
i like tomato sauce, but not tomatos so id be able to select
everything but sauce and puree)

BTW im doing it this way because fussy eaters like me can list loads
of what they dont like but not much of what we do - the idea is id be
able to be shown recipes for meals that i will like.

anyone suggest the best format for structuring the tables in the
database for this project, because every avenue i try gets overcomplex
really quickly, or becomes un expandable.


There is no "best" way, Mark.

It depends on the way of programming you are familiar or happy with.

============================

I would:

Make a new 2 column DislikeTbl table of all dislikes, be it group or
individual dislikes.
dislikeID*, dislikeName

All products are coded in the productTbl table with say a maximum of 3
productDislikes.
[3 fields additional]

Make a new 3 column UserDislikeTbl table with
UserDislikeID*, userID, dislikeID, weight
[eight: 2 heavy, 1 slight, -1 like, -2 love, 0 off]
So any user can have a unlimited number of dislikes, each with it's
weight. [I suppose most will have no dislikes at all, but others have, so
the last table won't grow too large]

No dislikes are stored in the userTbl itself.

Tomato sauce will have 3 productDislikes:
Tomatos general & Tomato sauce specific, vegetable conserve.
Fresh tomato's 3:
Tomatos general & fresh Tomato specific, fresh vegetables.
You could have:

+1 Tomatos general
-2 Tomato sauce specific
-1 Tomato Ketchup specific

the SQL string will test for entries in UserDislikeTbl and you compute
the resultingDislikeValue being positive or not.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


thanks, ill wrap my head around this one and let you know if i cant figure
somethign out - thanks
mark


Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Test Test | last post by:
Hi, group! Here is some interesting problem: Our company has developed a large VB6 application that runs very smoothly on most environments. However, all of a sudden one of our customers...
5
by: Muhd | last post by:
To start off i have a database table that consists of "profiles", another that consists of "users" and finally one that consists of "exclusions", these are defined in the DDL below. I am trying to...
0
by: Wayne Gibson | last post by:
Hi all, Please ignore the other post.. The cat jumped on the machine and sent it before I could stop it!! Was wondering if anybody has expericence this problem.. I am writting an application...
9
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
20
by: Keith G. Murphy | last post by:
I'm trying to get a feel for what most people are doing or consider best practice. Given a mod_perl application talking to a PostgreSQL database on the same host, where different users are...
1
by: Anurag | last post by:
Hi, I have 2 related questions. DB2 UDB ESE v8.x (8.1 till 8.2 FP2 - all fixpaks included) on AIX 5.4.x _____________________________________________________________________________ (QUESTION 1)...
9
by: =?Utf-8?B?Sm9obiBBdXN0aW4=?= | last post by:
I have an app that prints entry tickets. If the printer driver is not set up exactly to detect the black mark on the back of the ticket, the tickets do not print correctly. Because of this, all...
3
by: garyvale | last post by:
Hi, I am experiencing a recurrent bug with my secondary user profiles. I am using WIN XP Pro with SP2 and all current critical upgrades/patches. I am able to create secondary and tertiary...
15
by: jim | last post by:
I have a user that uses a built-in wireless ethernet card to connect to our wireless router and surf the internet from behind our router and uses a wireless Sprint card to connect to the internet...
1
by: sahilrekhi | last post by:
Hi i am working on a graphical user interface deisgn programme. when i compile the file i i get the following output with the mentioned errors: 1>------ Rebuild All started: Project: guiq,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.