Hi All,
I'm new to SQL and I've need to know if this is possible in SQL.
I have a system to deal with pricing of a product. The pricing system works as follows.
Step 1 If the customer has a contracted price use this. If no price go to step 2
Step 2 If the customer is part of a group then check the head office for a price. If no price go to step 3
Step 3 Use the standard price list defined for this customer.
So in effect on a customer we had 3 price lists - contract, head office and default.
Can you do an SQL query to be able to bring back the single price to charge or do you have to be a bit sneakier?
Cheers
I'm new to SQL and I've need to know if this is possible in SQL.
I have a system to deal with pricing of a product. The pricing system works as follows.
Step 1 If the customer has a contracted price use this. If no price go to step 2
Step 2 If the customer is part of a group then check the head office for a price. If no price go to step 3
Step 3 Use the standard price list defined for this customer.
So in effect on a customer we had 3 price lists - contract, head office and default.
Can you do an SQL query to be able to bring back the single price to charge or do you have to be a bit sneakier?
Cheers