How to create a new report?

How to create a new report that fetches datas from more than one user defined doctypes??

Check this:

Thanks a lot… but i dont undrstand that queries?? please send me some queries used in erpnext as well… ill modify that to my application…

link not works please update the link