Does anybody know if it is possible to share data between nested SQL statements. I.E.
So from the above OtherFieldID would match the ID of the record from the first table. I don't seem to be able to figure it out. Can anybody help?Code:SELECT SomeFields...,(SELECT SUM(OtherField) FROM table WHERE OtherFieldForiegnKey=SomeFieldPrimaryKey) FROM OTHERTable
Thanks,
-=XQ=-




Reply With Quote