Viewing post 1 (of 1 total)
If you want to do it in one statement, you could try this....
INSERT INTO portfolioForExpert(ExpertID,portfolioID)
SELECT DISTINCT @0,'2'
FROM portfolioForExpert
WHERE NOT EXISTS(
...
October 7, 2012 at 1:57 pm
#1546521