Viewing 15 posts - 466 through 480 (of 1,468 total)
What the heck is a FULLZ? Are dead FULLZ better than live FULLZ? Inquiring minds.
I stand to be corrected, but rumor has it that FULLZ are leaked personal details,...
September 27, 2019 at 2:28 pm
The correct answer is not available as an option
September 27, 2019 at 8:12 am
The following SQL will help you to shred the xml. You can then work on formatting it as you need.
DECLARE @xmlData xml = '<Data>
<Monthly_x0020_Income>
...
September 25, 2019 at 6:54 pm
Alternatively, you can rewrite the query to repeat the CASE statement
SELECT DISTINCT
ph.STARTDATE
, ph.SERIALNUMBER
, dc.DESTINATIONGROUP
, pi.PLEDGEID
...
September 25, 2019 at 2:19 pm
You cannot reference the new alias as it does not exist yet.
Below is 1 way of accessing it
WITH cteBase AS (
SELECT DISTINCT
...
September 25, 2019 at 2:17 pm
@desnorton Thanks very much for the help! Using EXISTS ended up being a few seconds faster and I haven't seen it used this way soo also nice.
The EXISTS was...
September 24, 2019 at 5:46 pm
Again, this code is untested, as there is no sample structure or data to work with.
Using a Join
WITH cteBase AS (
SELECT b."start_dtg", b."end_dtg"
FROM...
September 24, 2019 at 5:03 am
Without sample data, this is untested code. That said, it appears to be a very simple update
UPDATE b
SET [invalid] = 0
FROM tableB AS b
INNER JOIN tableA AS...
September 21, 2019 at 6:28 am
Hi DesNorton,
It's almost working; at least it is appending Year_ to EventYear.
However, I am getting the following error:
Msg 207, Level 16, State 1, Line 30
Invalid column name 'Year_2019'.
Do I...
September 19, 2019 at 6:46 am
You could look at simply adding the "Year_" prefix at the point where you substitute it into the DSQL. I have removed most of the meat from your query to...
September 19, 2019 at 4:26 am
There aren't too many people that will open an Excel file.
Please provide your sample data and requirements as SQL scripts.
September 17, 2019 at 5:41 pm
I suspect that the implicit conversion is causing an issue.
Does this work?
WHERE vaoq.Questionnaire_ID = CONVERT(uniqueidentifier, '09C4C7B4-1275-460A-AE23-FFA9256B1ABE')
September 12, 2019 at 11:27 am
September 12, 2019 at 4:24 am
Viewing 15 posts - 466 through 480 (of 1,468 total)