Posted by Plamen Ratchev on 05/29/07 12:37
Using UNPIVOT in SQL Server 2005: SELECT ID, Name, Device FROM Foobar UNPIVOT (Device FOR DeviceType IN (HomePhone, WorkPhone, Email)) AS U; HTH, Plamen Ratchev http://www.SQLStudio.com
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming