I have two diffrent layouts saved in a database base one for commodity and second for currency. How can I open both the layouts at the same time
Just use two different chart templates instead of layouts. You can't open two different layouts at the same time. Read about the differences between layouts and templates:
https://www.amibroker.com/guide/h_sheets.html
How to use chart sheets and layouts
http://www.amibroker.net/video/layouts.html