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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
过去一周未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 week', 'yyyy-...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
近一年半未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1.5 year', 'yyy...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
最近一年半未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1.5 year', 'yyy...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
过去一年半未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1.5 year', 'yyy...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
上周一未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and DATE_PART('week', TO_DATE(order_time, 'yyyymmdd')) = DATE_PART('week', CURRENT_DATE - INTERVAL '1 week') a...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
本周一未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and DATE_PART('week', TO_DATE(order_time, 'yyyymmdd')) = DATE_PART('week', CURRENT_DATE) and DATE_PART('dow', ...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
去年一月未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and DATE_PART('year', TO_DATE(order_time, 'yyyymmdd')) = DATE_PART('year', CURRENT_DATE - INTERVAL '1 year') a...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一周前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 week', 'yyyy-m...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一个月前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 month', 'yyyy-...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一年半前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1.5 year', 'yyyy...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一年前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 year', 'yyyy-m...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一天前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 day', 'yyyy-mm...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一天之前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 day', 'yyyy-mm...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一个月之前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 month', 'yyyy-...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一个季度之前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '3 month', 'yyyy-...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一个季度前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '3 month', 'yyyy-...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一周之前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 week', 'yyyy-m...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一年半之前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1.5 year', 'yyyy...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
一年之前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 year', 'yyyy-m...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
本月二号未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and DATE_PART('day', TO_DATE(order_time, 'yyyymmdd')) = 2 GROUP BY user_id HAVING SUM(total_amount) > 128 LIMI...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
上个月二号未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm') = TO_CHAR(CURRENT_DATE - INTERVAL '1 month', 'yyyy-mm'...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
最近两周未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 week', 'yyyy-...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
近两周未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 week', 'yyyy-...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
过去两天未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 day', 'yyyy-m...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
近两天未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 day', 'yyyy-m...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
最近两天未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 day', 'yyyy-m...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
过去两个月未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 month', 'yyyy...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
最近两个月未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 month', 'yyyy...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
近两个月未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 month', 'yyyy...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
近两年未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 year', 'yyyy-...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
最近两年未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 year', 'yyyy-...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
过去两年未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 year', 'yyyy-...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
过去两周未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 week', 'yyyy-...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
近两年半未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2.5 year', 'yyy...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
最近两年半未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2.5 year', 'yyy...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
过去两年半未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2.5 year', 'yyy...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
上周两未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and DATE_PART('week', TO_DATE(order_time, 'yyyymmdd')) = DATE_PART('week', CURRENT_DATE - INTERVAL '1 week') a...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
本周两未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and DATE_PART('week', TO_DATE(order_time, 'yyyymmdd')) = DATE_PART('week', CURRENT_DATE) and DATE_PART('dow', ...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
去年两月未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and DATE_PART('year', TO_DATE(order_time, 'yyyymmdd')) = DATE_PART('year', CURRENT_DATE - INTERVAL '1 year') a...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
两周前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '2 week', 'yyyy-m...
你是一个专业的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>:是否评价 <...
是否取消is_cancelled有两种:'be_canceled'表示已取消、'not_canceled'表示未取消;退款状态refund_status有三种:'is_refundding'表示退款中、'is_refunded'表示已退款、'isnt_refunded'表示未退款;支付方式payment_method有三种:'money'表示现金、'we_chat'表示微信、'ali_pay'表示支付宝;日期时间字段order_time、create_time、update_time、refund_time、review_time、calceled_time的格式为yyyymmdd。
默认查看30条数据,除非特别说明。
两个月前未取消未退款,支付方式为微信或现金,且消费总金额超过一百二十八的用户。
SELECT user_id AS 用户ID, SUM(total_amount) AS 总金额 FROM ads_algo_order_info_dd WHERE (payment_method = 'money' or payment_method = 'we_chat') and (is_canceled = 'not_canceled' or refund_status = 'isnt_refunded') and TO_CHAR(TO_DATE(order_time, 'yyyymmdd'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '2 month', 'yyyy-...
你是一个专业的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的格式为mm-dd-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('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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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('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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-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的格式为mm-dd-yyyy。
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的格式为mm-dd-yyyy。
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...