Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: SQL Help - Moving items en masse from one category to another

  1. #1
    Classic_Exotic is offline Member
    Join Date
    Dec 2009
    Location
    Troy, MI USA
    Posts
    82

    Default SQL Help - Moving items en masse from one category to another

    We have many categories on our website that have approx. 50 items in them. We would like to move them to new categories in the fastest way possible - that's not accomplished by changing where each item is mapped to on an individual basis.

    Is it possible to write a SQL query that move all items (for example) category 200 to category 300?

    If that's possible to do, how would something like that be written?

    Thank you.
    Classic & Exotic Service, Inc.
    Specialty Parts For Prewar Cars
    www.classicandexotic.com

  2. #2
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    HTML Code:
    UPDATE ProductCategory SET CategoryID = 300 WHERE CategoryID = 200;

    TTFN

    BFG

  3. #3
    Classic_Exotic is offline Member
    Join Date
    Dec 2009
    Location
    Troy, MI USA
    Posts
    82

    Default Thank you

    Thank you - that's big time saver!
    Classic & Exotic Service, Inc.
    Specialty Parts For Prewar Cars
    www.classicandexotic.com