Viewing 15 posts - 1,006 through 1,020 (of 3,500 total)
"Consumable data" means CREATE TABLE and INSERT scripts that people here can copy & paste into SSMS to recreate your problem. If you don't do that, it's very likely you...
March 20, 2019 at 6:12 pm
Looks like this is the answer:
https://stackoverflow.com/questions/12676747/how-to-get-the-affected-rows-in-vba-ado-execute
March 20, 2019 at 3:41 pm
Luis,
I don't think that will work. That's why I did the weird REPLACE.
The Prod | 5 and Prod | 1 records split to separate records when they should...
March 20, 2019 at 9:19 am
Oh... maybe I figured out what Jonathan was talking about...SELECT id, [status], p2, REPLACE(ca.Item, '_',' ') AS NewItem
FROM
(SELECT id, [status], REPLACE(Products,' ','_') p2
FROM MyData
March 20, 2019 at 12:39 am
Yeah... I was having a fit trying to get the formatting etc to work. Does this site not like Edge? (Maybe I should just break down and use Chrome instead?)
March 19, 2019 at 2:18 pm
Yeah, like that!
March 19, 2019 at 2:16 pm
Your sample data is messed up. I removed a bunch of columns so that I had a minimum to deal with. In a word, you need DelimitedSplit8K to do this...
March 19, 2019 at 1:32 pm
I think you'd have to use LAG() to look at the previous visit for a given patient. Then use DATEDIFF() to get the days between the two dates, and if...
March 19, 2019 at 1:14 pm
See Example D.USE AdventureWorks2012;
GO
WITH DirectReports (ManagerID, EmployeeID, Title, EmployeeLevel)
AS ( SELECT ManagerID,
...
March 13, 2019 at 10:04 pm
script out all the constraints,
drop them all,
import data,
re-add the constraints by running script from step 1
March 13, 2019 at 8:48 pm
If you use RIGHT([oldSSN],4) then the rest shouldn't matter, because you'll never get any of the dashes anyway, because they would be 5th from the right.
March 13, 2019 at 9:58 am
Or company attorney, if they have one.
March 12, 2019 at 12:55 pm
… and if the company gets security audited, that's going to be serious. and expensive.
March 12, 2019 at 11:36 am
Wait. I'm confused. You tell which are primary keys and foreign keys by looking at the table definitions. Inner joins vs outer joins - that's a join in a query:...
March 11, 2019 at 4:22 pm
Viewing 15 posts - 1,006 through 1,020 (of 3,500 total)