(Note: catId, productId and descId are all auto-incrementing identity fields)
As you've probably guessed, we're using three tables to
simulate a very simple product description database (let's
assume we sell books). The diagram above shows the hierarchy
of our data: categories listing products, listing their
descriptions. Before we progress to the next step, we'll
need to create some dummy data in our tables. To maximize
productivity and minimize the length of this article, I've
created a simple T-SQL script, which will populate our tables
as needed. You can download it as part of the support material
at the end of this article. The script will create 3 categories,
7 products and 7 descriptions.