Forum: MS SQL Apr 14th, 2009 |
| Replies: 3 Views: 398 Hi Somerston and welcome to DaniWeb :)
You will need to join to the employee table twice to get the name for each column. Something like this should work:
-- first select the columns required... |
Forum: MS SQL Mar 23rd, 2009 |
| Replies: 8 Views: 1,318 Hi zammari10 and welcome to DaniWeb :)
Your issue is a different one to this thread. I suggest you start a new topic so that more people will read your question and hopefully someone will have an... |
Forum: MS SQL Mar 21st, 2009 |
| Replies: 8 Views: 1,318 Ah ok, sorry I misunderstood your intent. So in order to loop through each product, I would use a CURSOR. Basically a cursor provides a way to loop through objects in a table. Here's a simple... |
Forum: MS SQL Mar 20th, 2009 |
| Replies: 8 Views: 1,318 Hi alexstrong29 and welcome to DaniWeb :)
If the recommended products are also in the products table, what I would do is add four columns to your product table that represent the product ID's of... |
Forum: MS SQL Mar 18th, 2009 |
| Replies: 7 Views: 4,514 What is the type for the field 'creationdate'? Is it a date, datetime, smalldatetime or something else? |
Forum: MS SQL Mar 15th, 2009 |
| Replies: 7 Views: 4,514 Hi again,
The easiest way to avoid duplicates is to limit the select statement according to some criteria. Do you have an ID field in the table that you can use, or some sort of date field to... |
Forum: MS SQL Mar 13th, 2009 |
| Replies: 7 Views: 4,514 Hi Lido98 and welcome to DaniWeb :)
This can be done in SQL Management Studio in a few easy steps:
First of all, you need to connect to Server B.
Once connected, you need to link Server A... |