Viewing 15 posts - 6,991 through 7,005 (of 8,731 total)
Or you could use code 103 with a RIGHT or SUBSTRING.
February 7, 2014 at 2:53 pm
I'm giving you an answer, but I need you to understand some things first.
The solution given is not an optimal solution because it's non-SARGable. It means that it won't use...
February 7, 2014 at 1:44 pm
Alan,
I was getting worried about you, it's good to know that you haven't been around because you were busy.
Back to the problem, you're cheating with your test. You didn't...
February 7, 2014 at 1:20 pm
Could you post some sample data in the form of insert statements?
It would really help us to test possible solutions before posting.
February 7, 2014 at 11:33 am
For alternatives, check this article from Dwain Camps
https://www.simple-talk.com/sql/t-sql-programming/the-sql-of-gaps-and-islands-in-sequences/
February 7, 2014 at 11:11 am
This will build one million rows on the fly and use them as needed. To be fair, smallint won't accept 99,999 😛
declare @ranges table(Item int
...
February 7, 2014 at 10:38 am
As I told you in the comments, you need to change the source for cteTally to make it work with larger ranges.
Check the following article: http://www.sqlservercentral.com/articles/T-SQL/62867/
February 7, 2014 at 10:27 am
Sometimes Intellisense won't work great and can become a PITA.
I sure like it, but it can get some improvements and bug fixing.
February 7, 2014 at 10:22 am
I couldn't remember the name of the site, but I found it (by searching "test sql online").
http://sqlfiddle.com/ will allow you to test SQL Server, Oracle, MySQL, PostgreSQL and SQLite.
February 7, 2014 at 10:15 am
How are you testing on VFP 6.0? SQL syntax is different over there.
* is to return all columns
-- is a line-comment (everything to te right becomes a comment).
To test, you...
February 7, 2014 at 10:12 am
jasona.work (2/7/2014)
You use such a cute little coffee mug!:hehe:
Is to keep me active (by making several trips to the coffee machine) 😀
February 7, 2014 at 10:00 am
You want to use CONVERT with a format code. (Reference)
Can you handle that? or you need more help?
Remember that this information is available with F1 on SSMS.
February 7, 2014 at 9:47 am
I wonder why people consider the data structure is wrong.
If they are trying to store the structure of a process flow, where a task can have multiple successors and predecessors,...
February 7, 2014 at 9:18 am
jasona.work (2/7/2014)
Knut Boehnert (2/7/2014)
February 7, 2014 at 9:11 am
hifaizal90 (2/7/2014)
Dear SirThe above query produces the required result even though 101 not appear in the parent Id since it is top level parent.
Which one?
February 7, 2014 at 8:18 am
Viewing 15 posts - 6,991 through 7,005 (of 8,731 total)