Viewing 15 posts - 2,971 through 2,985 (of 10,144 total)
We’ll need better definitions.
What can you tell us about the source table? Can you provide DDL and DML?
“Send to Report Builder” – do you mean populate another table...
September 1, 2014 at 5:02 am
michael.petrone (9/1/2014)
2. Select
3. Check Temp Table - SSN not in temp table send to Report Builder 3.0 ELSE insert into temp table.
4....
September 1, 2014 at 4:07 am
;WITH SampleData AS (
SELECT MyString = 'ABC DEF 210 ' UNION ALL
SELECT 'ggh / sah ggh 590' UNION ALL
SELECT 'ggh / sah gghXPT' UNION ALL
SELECT 'ggh...
September 1, 2014 at 3:40 am
Guitar_player (9/1/2014)
I have column which are having data as Alphabets and also Numbers like to say
ID Column1
1 ABCD 123
2...
September 1, 2014 at 1:51 am
joseph.robinson83 (8/29/2014)
Good information to know on the CHAR/Unicode/ASCII differences. I've never had...
August 29, 2014 at 9:47 am
Solved:
DECLARE @Pattern NVARCHAR(MAX)
DECLARE @sSQL NVARCHAR(MAX)
DECLARE @1 nvarchar(max)
DECLARE @2 nvarchar(max)
DECLARE @loop int
SET @Pattern = '%['
SET @Pattern = @Pattern + NCHAR(0) + NCHAR(1) + NCHAR(2) + NCHAR(3) + NCHAR(4) +...
August 29, 2014 at 9:34 am
Have you tried using an SC collation? There's info here. Your ? might be the first of a surrogate pair.
August 29, 2014 at 8:30 am
jonatan.carlberg (8/29/2014)
Thank you all for welcoming me to the forum. As you probably see, I've posted a clarification on my previous post.
Thanks for all input so far.
From what...
August 29, 2014 at 5:59 am
-- create sample data
DROP TABLE #ChartOfAccount
CREATE TABLE #ChartOfAccount (Account INT, [Description] VARCHAR(30), Parent INT)
INSERT INTO #ChartOfAccount (Account, [Description], Parent)
SELECT 1, 'ASSETS', 0 UNION ALL
SELECT 101, 'CURRENT ASSETS', 1 UNION ALL
SELECT...
August 29, 2014 at 5:32 am
LHendren (8/28/2014)
Taking this a step further, what if I do not want to see the jNMBR and sNMBR...
August 28, 2014 at 9:03 am
-- Prepare some sample data to code against
DROP TABLE #Sample
CREATE TABLE #Sample (
ID INT,
[Customer name] VARCHAR(20),
[Customer address] VARCHAR(20),
[Something] INT,
[Product number] INT,
[Product name] VARCHAR(20),
Quantity VARCHAR(20),
Price...
August 28, 2014 at 8:48 am
Two other commonly-used methods:
SELECT jNMBR, sNMBR
FROM #myTable
WHERE cDate IS NOT NULL
GROUP BY jNMBR, sNMBR
SELECT jNMBR, sNMBR
FROM (
SELECT jNMBR, sNMBR, rn = ROW_NUMBER() OVER(PARTITION BY jNMBR, sNMBR ORDER BY (SELECT...
August 28, 2014 at 8:26 am
Lynn Pettis (8/28/2014)
ChrisM@Work (8/28/2014)
Welsh Corgi (8/28/2014)
ChrisM@Work (8/28/2014)
Welsh Corgi (8/28/2014)
August 28, 2014 at 7:57 am
Welsh Corgi (8/28/2014)
ChrisM@Work (8/28/2014)
Welsh Corgi (8/28/2014)
Any ideas would...
August 28, 2014 at 7:48 am
Lots of options for this:
;WITH PrimaryDiagList AS (SELECT * FROM (VALUES
('402.01'),('402.11'),('402.91'),('404.01'),('404.03'),('404.11'),('404.13'),('404.91'),('404.93'),('428.0'),('428.10'),('428.20'),
('428.21'),('428.22'),('428.23'),('428.30'),('428.31'),('428.32'),('428.33'),('428.40'),('428.41'),('428.42'),('428.43'),('428.90')
) d (diagnosis))
SELECT t.*
FROM dbo.TEST t
INNER JOIN PrimaryDiagList p
ON p.diagnosis = t.diagnosis
WHERE t.DiagnosisSeqID = '1'
AND EXISTS (
SELECT...
August 28, 2014 at 7:41 am
Viewing 15 posts - 2,971 through 2,985 (of 10,144 total)