<s>[INST] Write a SQL code to identify the earliest and latest order date and time in the database.  [/INST] SELECT MIN(order_datetime) AS earliest_order_datetime, MAX(order_datetime) AS latest_order_datetime FROM order_transaction.transaction_detail_deprecated; </s>