What are the details of all sales and purchases?
CREATE TABLE purchases (sales_details VARCHAR, purchase_details VARCHAR); CREATE TABLE sales (sales_details VARCHAR, purchase_details VARCHAR)
SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE purchases (sales_details VARCHAR, purchase_details VARCHAR); CREATE TABLE sales (sales_details VARCHAR, purchase_details VARCHAR) Question: What are the details of all sales and purchases? [/INST] SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases </s>