Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-20-2004, 04:48 AM   #1 (permalink)
fdtoo
Registered User
 
Join Date: Aug 2004
Posts: 4
fdtoo is on a distinguished road
SQL-Mathematical function

Hi - hopefully this is an easy query for any experts out there!
Suppose I want to know the cust_name & order_no with invoice date > 30 days
& 60 days old from the date of invoice, how do I query against a Microsoft Access
table via vb6.0 shown on a data report.

Table:


The result should show as below:

Customer name Order No > 30 DYS > 60 DYS Total

A A0001 4000 4000
B B0001 5000 5000
-----------------------------------
4000 5000 9000
===================================
SQL-Date function

Hi - hopefully this is an easy query for any experts out there!
I need to extract a weekly sales report from a table with 2 fields

Sales(field1)
Cost(field2)

The query result should be like:

Sales Cost GP GP%
400 200 200 A%
200 100 100 B%

GP% = GP/Sales X 100%

Can I extract such info via SQL from Microsoft Access table using vb6.0 with
Data report platform?

can anyone help? Thanks
Fromebbie
fdtoo is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
loading sql schema from php sde PHP 7 12-11-2002 06:57 PM
pass filename to function Blaqb0x Standard C, C++ 1 09-02-2002 10:12 PM
trouble calling auxiliary function in a class brtklt Standard C, C++ 0 07-18-2002 05:22 PM


All times are GMT -8. The time now is 08:58 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting