how would you do this.

G

Guest

hey all,

let's take the Products table in the northwind database as an example. on my
main page i'd like to take 5 products and make them the featured products. so
i'm on a page with a list of products to choose from (say like checkboxes
next to the products i want as featured products). i'm thinking to add a
boolean field called Featured to the Products table.

Would this be a good or bad idea? Please explain.

thanks,
rodchar
 
G

Guest

That would be an easy solution, but rather limited.

An alternative would be to add a table where you store the id's of the
featured products. Then you get some benefits:

:: You can store additional information about the featured products
wihtout wasting space in the products table.

:: By adding a type field you can also handle other kinds of special
treatments for products.
 
G

Guest

say a table named FeaturedProducts maybe?

Göran Andersson said:
That would be an easy solution, but rather limited.

An alternative would be to add a table where you store the id's of the
featured products. Then you get some benefits:

:: You can store additional information about the featured products
wihtout wasting space in the products table.

:: By adding a type field you can also handle other kinds of special
treatments for products.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top