Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language 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 September 8th, 2004, 09:45 AM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is there any single SQL command?

I am making a project comprising following 6 tables-

(1)ReleasedOrderDetails
ReleasedOrderNo(primary key)
Other Fields

(2)ReceiptRegister

ReleasedOrderNo(Foreign key)
OrderedWt
Other Fields

(3)DDDetails

DDNo(primary key)
DDAmount
Other Fields

(4)BillDetails


BillNo (primary key)
BillAmount
BillQuantity
Other Fields

(5)ROBill


BillNo (Foreign key)
ReleasedOrderNo (Foreign key)

(6)RODD


DDNo (Foreign key)
ReleasedOrderNo (Foreign key)

Is there any single SQL command which can give
sum(DDAmount),sum(BillAmount),
sum(DDAmount)-sum(BillAmount),
sum(OrderedWt), sum(BillQuantity),
sum(OrderedWt)-sum(BillQuantity) ?

If yes then how can I use it in VB DataReport?
Please guide me?
 
Old September 10th, 2004, 01:16 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

you can u create the single query/view/cursor use in the datareport







Similar Threads
Thread Thread Starter Forum Replies Last Post
About SQL command hoailing22 ASP.NET 1.0 and 1.1 Basics 8 May 19th, 2005 07:31 PM
ASP.Net Single Single-on with Oracle Application S guhanath Oracle 0 October 6th, 2004 05:05 AM
Trying to send SQL results to a single variable NathanielMc VB Databases Basics 9 June 3rd, 2004 02:36 PM
Sql Command hanzahalka ADO.NET 0 July 8th, 2003 09:59 AM





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