Viewing 15 posts - 436 through 450 (of 3,011 total)
sqlfriends (10/5/2012)
Is there a way using SQl to add Identity (500,1) to an existing column?For existing records, keep what they are , but for new records start from 500?
Thanks
You...
October 5, 2012 at 3:52 pm
I would say that on a typical database, you can expect around 60%-70% compression, but it depends on the data. In general, the more string (char, varchar, nchar, nvarchar,...
October 5, 2012 at 11:46 am
I think the selection criteria below will give you a much more accurate result, especially taking into account birthdays like Feb 29.
select
birth_date
into
#juvenile
from
( --Test Data
select birth_date = convert(date,'1994-10-03')union all
select birth_date =...
October 5, 2012 at 11:37 am
sql-lover (10/3/2012)
I can't use "n" option with BCP or re-inserted from source table. Source has "int" on that column. Target table already has the new "bigint"...
October 3, 2012 at 10:51 am
foxxo (10/3/2012)
Then have a short outage while the new...
October 3, 2012 at 8:53 am
select
Max_Value =
(
select max(a.x)
from
(
select x = t.value1 where t.flag1 = 1union all
select x = t.value2 where t.flag2 = 1union all
select x = t.value3 where t.flag3 = 1union all
select x = t.value4...
September 26, 2012 at 8:26 am
I am trying to imagine a real world situation where IF/ELSE nested so deeply would be the way to go, instead of some other logical construct.
You should post the code...
September 26, 2012 at 8:19 am
Jeff Moden (9/25/2012)
Michael Valentine Jones (9/25/2012)
You can use the function on the link below to find the age:Age Function F_AGE_IN_YEARS
Any chance of making it NOT a scalar function?
I originally wrote...
September 25, 2012 at 3:18 pm
You can use the function on the link below to find the age:
Age Function F_AGE_IN_YEARS
September 25, 2012 at 1:02 pm
sqlfriends (9/24/2012)
I select the database,...
September 24, 2012 at 10:52 am
kingdonshel (9/21/2012)
eg select *...
September 21, 2012 at 8:48 am
Another short one.
select day('')
September 20, 2012 at 1:48 pm
David Moutray (9/20/2012)
GilaMonster (9/20/2012)
David Moutray (9/20/2012)
Somehow I think SELECT LEN('a') is too simple for Dave's competition. There must be some really obscure way of returning a 1.
I can think...
September 20, 2012 at 1:10 pm
This is short and obscure: :satisfied:
select cos('')
Results:
----------------------
...
September 20, 2012 at 1:02 pm
This isn't that short, but at least it's obscure. :ermm:
select power('','')
Results:
...
September 20, 2012 at 12:47 pm
Viewing 15 posts - 436 through 450 (of 3,011 total)