<s>[INST] Write a SQL code to count the total number of unique users in the database.  [/INST] SELECT COUNT(DISTINCT user_id) AS total_unique_users FROM order_transaction.transaction_detail_deprecated; </s>