Viewing 8 posts - 226 through 233 (of 233 total)
At least not for me.
Its giving 6, 1 & 3 respectively.
April 9, 2013 at 3:05 pm
Phil & Sean both are right but you can use something like this..
Insert into Table2 (col3)
Select col1 + ' ' + col2 from table1
April 9, 2013 at 3:00 pm
May be we both are working on different data set.
Here is mine.
create table playground.sale (email varchar(255), quantityint);
insert into sale values ('email1', 1);
insert into sale values ('email1', 2);
insert into sale...
April 9, 2013 at 2:37 pm
No, min or max would produce a different result that what he is expecting. Min will produce 1 and max will produce 3.
April 9, 2013 at 1:45 pm
See you are getting 24 because of cartesian.
So if you use
select sum(distinct(s.quantity))--,s.email
from sale s
inner join eval e
on s.email = e.email
where s.email = 'email1'
if will give you correct result.
April 9, 2013 at 1:37 pm
As you have mentioned that the recovery model is simple, so I believe yes. But I have never done that. But I have used sp_repldone and worked as expected....
April 9, 2013 at 1:23 pm
Anything meaningful?
I though you are looking for something to "What if i Just want to mark just the transaction in question as done.. using the @xactid ", and the url...
April 9, 2013 at 9:28 am
Check this url.. it may help.
http://blogs.msdn.com/b/repltalk/archive/2011/08/23/using-sp-repldone-to-skip-a-transaction.aspx
April 9, 2013 at 7:00 am
Viewing 8 posts - 226 through 233 (of 233 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy