Hi,
I have two tables
REPORT - hold details about a report and who has that locked (blank if its not locked)
HR - Hold name, and id
REPORT(details,locked_by)
HR(usrid,firstname,lastname)
now if i just use
SELECT details,first_name,last_name FROM report,hr where report.locked_by = hr.usrid
it will just display those that are locked(have data in the locked_by field)
Though i need it to display the report but just have blank for the first and last name if its not in there
Any ideas? i figure this should be easy i just can't work it out
Thanks
Ash
I have two tables
REPORT - hold details about a report and who has that locked (blank if its not locked)
HR - Hold name, and id
REPORT(details,locked_by)
HR(usrid,firstname,lastname)
now if i just use
SELECT details,first_name,last_name FROM report,hr where report.locked_by = hr.usrid
it will just display those that are locked(have data in the locked_by field)
Though i need it to display the report but just have blank for the first and last name if its not in there
Any ideas? i figure this should be easy i just can't work it out
Thanks
Ash