Sorting a table according to another table data
I want to sort a table according to another table data by sql query . how it is possible plz help me.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
CrishRank #1,486 · 1.1K reputationPosted May 31, 2010, 1:08 AM EDT
write sql query like
select * from Products
inner join Category on Category.CategoryId = Product.CategoryId
order by Products.CategoryId desc
Venkatesan JayakanthamRank #256 · 9.8K reputationPosted Jun 6, 2010, 5:28 PM EDT
select table1.* from table1 t1 inner join table2 t2 on t1.id=t2.id
order by t1.id desc
Cheers,
Venkatesan Prabu .J
http://venkattechnicalblog.blogspot.com/