Viewing 15 posts - 1,726 through 1,740 (of 8,731 total)
ChrisM@Work (12/15/2016)
Luis Cazares (12/15/2016)
December 15, 2016 at 8:03 am
I've never written an iTVF using parenthesis around the query. However, the other answers were completely wrong and the correct answer states that it can not that it must.
After answering,...
December 15, 2016 at 7:41 am
CELKO (12/14/2016)
I want to divide 11 into 4 groups then output should be 3,3,3,2. same way 10 for for group would be 3,3,2,2. ..
Look up the NTILE() function.
That would...
December 14, 2016 at 2:57 pm
Lynn Pettis (12/14/2016)
Luis Cazares (12/14/2016)
Handle the quotes correctly on Scott's and Lynn's examples. You might end with strings with the value 'NULL' instead of NULLs for...
December 14, 2016 at 2:52 pm
Just a word of caution.
Handle the quotes correctly on Scott's and Lynn's examples. You might end with strings with the value 'NULL' instead of NULLs for the columns. Or you...
December 14, 2016 at 2:38 pm
Search for CROSS TABS and Pivots.
Here's an article that might help: http://www.sqlservercentral.com/articles/T-SQL/63681/
Also search read about EAV and why this design is a bad idea. Then change it if possible.
December 14, 2016 at 2:07 pm
I would just handle everything with ISNULLs and forget about CASE.
CREATE TABLE POS_CODEVALUE(
code char(3),
...
December 14, 2016 at 2:03 pm
This is one of the cases when the performance problem comes from the DDL. You could create computed columns and lookup tables to improve this query. However, that's a suggestion...
December 14, 2016 at 12:52 pm
crookj (12/14/2016)
Revenant (12/14/2016)
Ed Wagner (12/14/2016)
Manic Star (12/14/2016)
crookj (12/14/2016)
Ed Wagner (12/14/2016)
DamianC (12/13/2016)
ZZartin (12/13/2016)
Ray K (12/13/2016)
Manic Star (12/13/2016)
Ed Wagner (12/13/2016)
Revenant (12/13/2016)
Grumpy DBA (12/13/2016)
Luis Cazares (12/13/2016)
CerealCheerios
Sugar
Buzz
Espresso
Cappuchino
Yuppy
Eighties
Rock
Paper
Spock
Vulcan
Thunderball
Goldfinger
Goldmember
December 14, 2016 at 10:46 am
You could use a cross tabs approach. It's simple and should give you what you need.
CREATE TABLE dbo.Zusatzfeld(
Bold_ID int,
WertDatum datetime,
...
December 14, 2016 at 8:02 am
Those are not the expected results. Actually, there are no results. Be sure to run the code.
December 13, 2016 at 11:08 am
Are you sure that you're using SQL Server 2005?
What happens if you run the following?
SELECT @@VERSION
December 13, 2016 at 10:48 am
Apparently, Eirikur has the crystal ball.
It took me a couple of harsh posts to make the OP confess and demonstrate Eirikur's statement.
December 13, 2016 at 9:36 am
It means that data sets are not ordered.
If you want to be able to compare them, you'll have to sort them.
If you need them to have a certain order for...
December 13, 2016 at 9:31 am
Here's a basic process I wrote for encrypting other values. However, you shouldn't decrypt your passwords, you should just compare the hashes. Otherwise, it's a security vulnerability.
Process:
1)Create the Master Key
•CREATE...
December 13, 2016 at 9:18 am
Viewing 15 posts - 1,726 through 1,740 (of 8,731 total)