Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

TSQL Challenge 82 - Find elements that uniquely make up a group

By Jacob Sebastian,

TSQL Challenge 82 - Find elements that uniquely make up a group

The challenge is to find the Tax Code based on Price. There is a table called "LineItems" that have Invoice Number and Price. There is another table "Sales" contains Invoice Number, Amount and Tax Code. Each sales amount is uniquely made up by the sum of one or more prices. Based on this you should assign the tax code to each price.

http://beyondrelational.com/puzzles/challenges/116/find-elements-that-uniquely-make-up-a-group.aspx

 
Total article views: 1201 | Views in the last 30 days: 2
 
Related Articles
ARTICLE

Usage Based Pricing

Software pricing is a controversial topic, but Steve Jones found an article saying many enterprises ...

FORUM

Pricing EDI Feed Processing System

Creating a system that will process EDI 811 (Invoices) feeds and am curious on pricing options.

FORUM

Unique Constraint

Unique Constraint

FORUM

Unique Constrain

Unique Constrain

BLOG

SQL Azure pricing

Form the first glance it may seem to be complicated to calculate price of hosting your database on A...

Tags
 
Contribute