Viewing 15 posts - 1 through 15 (of 37 total)
Solved using ...ROW_NUMBER() OVER (PARTITION BY ....
May 2, 2017 at 3:45 pm
Table ST
REF c(18)
DESIGN c(60)
STOCK n(10)
Table SC
REF c(18) this fiels exists on both
DESIGN c(60)
REFB c(18)
join: sc.refb=st.ref
The table ST has...
August 13, 2014 at 12:19 pm
thanks for the quick reply, unfortenly the query you sent don´t return any result
August 13, 2014 at 12:08 pm
thanks for the quick reply, unfortenly the query you sent don´t return any result
August 13, 2014 at 12:05 pm
ok many thanks, works fine, e needed to create table tally on my database not in tempdb like in the example
December 20, 2013 at 11:02 am
if i do
select * from tally
returns all the numbers ok 1,2,....11000
December 20, 2013 at 10:40 am
i put
INSERT INTO BC
SELECT '001','teste', RIGHT( '000' + CAST( n AS varchar(4)), 4)
FROM dbo.Tally
WHERE n <= 9999
and returns this error msg
Erro: Connectivity error: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object...
December 20, 2013 at 10:35 am
hi
After creating the tally table, used this, but gives me a error on the select
INSERT INTO BC (ref,design,codigo)
values ("001","teste", SELECT '001',
'teste',
RIGHT( '000'...
December 20, 2013 at 10:16 am
it worked as i intended.
Next time i post something, i definitly will put more information ( tables, data, fields...), to help you help me!
Thank you very much for your time...
July 25, 2013 at 3:07 pm
First of all, many thanks for your response
it returned
Dossier 1|Null|10|20130210|client|999|Invoice|1|150,00
Dossier 1|Null|10|20130210|client|999|Invoice|4|250,00
Dossier 1|Null|10|20130210|client|999|Invoice|6|250,00
and i need that first value 1000,00
Dossier 1|1000,00|10|20130210|client|999|Invoice|1|150,00
Dossier 1|Null|10|20130210|client|999|Invoice|4|250,00
Dossier 1|Null|10|20130210|client|999|Invoice|6|250,00
July 25, 2013 at 12:58 pm
just another question, is it possible to save the resulting .txt in ANSI mode instead of Unicode?
thanks in advance
August 14, 2012 at 8:28 am
Viewing 15 posts - 1 through 15 (of 37 total)