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'表示支付宝;
默认查询100条数据,除非特别说明。
最近3星期内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '3 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近3个月内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '3 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近3年内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '3 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近3年半内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '3....
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近一天内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近一周内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近一星期内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近一个月内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近一年内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近一年半内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1....
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近两天内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近两周内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近两星期内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近两个月内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近两年内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近两年半内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2....
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近三天内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '3 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近三周内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '3 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近三星期内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '3 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近三个月内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '3 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近三年内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '3 ...
你是一个专业的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'表示支付宝;
默认查询100条数据,除非特别说明。
最近三年半内未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '3....
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
今天未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE, 'yyyy-mm-dd') GROUP...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
昨天未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 day', ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
前天未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '2 day', ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
本周未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('week', CURRENT_DATE) and TO_CHAR(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>:是否评价 <...
是否取消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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
上周未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('week', CURRENT_DATE - INTERVAL '1 ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
上个月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm') = TO_CHAR(CURRENT_DATE - INTERVAL '1 month', '...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
本月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm') = TO_CHAR(CURRENT_DATE, 'yyyy-mm') GROUP BY us...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
本季度未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('year', CURRENT_DATE) and DATE_PART...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
上季度未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('year', CURRENT_DATE - INTERVAL '3 ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
今年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('year', CURRENT_DATE) GROUP BY user...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
去年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('year', CURRENT_DATE - INTERVAL '1 ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
前年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('year', CURRENT_DATE - INTERVAL '2 ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近半月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '0.5 mon...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近半个月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '0.5 mon...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近半月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '0.5 mon...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近半个月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '0.5 mon...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
过去半年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '0.5 yea...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近半年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '0.5 yea...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近半年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '0.5 yea...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
半年前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '0.5 year...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
半年之前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '0.5 year...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
半个月之前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '0.5 mont...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
半个月前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '0.5 mont...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
本月1号未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = 1 GROUP BY user_id ORDER BY SUM(total_amount) ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
上个月1号未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm') = TO_CHAR(CURRENT_DATE - INTERVAL '1 month', '...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近1周未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 week'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近1周未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 week'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
过去1天未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 day',...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近1天未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 day',...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近1天未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 day',...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
过去1个月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 month...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近1个月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 month...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近1个月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 month...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近1年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 year'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近1年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 year'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
过去1年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 year'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
过去1周未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1 week'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近1年半未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1.5 yea...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近1年半未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1.5 yea...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
过去1年半未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '1.5 yea...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
上周1未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('week', CURRENT_DATE - INTERVAL '1 ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
本周1未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('week', CURRENT_DATE) and DATE_PART...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
去年1月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('year', CURRENT_DATE - INTERVAL '1 ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1周前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 week',...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1个月前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 month'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1年半前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1.5 year...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1年前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 year',...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1天前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 day', ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1天之前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 day', ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1个月之前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 month'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1个季度之前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '3 month'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1个季度前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '3 month'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1周之前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 week',...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1年半之前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1.5 year...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
1年之前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '1 year',...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
本月2号未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = 2 GROUP BY user_id ORDER BY SUM(total_amount) ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
上个月2号未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm') = TO_CHAR(CURRENT_DATE - INTERVAL '1 month', '...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近2周未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 week'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近2周未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 week'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
过去2天未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 day',...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近2天未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 day',...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近2天未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 day',...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
过去2个月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 month...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近2个月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 month...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近2个月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 month...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近2年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 year'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近2年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 year'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
过去2年未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 year'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
过去2周未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2 week'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
近2年半未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2.5 yea...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
最近2年半未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2.5 yea...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
过去2年半未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') >= TO_CHAR(CURRENT_DATE - INTERVAL '2.5 yea...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
上周2未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('week', CURRENT_DATE - INTERVAL '1 ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
本周2未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('week', CURRENT_DATE) and DATE_PART...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
去年2月未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss')) = DATE_PART('year', CURRENT_DATE - INTERVAL '1 ...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
2周前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '2 week',...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
2个月前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '2 month'...
你是一个专业的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的格式为yyyymmddhh24miss。
默认查询100条数据,除非特别说明。
2年半前未取消未退款,且支付方式为微信或现金的用户总订单金额排行榜。
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, 'yyyymmddhh24miss'), 'yyyy-mm-dd') = TO_CHAR(CURRENT_DATE - INTERVAL '2.5 year...