Spraban9 Posted March 28, 2013 Share Posted March 28, 2013 SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`(SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from computerrepair union SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from computersale union SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from land union SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from house union SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from vechicle union SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from mobile)A order by postdate hi friends this coding is used to retrievee data from all table in descending order of posedate but it is not working Quote Link to comment https://forums.phpfreaks.com/topic/276264-retrieve-coding-from-data/ Share on other sites More sharing options...
Barand Posted March 28, 2013 Share Posted March 28, 2013 Missing FROM before the subquery Quote Link to comment https://forums.phpfreaks.com/topic/276264-retrieve-coding-from-data/#findComment-1421603 Share on other sites More sharing options...
Spraban9 Posted March 28, 2013 Author Share Posted March 28, 2013 create view alltable as(SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from computerrepair union SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from computersale union SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from land union SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from house union SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from vechicle union SELECT `title`,`city`,`address`,`description`,`contact`,`postdate`from mobile)order by postdate this also not working Quote Link to comment https://forums.phpfreaks.com/topic/276264-retrieve-coding-from-data/#findComment-1421609 Share on other sites More sharing options...
Barand Posted March 28, 2013 Share Posted March 28, 2013 Missing FROM before the subquery Quote Link to comment https://forums.phpfreaks.com/topic/276264-retrieve-coding-from-data/#findComment-1421690 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.