How do i group by a case in oracle. ?
In sybase my statement looks like this.
select case when c.cust_unit_number is null then 'private' else 'business' end,count(distinct a.cust_id_resp)
from cm.account a, cm.customer c
where a.info_is_deleted = 'N'
and a.foreign_account is not null
and...
I have this file... insert.sed
10i"Hello"
It inserts a Hello on line 10..
if i export a variable $line_num
I cant use
$line_numi"Hello"
Any ideas ?
My cursor suddenly stops ?.
@@sqlstatus = 2 when it stops
even though there are more rows to be fetched...
Anybody have an idea why ?..
set nocount on
go
declare tell cursor for
select driver_id, avtale_nr
from GRUNNLAG_DRIVERFILER_AVTALE
where info_is_deleted = 'N'...
I want do delete the lines from a file where column 1 matches an exact pattern.
( I want to delete the lines where column 1=123, not the lines where its 21234 )
Please Help!....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.