Viewing 11 posts - 91 through 101 (of 101 total)
hi!
to any other noobs around here...the solution.:-D :
update dbo.analisis
set idegrupoana = '10'
where (matid = 'am') and (tipaid = 'mt')and(idegrupoana is NULL)and
(anadesc like '%disuelto%')
it worked like a...
September 9, 2009 at 3:40 pm
benyos (9/9/2009)
i want to insert new records that correspond to specific criteria.
That means:
1. You are inserting new records
2. You specify values for the new records so they match certain...
September 9, 2009 at 2:08 pm
benyos (9/9/2009)
You have an "insert...values..." command and then "select...where..."
What are you trying to achieve? Do you mean to update records that correspond...
September 9, 2009 at 12:50 pm
benyos (9/9/2009)
INSERT TargetTable (anadesc,idenvaseana,idegrupoana,matid,tipaid)
select anadesc,idenvaseana,idegrupoana,matid,tipaid
from dbo.analisis
where (anadesc like '%disuelto%') and (matid = 'am') and (tipaid =...
September 9, 2009 at 11:58 am
Dave Ballantyne (9/7/2009)
This link discusses your optionshttp://www.simple-talk.com/sql/t-sql-programming/concatenating-row-values-in-transact-sql/
Feel free to post again with any further questions
thanks.
i will read it.
September 7, 2009 at 9:13 am
Dave Ballantyne (9/7/2009)
Take For instance
1 2 3
-----------------
15 5280 96828810
16 5280 96828810
What output are you expecting
96828810 15,16
96828810 15
96828810 ...
September 7, 2009 at 8:30 am
Dave Ballantyne (9/7/2009)
create table x
(
x1 integer,
x2 integer
)
go
insert into x
select 1,0
union all
select 1,0
go
select * from x
go
select distinct x1,x2 from x
Im not sure im clear on your requirements...
September 7, 2009 at 8:10 am
thanks for the help guys.
Now another thing...
the triggers does what is supposed to...but one of the rows is PK, so the trigger cant insert the data from inserted in...
September 3, 2009 at 7:46 am
thanks!! i corrected it, it didnt work also...it i´m gonna do it all over again.
September 2, 2009 at 2:43 pm
it says syntax error.
create trigger one on dbo.pedidos
after insert as
begin
set nocount on;
INSERT INTO dbo.pedidos(PedNum,ESTID)
select(inserted.PedNum,'2')
from inserted
end
dont know what i´m missing.
September 2, 2009 at 2:41 pm
GSquared (8/31/2009)
August 31, 2009 at 9:46 am
Viewing 11 posts - 91 through 101 (of 101 total)