Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Easier than Scan...EndScan?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00368731
Message ID:
00368800
Views:
19
>Hi All,
>I need to create a cursor from a 1-to-Many join that only shows the $ amounts on the 1 side one time. I can do a scan...endscan on the cursor and zero out the second and following amounts, but... Isn't there an easier way?
>
>Consider:
>
>Claims Table
>Mem_Num  Clm_Id  Clm_Amt
>1        10      $50
>2        20      $25
>3        30      $15
>
>Eligibility Table
>Mem_Num  Pln_Id
>1        AETNA
>1        BCBS
>2        CIGNA
>
>Results from Left Outer Join on Mem_Num
>Mem_Num  Clm_Id  Clm_Amt  Pln_Id
>1        10      $50      AETNA
>1        10      $50      BCBS
>2        20      $25      CIGNA
>3        30      $15      N/A
>
>Required Results
>Mem_Num  Clm_Id  Clm_Amt  Pln_Id
>1        10      $50      AETNA
>1        10      <B><I>$0</B></I>       BCBS
>2        20      $25      CIGNA
>3        30      $15      N/A
>
>Am I dreaming? Any ideas welcome.

With no rule for resolving processing order or limits on coverage, yep; sleepy time...
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
Next
Reply
Map
View

Click here to load this message in the networking platform