If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Simple Pervasive SQL Query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-10-04, 14:55
orekin orekin is offline
Registered User
 
Join Date: Jun 2004
Posts: 6
Simple Pervasive SQL Query

Hi, I am trying to do a very simple query:

SELECT "OEINVH"."CUSTOMER", "OEINVH"."SHIPTO", "OEINVH"."INVDATE", "OEINVH"."INVNUMBER", "OEINVH"."INVNET", "OECRDH"."CRDNUMBER","OECRDH"."CRDNET"

FROM "OEINVH" LEFT OUTER JOIN "OECRDH" ON "OEINVH"."INVNUMBER" = "OECRDH"."INVNUMBER"

I am almost there, just three issues:

(1) Stop any records that have no data "OEINVH"."SHIPTO" (stop nulls and blanks)
(2) Return "OEINVH"."INVDATE" as an actual date and convert it to the first of the month (ie 20030631 becomes 01/Jun/2003)
(3) Return "OEINVH"."INVNET" - "OECRDH"."CRDNET" (for some reason, when I enter this in I get wrong results.

Many Thanks, Bill
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On