需要建議將其設置爲動態日期。 預計: 日期,賣方總數,賣家從以前的日期 目前: 數據表(active_seller_codes):日期,seller_code 查詢: - 日期明智的賣家數 select date,count(distinct seller_code) as Sellers_COunt
from active_seller_codes where date between '20
我有4列,如下圖所示: COL1 COL1_TIME COL2 COL2_TIME
A 09:20:00 E 09:35:00
A 09:20:00 F 09:36:00
A 09:20:00 G 09:40:00
A 09:20:00 H 09:59:00
B 09:25:00 E 09:35:00
B 09:25:00 F 09:36
我有一個像 with subtable as (
................
)
select *
from subtable
一個SQL查詢我想從SELECT語句中的記錄插入到表中。尋找類似於: with subtable as (......)
insert into newtable
select *
from subtable
但是,在Vertica中,INSER
去除指定的項目減少表我有一個Vertica的分貝下表: +-------+-------+-------+
| Item1 | Item2 | Item3 |
+-------+-------+-------+
| A | B | S |
| S | C | D |
| E | F | S |
+-------+-------+-------+
的每一行代表一個事