Subject | Re: [firebird-support] Re: Optimizing a count query |
---|---|
Author | Helen Borrie |
Post date | 2008-10-12T13:34:05Z |
At 23:07 12/10/2008, Helen Borrie wrote:
....
select
case
when (exists (select 1 from TBL_JOB_CARD_EMPLOYEE tjce
where tjce.JOB_CARD_ID = tjc.JOB_CARD_ID)) then 'Assigned'
else '--'
end
...
would possibly be nicer for you with
...
select
case
when (exists (select 1 from TBL_JOB_CARD_EMPLOYEE tjce
where tjce.JOB_CARD_ID = tjc.JOB_CARD_ID)) then 'Assigned'
else '--'
end
as Assigned
./hb
....
select
case
when (exists (select 1 from TBL_JOB_CARD_EMPLOYEE tjce
where tjce.JOB_CARD_ID = tjc.JOB_CARD_ID)) then 'Assigned'
else '--'
end
...
would possibly be nicer for you with
...
select
case
when (exists (select 1 from TBL_JOB_CARD_EMPLOYEE tjce
where tjce.JOB_CARD_ID = tjc.JOB_CARD_ID)) then 'Assigned'
else '--'
end
as Assigned
./hb