Quantcast
Channel: SQL Server Manageability forum
Viewing all articles
Browse latest Browse all 1519

SQL with order and bucketing of $ amouts

$
0
0

Hello Everyone, 

Thanks for walking through post. 

I have business rule as part of my requirements to handle multiple tenders on a specific purchases (say  XYZ).

XYZ details and transaction detail information is located in different tables. XYZ details, trans details are in different gran, however, xyz details are rolled  up at trans detail to pull the tender details. Tender information is only at transaction and not at XYZ level hence we decided to get the tender information at transaction level and applying the XYZ amount value from the specific type of tender. 

Scenario: XYZ is purchased along all other line items in transaction. Line Items, transaction detail andxyz details are in different tables. Objective is to get a result set and distribution of tenders using the Business Rule

Business Rule and Example

Business Rule set as folloe 

Applying amount to credit if any was used.

Apply remaining amount to check, if any was used

Apply remaining amount to Cash, If any was used

Apply remaining amou


Viewing all articles
Browse latest Browse all 1519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>