Viewing 15 posts - 586 through 600 (of 1,048 total)
Lowell (4/17/2013)
ALTER TABLE [dbo].[GV_STNDetails]ADD STN AS RIGHT('0000' + CONVERT(VARCHAR,[From_StoreCode]),4) +RIGHT('000000' + CONVERT(VARCHAR,[STNID]),6) PERSISTED
if...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 17, 2013 at 5:28 am
Kingston Dhasian (4/17/2013)
kapil_kk (4/17/2013)
Please help me on this...
The scenario that you have mentioned is not very clear.
It would be good if you can explain your issue with some DDL and...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 17, 2013 at 5:17 am
Please help me on this...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 17, 2013 at 5:09 am
Hugo Kornelis (4/17/2013)
When I read the question in the daily newsletter, I expected the answer options to be "yes" or "no", and I was fully ready...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 17, 2013 at 5:08 am
New thing to learn... ๐
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 17, 2013 at 1:17 am
Hugo Kornelis (4/16/2013)
rals (4/16/2013)
(...)The above code returns 5, 5, 4. Based on the output it looks like COUNT(*) and COUNT(1) returns the number of rows, regardless of content.
COUNT(*) returns the...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 16, 2013 at 11:47 pm
Sean Lange (4/16/2013)
kapil_kk (4/15/2013)
select COUNT(convert(int,NULL)) from #temp
It will return 0 because when you execute the query:
SELECT CONVERT(int,NULL) it will return NULL and as the return type of...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 16, 2013 at 9:28 pm
--Variable Delaration
Declare @keytosearch varchar(max), @Database_Selected varchar(50)
set @keytosearch ='%london%'
set @Database_Selected= 'Northwind'
Declare @Table varchar(100), @Table_Name Cursor, @Count_Column int,
@Result nvarchar(4000),@ID int,@ID_inserted int,@Count_Table int, @data_type varchar(10)
set @ID_inserted=0
set @Count_Table=0
DECLARE @column...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 16, 2013 at 7:52 am
Hugo Kornelis (4/16/2013)
There are three variations of COUNT:
* COUNT(*) - returns the number of rows, regardless of content.
*...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 16, 2013 at 7:13 am
L' Eomot Inversรฉ (4/16/2013)
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 16, 2013 at 4:59 am
VegasL (4/15/2013)
I have in select statement select t1.A/t1.B but get divide by zero error
when I used with isnull isnull(t1.A/t1.B,'-')
I get error Error...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 15, 2013 at 11:40 pm
For the last query:
select COUNT(convert(int,NULL)) from #temp
It will return 0 because when you execute the query:
SELECT CONVERT(int,NULL) it will return NULL and as the return type of COUNT is INT...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 15, 2013 at 11:33 pm
really good basic question Yogi ๐
Thanks for it:-)
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 15, 2013 at 11:27 pm
GilaMonster (4/15/2013)
pankaj2.kumar (4/15/2013)
This query can also be answered without using escapeThe query is shown below:
select * from accounts where accname like '%OLD%'
Except that would also match entries such as...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 15, 2013 at 6:14 am
great explanation Jeff ๐
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
April 15, 2013 at 5:59 am
Viewing 15 posts - 586 through 600 (of 1,048 total)