EdgarsK Posted July 22, 2009 Report Share Posted July 22, 2009 Sveiki, pieņemu ka ir jālieto kaut kāds joins, bet man ar joiniem ir problēmas, varbūt variet uzrakstīt. tabula 1 c_id,c_title,c_user tabula 2 c_id,c_clicks,c_visits gribu lai "Select * from tabula1 order by (tabula2.c_clicks+tabula2.visits)" Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted July 22, 2009 Report Share Posted July 22, 2009 SELECT * FROM tabula1 LEFT JOIN tabula2 ON tabula_1.c_id = tabula2.c_id ORDER BY (tabula2.c_clicks + tabula2.c_visits); -- Nezinu, gan vai pēc lauks1+lauks2 var kārtot. Quote Link to comment 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.