Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the three options available under the rotate table functionality for data transformation?

Answer Posted / Prashank Srivastava

"Load * Inline [
Table1: (
Col1 as NewCol1,
Col2 as NewCol2,
Col3 as NewCol3
);
LOAD * INLINE [
RotateTable: (
Col1 as OldCol1,
Col2 as OldCol2,
Col3 as OldCol3
)
];
CREATE TABLE Table2 AS SELECT NewCol1, OldCol1, NewCol2, OldCol2, NewCol3, OldCol3 FROM Table1 ROTATE;
LOAD * INLINE [
RotateTable: (
Col3 as OldCol3,
Col1 as OldCol1,
Col2 as OldCol2
)
];
CREATE TABLE Table3 AS SELECT NewCol1, OldCol1, NewCol2, OldCol2, NewCol3, OldCol3 FROM Table1 ROTATE REVERSE;
"]

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name top 10 bi tools?

5