# How to validate the response body with sql database

**URL:** <https://community.postman.com/t/how-to-validate-the-response-body-with-sql-database/46382>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [April 14, 2023, 4:04pm UTC](https://community.postman.com/t/how-to-validate-the-response-body-with-sql-database/46382 "2023-04-14T16:04:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranjiths1983](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@ranjiths1983](https://community.postman.com/u/ranjiths1983)\
**Post date:** [April 14, 2023, 4:04pm UTC](https://community.postman.com/t/how-to-validate-the-response-body-with-sql-database/46382/1 "2023-04-14T16:04:37Z")

</div>

The data is already available in the database, Looking to validate that the response body data from the API displays the same data that is currently in the SQL database. Is there a way through Postman we can validate that the API data matches the database data…? Any alternate way for validation.

---

<div class="post-metadata">

**Author:** ![arlem](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/arlem/32/3078_2.png) [@arlem](https://community.postman.com/u/arlem)\
**Post date:** [April 17, 2023, 2:55pm UTC](https://community.postman.com/t/how-to-validate-the-response-body-with-sql-database/46382/2 "2023-04-17T14:55:38Z")

</div>

Hey @ranjiths1983 ,

Does your database allow for API queries? If so then you can query it directly and compare to the other API. Otherwise I’m afraid you’ll have to do it manually for now.
