Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2007, 08:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default Report Query

I am kind of exhausted. Can someone shed some light on this?

I have some data that I need to compile to get the following report.
something like this...

Origin Deployed Reconciled Location
10 4 6(10-4) A
10 2 4(10-(4+2)) B
10 2 2(10-(4+2+2)) C
10 0 2(10-(4+2+2)) NULL

Anything that has location data should be considered as deployed. I am finding it difficult to get the reconciled stuff calculated. I have got the thing ready except the Reconciled column. Can someone help me out?

Thanks in advance
Cheers

_________________________
- Vijay G
Strive for Perfection
__________________
- Vijay G
 
Old April 23rd, 2007, 09:26 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

I am fully clear on what you are trying to reconcile. Can you post your statement.


Jaime E. Maccou
 
Old April 26th, 2007, 09:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

This time I am done with my requirement. It was just a 20 mins work. I wrote some functions that I usedin select statement and got it work perfect. I should also have posted the table schemas involved in it. Sorry about that, didn't have much time these days. Happy that I accomplished it.

Thanks for your time.
Cheers.

_________________________
- Vijay G
Strive for Perfection
 
Old June 11th, 2007, 03:39 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Please post your solution.

Thanks,
Richard

 
Old June 11th, 2007, 08:16 PM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Functions? Nice little bit of cross-tab logic may have sufficed... depending on how you wrote the function(s), the cross-tab logic might be a little quicker, to boot.

--Jeff Moden





Similar Threads
Thread Thread Starter Forum Replies Last Post
Report from Query hajjara Access 1 March 28th, 2008 06:41 AM
Crystal Report Query asters Crystal Reports 0 December 29th, 2006 10:37 AM
Non query Report Parameter qa BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 July 2nd, 2004 02:49 PM
Generating a report from more than one query lic023 Access VBA 1 March 31st, 2004 06:46 PM
Report query khautinh SQL Server 2000 2 July 22nd, 2003 02:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.