compudude86
IS-IT--Management
- Jun 1, 2006
- 46
i have a view that i need ordered by ascending when i access it. right now it sorts by ID i believe. here is my code to create the view:
and i want to sort it from a-z (ascending?) using Description, not the ID. any ideas?
Code:
DROP VIEW IF EXISTS `Book`.`book`;
CREATE ALGORITHM=UNDEFINED DEFINER=`server`@`` SQL SECURITY DEFINER VIEW `Book`.`book` AS select `view`.`Description` AS `Description`,`view`.`Size` AS `Size`,`view`.`Pack` AS `Pack`,`view`.`List` AS `List`,`view`.`Discount` AS `Discount`,`view`.`Net` AS `Net Price`,`view`.`NetBtl` AS `NetBtl`,`view`.`SRP` AS `SRP`,`view`.`GPM` AS `GPM`,`view`.`Vendor` AS `Vendor`,`view`.`Date` AS `Date` from `view`;
and i want to sort it from a-z (ascending?) using Description, not the ID. any ideas?