Viewing 15 posts - 106 through 120 (of 201 total)
Well if you really want the join you can change your join to
LEFT JOIN #tempAccountOwner b
ON a.AccountID = b.AccountID
...
November 25, 2010 at 7:14 am
KBSK (11/25/2010)
I did not get what is wrong with the below piece of code?
declare @VERS numeric(2,2)
set @VERS = 1
--or
--set @vers = 1.00
select @VERS
I get error
when set @vers = 1
Arithmetic overflow...
November 25, 2010 at 6:53 am
mister.magoo (11/24/2010)
SELECT @variable1 = (SELECT column1 FROM table WHERE column2 = 'somevalue')
unless you want an error for selecting multiple rows in...
November 24, 2010 at 11:28 pm
Should be worth 2 points.
- Cant copy/paste
- Multichoice question
- Judging by right/wrong ratio (53/47 at time)
/T
November 24, 2010 at 12:40 am
Shamshad Ali (11/22/2010)
?link=ProductsAndServices?src=NLVANOV10_lid={5F86099C-AFDD-DF11-80B8-001CC023728E}&stid=1&ptu=1
?src=NLVANOV10_lid={5F86099C-AFDD-DF11-80B8-001CC023728E}&stid=1&ptu=1
Should check both & and _lid...
November 22, 2010 at 6:29 am
Not needed
Depending on uniqueness something like
insert into #table2 (t_col2) select col1 from #table1
insert into #table3 (f_col3) select t_col1 from #table2 t2 join #table1 t1 on t1.col1 = t2.t_col2
could work.
If...
November 22, 2010 at 6:04 am
Im going to guess that the test when you broke them up into 2 SPs isnt entirerly accurate.
Im guessing you made 3400 usp_addRecords followed by 3400 usp_addclientNumbers. Which isnt...
November 22, 2010 at 12:24 am
Well the
insert into tblClientList (clientNumber)
select clientNumber
from tblOrder
where not exists
(select *
from tblClientList
where tblOrder.clientNumber=tblClientList.clientNumber)
group by clientNumber
part is slightly extreme. It will look on all rows in the tblOrder and make sure that...
November 16, 2010 at 11:45 pm
Richard Warr (11/16/2010)
November 16, 2010 at 2:49 am
Carlo Romagnano (11/16/2010)
Good question. I refreshed implicit cast.
In sql2000, it gives error also with SET @sortby='Date1'. (Syntax error converting datetime from character string.),...
November 16, 2010 at 1:20 am
Okay not the best question. However i wouldnt go as far to say it was nonsence. It shows that you cant mix different datatypes in a conditional order by without...
November 15, 2010 at 11:53 pm
Thank you both.
I did figure it would be partly because of the much larger dataset. I had just assumed that something in the execution plan regarding cost (CPU/IO/Operator) would...
November 15, 2010 at 2:49 am
Maybe something like this could work.
/*Testcode*/
declare @Items table (Price integer, Vendor varchar(32), Item varchar(32))
insert into @Items(Price, Vendor, Item)
select 56,'Peter','Shirt' union all
select 56,'Bob','Shirt' union all
select 15,'John','Tie' union all
select 16,'Bob','Tie' union all
select...
November 12, 2010 at 5:58 am
And the answer is "False" because? I would definatly say that my statusbar changes color... hence "True".
/T
October 14, 2010 at 11:17 pm
p.ravirao (10/14/2010)
I have 45 countrries in table.
Here is my query snippet..i did changed as for my reqs.
select...
October 14, 2010 at 6:18 am
Viewing 15 posts - 106 through 120 (of 201 total)