Viewing 15 posts - 376 through 390 (of 3,957 total)
erwin.oosterhoorn (2/10/2015)
(have not tested this)
Probably the best advice I can give you is that you should.
The result here is going to be highly dependent on the indexing available on the...
February 10, 2015 at 4:36 pm
Assuming your "tree" is an adjacency list, traversing down is nearly the same as traversing up.
So, is this something like what you want?
WITH SampleData (parent, child) AS
(
SELECT 1,2
UNION ALL SELECT...
February 10, 2015 at 1:57 am
Coincidentally I just now ran across a quite interesting article on this subject by Erland Sommerskog in his blog and since I didn't see anyone post that link here, I...
February 10, 2015 at 12:55 am
marko.celarc (2/5/2015)
(ItemId, Oid, old_value, new_value, TransactionCode)
select
ItemId, 18, old_value, new_Value, '1234567'
from
(
merge into
dbo.mother_table AS target_table
using
(select
itemNo,
1057
from
dbo.some_table
where
something = 3) as source_table (ItemNo, new_stat)
on
(target_table.some_field = source_table.ItemNo)
when...
February 9, 2015 at 10:06 pm
KGJ-Dev (2/9/2015)
thanks and i tried to understand the geography data type and i am trying to add new column in my table with geography datatype.
alter table Zipcode...
February 9, 2015 at 9:37 pm
KGJ-Dev (2/9/2015)
February 9, 2015 at 7:19 pm
KGJ-Dev (2/9/2015)
CREATE FUNCTION HaversineDistance
(@OriginLat FLOAT
,@OriginLong FLOAT
...
February 9, 2015 at 7:07 pm
KGJ-Dev (2/9/2015)
thanks for your reply and i gone through link. Really it's very high level and am struggling how do i correlate that with my requirement. If possible could...
February 9, 2015 at 6:07 pm
Luis Cazares (2/9/2015)
dwain.c (2/9/2015)
Many countries don't call them states, they call them provinces.
And France is divided in regions, departments, arrondisements, cantons, communes and, in some cases, municipal arrondissements.
I'm sure that...
February 9, 2015 at 6:01 pm
This is interesting, but I have no idea how complete/current it is:
February 9, 2015 at 5:15 pm
There's an iTVF form of Haversine function here:
Departures from Origins and Arrivals at Destinations[/url]
Note that this method of haversine does not take into account adjusted curvature of the Earth.
February 9, 2015 at 5:03 pm
Many countries don't call them states, they call them provinces.
Having said that, if you find one I too would be interested. But aside from scraping them off the wiki...
February 9, 2015 at 4:57 pm
Luis Cazares (12/15/2014)
DECLARE...
February 8, 2015 at 6:18 pm
It is possible to avoid multiple scans of your table if you know there are only 3 groups and you don't care about machines that are missing all of them.
SELECT...
February 8, 2015 at 6:01 pm
Out of curiosity, is the SP equipped to handle the case where there are multiple rows in the @employee table you pass into it?
Normally I would have used separate parameters...
February 6, 2015 at 2:26 am
Viewing 15 posts - 376 through 390 (of 3,957 total)