Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL - How Do I Do This?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00681371
Message ID:
00681677
Views:
20
Try
SELECT * ;
  FROM lineitem t1 ;
  WHERE RecType = "A" ;
    AND EXISTS ( SELECT * ;
			FROM lineitem t2 ;
			WHERE RecType = "I" ;
				AND t2.ParentId = t1.ParentId ;
				AND t2.LineId = t1.LineId ) ;
UNION ALL ;	
...
>Wow! Worked perfect. One thing though - it's pulling both records that
>have had a modification AND those that have not.
>
>I only want the records that have had a change, and the previous
>record for it.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform