Viewing 15 posts - 6,301 through 6,315 (of 8,731 total)
How do you get the parameter list? Is it a query where you could you simply add a DISTINCT?
June 9, 2014 at 2:09 pm
If I understand correctly, this article explains what you need:
http://www.sqlservercentral.com/articles/comma+separated+list/71700/
June 9, 2014 at 2:08 pm
Yes, I saw that after Ed replied and didn't want to repeat it.
Thank you for the feedback.
June 9, 2014 at 8:38 am
I'm not sure if you can do that, but why don't you remove the permissions to restore backups on the database for that user?
June 9, 2014 at 8:19 am
That's the expected output, where's the sample data?
My options should give you that total. How is it wrong?
June 9, 2014 at 8:11 am
This article can help you accomplish what you're looking for:
http://www.sqlservercentral.com/articles/comma+separated+list/71700/
June 9, 2014 at 8:02 am
Can you be more specific? What's wrong with what I posted?
I could help you better with sample data and expected output as described on the article in my signature.
June 9, 2014 at 7:42 am
You could change your approach to a traditional CROSS TAB.
You'll end with something like this:
--Normal cross tab
SELECT Hospital,
p.subjectnumber,
COUNT ( CASE OralAnticoagulantID...
June 9, 2014 at 7:24 am
Maybe this code can help you. 😉
SELECT ISNULL(
REPLACE(
...
June 9, 2014 at 7:13 am
Hi Andrew!
Could you remind me your previous username? My ADHD won't let me remember. 😀
June 6, 2014 at 3:57 pm
Naomi N (6/6/2014)
Luis Cazares (6/6/2014)
Naomi N (6/6/2014)
I think we wanted customers who bought A and B but not C, so your query will be even simpler,
MIN(productID) = 'A' and MAX(productID)...
June 6, 2014 at 12:27 pm
Naomi N (6/6/2014)
Peter,I think we wanted customers who bought A and B but not C, so your query will be even simpler,
MIN(productID) = 'A' and MAX(productID) = 'B'
What if we...
June 6, 2014 at 12:09 pm
djj (6/6/2014)
Luis Cazares (6/6/2014)
That's why I consider zip codes, phone numbers, credit card numbers & others should be stored on string type columns. You could enforce to use just digits...
June 6, 2014 at 12:00 pm
dotnetkim (6/6/2014)
Good thing this wasn't a pop quiz on the difference between "your" and "you're".
LOL :hehe: My fault.
I know the difference, I'm not sure why did I write it wrong...
June 6, 2014 at 11:54 am
djj (6/6/2014)
One thing I do...
June 6, 2014 at 11:44 am
Viewing 15 posts - 6,301 through 6,315 (of 8,731 total)