SQL Database Queries
Execute the following SQL queries on Odoo 18 database:
a) Basic Query: Write a SQL query to fetch all active vendors (suppliers) with their name, email,
and phone number. (2 Mark)
-- Expected columns : name, email , phone
Filter : Only suppliers and active records
b) Join Query: Write a SQL query to get all purchase orders with vendor name, order reference, and
total amount for orders created in the last 30 days. (2 Marks)
-- Expected columns : vendor_name, purchase_order_reference, amount_total, date_order
-- Filter: Orders from last 30 days only