I have a problem which I have no idea whatsoever about solving.
I have been given an SQL statement which I need to implement in CR8. The statement is pretty simple apart from the last where clause which I have absolutely no idea how to implement. I have thought of shared variables, sub reports and formulas, but I can't seem to get the answer.
Here is the statement -
SELECT Serial.id, Serial.SerNo, Stock.Code, Location.Name , Location.id AS LocationId
FROM Stock, Serial, Location
WHERE LocationId = 11
AND Stock.id = Serial.StkId
AND Location.Id = Serial.LocationId
AND NOT Serial.id IN
(SELECT SerId
FROM DocSer
WHERE docID = 95561)
The main problem is the fact that the field docID must be a parameter within the main report.
Please help, I have been staring at the screen for about three weeks now.
Thanks, in advance
I have been given an SQL statement which I need to implement in CR8. The statement is pretty simple apart from the last where clause which I have absolutely no idea how to implement. I have thought of shared variables, sub reports and formulas, but I can't seem to get the answer.
Here is the statement -
SELECT Serial.id, Serial.SerNo, Stock.Code, Location.Name , Location.id AS LocationId
FROM Stock, Serial, Location
WHERE LocationId = 11
AND Stock.id = Serial.StkId
AND Location.Id = Serial.LocationId
AND NOT Serial.id IN
(SELECT SerId
FROM DocSer
WHERE docID = 95561)
The main problem is the fact that the field docID must be a parameter within the main report.
Please help, I have been staring at the screen for about three weeks now.
Thanks, in advance