There are Integration apis and web services available to query such data. You can review the corresponding document for it.
Thanks for your suggestion. Yes, I knew, it is easy to retrieve the spread data using Primavera Integration API and Web Services. I had done it earlier using API . Now, I need the same solution from P6 schema tables.