For thos interested: http://www.tek-tips.com/viewthread.cfm?qid=1749325
So now that the unlikely event happened how can you tell from your data which value is the last one inserted?
Do you have a unique key on whtbSorterProductHistory?
Do you perhaps have an identity column on table...
If _ is a space then LML is in column 9 and PRES in column 8
I assume the _ in 2ALMEJA_FN1+90_LML is not a space i.e.
#---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+---10----+---11----+---12----+---13-
415068.737 2034568.082 2488.000255 0...
I had this problem since MS outlook 2010.
Seems they changed something in outlook
Solved by moving the signature to the beginning
i.e.
(echo $sig; uuencode f1 f1.txt; uuencode f2 f2.txt) | mail...
You are mixing char and int data types
I don't know SQL Anywhere but maybe this code might push you in the right direction
declare @i int
select @i=5
select number from master..spt_values
where type='P'
and number=case when @i is null then number else @i end
select @i=null
select number from...
not tested
select a.code_order, a.customer_id, a.company_cd
from t2 a
join
(select customer_id , min_code_order=min(code_order)
from t1 b
group by customer_id
) b
on a.customer_id = b.customer_id
and a.code_order=b.min_code_order
SELECT sapid, startdate, number, cstctr, job
from cust c
join (select max_startdate=max(startdate) from cust)m
on c.startdate=max_startdate
where sapid = '500032'
You can get more info about bcp from http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc30191.1550/html/utility/X14951.htm
Where are you getting stuck
Comma delimited can cause problems if your data contain commas e.g. a comma inside the address
update @v_table1
set ranking=a.rownum-b.minrownum+1
from @v_table1 a
join
(select minrownum=min(rownum),distdate
from @v_table1
group by distdate
) b
on a.distdate=b.distdate
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.