给定PerformerTours
带有列的表:
FirstName, LastName, Date_1, City_1, State_1, Date_2, City_2, State_2, Date_3, City_3, State_3, Date_4, City_4, State_4
和数据
Donna, Summers, 01/01/20, Atlanta, Georgia
James, Taylor, 02/04/20, Miami, Florida, 04/11/20, Seattle, Washington
Bob, Dylan, 01/11/20, Buffalo, New York, 09/24/20, Nashville, Tennessee, 10/22/20, Chicago, Illinois, 12/12/20, Denver, Colorado
Kenny, Rankin, 06/30/20, Las Vegas, Nevada, 07/04/20, Boston, Massachusetts, 08/18/20, Cincinnati, Ohio
如何仅使用 Oracle SQL 将数据还原为如下定义:
Donna, Summers, 01/01/20, Atlanta, Georgia
James, Taylor, 02/04/20, Miami, Florida
James, Taylor, 04/11/20, Seattle, Washington
Bob, Dylan, 01/11/20, Buffalo, New York
Bob, Dylan, 09/24/20, Nashville, Tennessee
Bob, Dylan, 10/22/20, Chicago, Illinois
Bob, Dylan, 12/12/20, Denver, Colorado
Kenny, Rankin, 06/30/20, Las Vegas, Nevada
Kenny, Rankin, 07/04/20, Boston, Massachusetts
Kenny, Rankin, 08/18/20, Cincinnati, Ohio
2 个回答