famousoren
MIS
Hello!<br>I am trying to write an SQL statement that looks at an individual 'request' and then checks the audit trail to see if the issue has been reopened. If the issue has been reopened, assign the issue a "1", else assign it a "0"<br>the final table would look like this. There is a separate request table and a separate audit table with multiple audit codes<br><br>requestid : timecreated : audit(reopen)<br><br>2006 01/01/00 1<br>2007 04/07/00 0<br><br>Thanks,<br><br>Oren<br>