instruction stringclasses 1
value | schema stringclasses 3
values | knowledge stringlengths 0 358 | constraint stringclasses 7
values | query stringlengths 11 104 | response stringlengths 6 588 |
|---|---|---|---|---|---|
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近三天内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近三周内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近三星期内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近三个月内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近三年内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近三年半内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近四天内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近四周内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近四星期内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近四个月内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近四年内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近四年半内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近五天内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近五周内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近五星期内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近五个月内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近五年内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 近五年半内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近1天内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近1周内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近1星期内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近1个月内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近1年内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近1年半内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近2天内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近2周内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近2星期内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近2个月内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近2年内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近2年半内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近3天内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近3周内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近3星期内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近3个月内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近3年内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近3年半内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近一天内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近一周内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近一星期内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近一个月内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近一年内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近一年半内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近两天内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近两周内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近两星期内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近两个月内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近两年内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近两年半内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近三天内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近三周内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近三星期内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近三个月内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近三年内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyy-mm-dd。 | 最近三年半内订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 今天订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 昨天订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 前天订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 本周订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and DATE_PART('week', T... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 上周订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and DATE_PART('week', T... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 上个月订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 本月订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 本季度订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and DATE_PART('year', T... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 上季度订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and DATE_PART('year', T... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 今年订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and DATE_PART('year', T... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 去年订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and DATE_PART('year', T... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 前年订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and DATE_PART('year', T... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 近半月订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 近半个月订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 最近半月订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 最近半个月订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 过去半年订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 近半年订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 最近半年订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 半年前订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 半年之前订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 半个月之前订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 半个月前订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 本月1号订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and DATE_PART('day', TO... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 上个月1号订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 最近1周订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 近1周订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 过去1天订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 近1天订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 最近1天订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 过去1个月订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 最近1个月订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 近1个月订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 近1年订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 最近1年订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 过去1年订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 过去1周订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 近1年半订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 最近1年半订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 过去1年半订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 上周1订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and DATE_PART('week', T... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 本周1订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and DATE_PART('week', T... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 去年1月订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and DATE_PART('year', T... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 1周前订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 1个月前订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... | |
你是一个专业的SQL生成器,请将以下文本转换成可执行的SQL语句。 | <order_id>:订单ID <user_id>:用户ID <invoice_info>:发票信息 <coupon_code>:优惠券码 <refund_status>:退款状态 <refund_amount>:退款金额 <refund_remark>:退款备注 <review_score>:评价分数 <product_list>:商品列表 <payment_method>:支付方式 <total_amount>:订单总金额 <discount_amount>:优惠金额 <shipping_fee>:配送费 <delivery_address>配送地址 <is_canceled>:是否取消 <is_reviewed>:是否评价 <... | 订单详情包括:订单ID、用户ID、商品列表、支付方式、订单总金额、地址、订单时间;是否取消is_cancelled有两种:'yes'表示已取消、'no'表示未取消;退款状态refund_status有三种:'in_refund'表示退款中、'has_refunded'表示已退款、NULL表示未退款;支付方式payment_method有三种:'cash'表示现金、'WeChat'表示微信、'AliPay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为dd-mm-yyyy。 | 1年半前订单总金额最高,未取消未退款,且使用微信或支付宝支付的订单。 | SELECT order_id AS 订单ID, user_id AS 用户ID, product_list AS 商品列表, payment_method AS 支付方式, total_amount AS 订单总金额, delivery_address AS 配送地址, order_time AS 订单时间 FROM ads_algo_order_info_dd WHERE (payment_method = 'WeChat' or payment_method = 'AliPay') and (is_canceled = 'no' or refund_status is NULL) and TO_CHAR(TO_DATE(ord... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.