Viewing 15 posts - 61 through 75 (of 107 total)
I have tried using nvarchar data type but no use.
and yes, there are single quotes and commas in the "comments" column.Now what should i do?
July 16, 2010 at 9:33 am
Thank you.
July 9, 2010 at 12:59 pm
I just gave an example ,but this is what it is doing exactly:
the current stored procedure is inserting the rows depending on the input parameters and returning only one row...
July 9, 2010 at 10:45 am
This is what i am looking for .
Excellent .Thank you very much.
June 22, 2010 at 12:37 pm
I have attached the note pad with expected results.
sorry for the confusion.
June 22, 2010 at 11:22 am
Hi,
I am sorry for this but i need a different output now.actually i want to create the view for the code you have given me but looks like...
May 17, 2010 at 11:36 am
The code is giving exact results i want .
Yes ,i checked the addition you are right my results are inaccurate.
Thanks Lynn.
May 10, 2010 at 6:42 am
I did test these scripts and they are working in sql server 2005.
create table OPPortunity
(
oppId int,
abc varchar(20)
)
create table book
(
Oppid int,
booked int,
year int
)
create table sales
(
oppid int,
shippped int,
year int
)
--inserting into opportunity table
insert...
May 7, 2010 at 2:47 pm
of course i will change it to 2007 to 2010 ,but how will i get the desired column.if i include s.year i will miss 2008 and 2009 ,or if i...
May 7, 2010 at 9:37 am
can anyone please answer my previous reply ,its urgent.
May 7, 2010 at 9:27 am
What if i have data in sales table like this:
table c insertion:
insert into sales values
(2,200,2007)
(3,300,2010)
(5,300,2010)
if i only include B.year then i will miss 2007 shipped data in Sales table right.
May 6, 2010 at 7:51 am
Now, i need the out put in a different way which i will show you after i insert some more data into Book and sales tables.
insert into opportunity values
(1,'xxx')
(2,'ghj')
(3,'ghj')
(4,'ghj')
(5,'ghj')
table...
May 6, 2010 at 7:00 am
yes lynn,it is giving me like this:
opp id booked shipped
1 100 null
2 null 200
3 300 300
4 null null
5 null null
and when i do sum of booked and shipped it...
May 5, 2010 at 1:46 pm
I got it ,left outer join is acting like an inner join here so i have changed my query to this:
select
sum(coalesce(B.shipped,0))
,sum(coalesce(B.booked,0))
from
tOpportunity O
left outer join tSalesS
on S.OppID = O.OppID
and S.year =2010
left...
May 5, 2010 at 1:27 pm
Viewing 15 posts - 61 through 75 (of 107 total)