Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Help Needed
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00214552
Message ID:
00214567
Views:
19
>I'm having trouble coming up with the right way to do this. Here is my problem:
>
>2 tables. The first table is a transaction table that has the following fields:
>
>ItemNumber
>datetime
>qty
>siteid
>
>2nd Table
>
>ItemNumber
>UnitCost
>siteid
>
>The 2nd table is a price table for the current site (siteid). During day to day use, the cost table is not used, but items are added to the transaction table. I need to be able to create a query/report that lists items in the transaction table that do not have a record in the cost table.
>
>I'm sure there is a way to create a view on this, but right now, it's not coming to me.
>

If both ItemNumber and SiteID are character strings:
SELECT * from <i>first table</i> ;
   WHERE ItemNumber + SiteID NOT IN ;
   (SELECT ItemNumber+SiteID IN <i>second table</i>)
>Any help appreciated.
>Kirk
>kkelly@cqisol.com
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform