Hi Community,
I am trying to understand this select Statement, especially the last line.
while select VehicleId, StartDate, EndDate
from rentTable
where rentTable.VehicleID == this.VehicleID
&& rentTable.RecId != this.RecId
with the last line, do You there clarify that this new Records RecId is not equal with one RecId of the rentTable ?
I basically say "Choose for me from the rentTable, those VehicleIds which are the same as the one I have entered"
and with the second where clauseI clarify also that None of the records RecIds selected, are the same as my new records recId ?
This is I guess also a good way to separte selected records from the new record created, right ?
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (