Questions in topic: "algorithm"
http://ask.sqlservercentral.com/questions/topics/single/267.html
The latest questions for the topic "algorithm"machine learning algorithms
http://ask.sqlservercentral.com/questions/109834/machine-learning-algorithms.html
which is the best suitable machine learning algorithm for optimizing a aggregate query??????????Sun, 02 Feb 2014 16:26:53 GMTmjkickhow to implement algorithims in sql ?
http://ask.sqlservercentral.com/questions/109828/how-to-implement-algorithims-in-sql.html
i am going to increase the efficiency of a query? so what should i do? and is there any tool to implement the algorithms in sql??Sun, 02 Feb 2014 14:44:50 GMTmjkickAlgorithm to return all combinations of k elements from n
http://ask.sqlservercentral.com/questions/98075/algorithm-to-return-all-combinations-of-k-elements.html
Can some one please help me to write a function which returns all possible combinations?
Ex: if I have 5 elements { 1, 2, 3, 4, 5 } and I want 3 letter combinations..which will result as
123
124
125
134
135
145
234
235
245
345Fri, 01 Feb 2013 17:12:52 GMTbsangacalculating dates in dfa manner
http://ask.sqlservercentral.com/questions/97468/calculating-dates-in-dfa-manner.html
I have one table datecalculation
it has the following columns
<pre>
| toNode | fromNode | days |
|---------------------------|
| 1 | 12 | 80 |
| 3 | 5 | 45 |
| 4 | 6 | 54 |
...
</pre>
the toNode is the result and the fromNode gives you the result by adding the amount of days to the fromNode
The only date that I have is a created date form another table that in this case will be from node now.
Example (first row of 'datecalculation' table)
<pre>
select createddate from nodes
createddate = 01/01/2013
createddate = fromnode 12
fromNode 12 + 80 days = 22/03/2013
</pre>
toNode 1 now has this value and we in the datecalculation table where fromNode is id is 1 and use that to calculate the correlating toNode.
Is there a way of traversing this table to get the results in a depth first algortihm manner?
Is this possible in tsql?
Many thanks in advance.Mon, 14 Jan 2013 17:25:43 GMTdanfangdango2SQL Server Forums - How to calculate starsign(ex:sagittarius,tarus)
http://ask.sqlservercentral.com/questions/16648/sql-server-forums-how-to-calculate-starsignexsagit.html
Hello
Can any one help getting this one.
I have two columns 1)date of birth 2)starsign(ex:tarus, gemini, sagittarius)like these.
My question is
if i enter the date of birth in the date of birth column. depending on that starsign column should be filled.
can any one send me the sqlserver query for this.
how can i solve it
thanksWed, 14 Jul 2010 10:02:39 GMTsarathkumartataWhat algorithm does RAND() in SQL Server use?
http://ask.sqlservercentral.com/questions/2981/what-algorithm-does-rand-in-sql-server-use.html
<p>What algorithm does SQL Server use to generate random numbers for the RAND() function? I believe it is either a linear congruential generator or a mersenne twister, but cannot find any information stating which (or if it is something else entirely)</p>Fri, 13 Nov 2009 14:05:50 GMTTheo Spears