Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 19th, 2007, 12:05 AM
gnandag gnandag is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 1 gnandag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 54 sec
Reputation Power: 0
Exclamation Cross Tab / Pivot Solution Needed

Hai Friends,

I am developing a application where, i looking for a solution.

My scenario is, i have 3 tables which hold the following values

1) Master Type table - TypeID, TypeName - where TypeID is Primary key column
eg.
1,Sales Bill
2.Receipt Bill

2) Type Details Table - TypeDetID, TypeID, TypeDetail (multiple for each Type in Master) - where TypeDetID is Primary and TypeId is Foreign Keys
Eg.
1,1,Sales Tax
2,1,Discount
3,1,Total Value

3) Transaction Details table which holds the transaction details along with the TypeDetID and Value for TypeDetail (numeric value)

the scenario is in the transaction details there will be 5 rows if Type details has 5 details defined.

At runtime the user has to select which details column the user wants to see as a report. Here the user selects the Sales Tax & Total value fields alone.

eg.
row1: trans detail with Sales Tax value, Total Value
row2: trans details with Sales Tax value, Total Value
row3: trans details with Sales Tax value, Total Value


Any help will be highly appreciated...

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Cross Tab / Pivot Solution Needed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway