Viewing 15 posts - 1,576 through 1,590 (of 3,957 total)
Here's another way you can try:
SELECT PROGRAM = MAX(CASE n WHEN 1 THEN [Type] END)
,MARKET_SEGMENT = MAX(CASE n WHEN 2 THEN...
August 18, 2013 at 11:41 pm
Luis Cazares (8/15/2013)
dwain.c (8/14/2013)
SELECT VENDOR_ID, ADDRESS_PHONE_NUM
FROM (
-- Your query (reformatted)
SELECT...
August 15, 2013 at 8:32 pm
Jeff Moden (8/15/2013)
August 15, 2013 at 7:56 pm
Jeff Moden (8/15/2013)
August 15, 2013 at 7:23 pm
ChrisM@Work (8/15/2013)
GPO (8/15/2013)
I'm enormously grateful for the code you've put up. I'll test yours and Chris's and see what I can learn from them. I'll post back my observations...
August 15, 2013 at 4:33 am
GPO (8/15/2013)
I'm enormously grateful for the code you've put up. I'll test yours and Chris's and see what I can learn from them. I'll post back my observations after...
August 15, 2013 at 12:58 am
GPO (8/15/2013)
August 15, 2013 at 12:42 am
GPO (8/15/2013)
You're not actually supposed to use any data from that. You're only supposed to use the presence...
August 15, 2013 at 12:39 am
vignesh.ms (8/14/2013)
i want to show the delete query which causes the trgger
It might be helpful to understand why you want to do this.
For example, are you trying to prevent...
August 14, 2013 at 10:04 pm
An interesting question. Probably because I don't think I'm particularly good at interpreting other people's code.
When I must do so, I usually look at the source tables first. ...
August 14, 2013 at 9:59 pm
Jeff doesn't like it when I use
SELECT $
In my tally tables. :hehe: Just having a little fun there.
BTW. I noticed you also wanted the open-ended gaps before start...
August 14, 2013 at 8:24 pm
GPO (8/14/2013)
SELECT *
...
August 14, 2013 at 7:27 pm
ChrisM@Work (8/14/2013)
I'm willing to bet DwainC has a better solution than this, he's just had a Gaps'n'Islands paper published over on Simple Talk.
You just had to call me out on...
August 14, 2013 at 7:17 pm
You could run the MERGE with WHEN NOT MATCHED SOURCE DELETE inside a transaction that you ROLLBACK, capturing the $ACTION from OUTPUT in a TABLE VARIABLE (so its contents are...
August 14, 2013 at 6:44 pm
Viewing 15 posts - 1,576 through 1,590 (of 3,957 total)