Viewing 15 posts - 61 through 75 (of 99 total)
Thanks again for the quick response 🙂
It almost does what I need, except for ONE thing: currently your code also deletes this row from prospectsincampaigns:
135501048
But that shouldnt be deleted...
July 30, 2011 at 1:15 pm
Believe me, Im trying to describe my requirement as best as possible, my mistake if I missed something :$ For me: am not a big fan of surprises unless its...
July 30, 2011 at 9:14 am
I'm having real difficulties with the rule: all duplicate records where result=0 should be deleted, but at least 1 record should remain even if the result of that record is...
July 30, 2011 at 7:50 am
update (am working on it), the first statement would be:
SELECT MIN(p.id) id, p.companyname,c.campaignid FROM [dbo].[prospects] p
JOIN [dbo].[ProspectsInCampaigns] c ON c.prospectid = p.id
GROUP BY c.campaignid, p.companyname
HAVING COUNT(p.companyname)>1
This gives me...
July 30, 2011 at 7:38 am
Hi,
One final question with which I hope you are able to help me 🙂
Basically the statement you gave me consists of 3 separate statements. I've placed them below and placed...
July 30, 2011 at 7:15 am
Ah, I see, perfect, it now works! Thanks! 🙂
July 29, 2011 at 8:03 am
It does! 🙂 Thanks!
July 19, 2011 at 4:59 am
No. The objecttype value is already in the spotlights table [spotlights].objecttype and should determine which table should be joined.
The entire query must be able to execute without passing any parameters.
Thanks!...
July 14, 2011 at 5:59 am
Thanks, will have a look at this.
Also thanks for the tips, I will definitely discuss this with my client.
July 13, 2011 at 1:55 am
Ok, thats good advice.:)
The thing is that my client needs the functionality fast, so while Im remodeling (which has impact on other functionality too), I have to work with what...
July 12, 2011 at 10:23 am
My client wants to import records and then based on for example distribute some with a specific importcode to a certain campaign.
If I would import the records and immediately remove...
July 12, 2011 at 9:41 am
The natural key of prospects is "id", more records might hold the same companyname value. The situation where multiple DUPLICATE records with same companyname are in the prospects table is...
July 12, 2011 at 8:34 am
Ok, thx, I looked at you example page. I now have created this:
SELECT companyname, RANK() OVER (PARTITION BY companyname ORDER BY num) rnk
FROM (SELECT *, ROW_NUMBER() OVER(ORDER BY companyname) num
...
July 12, 2011 at 7:38 am
Guys, thank you both!!
@lowell: I did what you suggested, imported it into a temp table first 🙂
May 26, 2011 at 1:39 am
Viewing 15 posts - 61 through 75 (of 99 total)