美好的一天我正在尝试获取单位费率时的项目,这是单位费率的开始日期,但是我在我的开始日期获得Nulls我在我的脚本中使用DATEDIFF
SELECT DISTINCT b.[Entry No_] ,
a.[Starting Date],
b.[Posting Date],
b.[Item No_],
b.[Invoiced Quantity],
a.[Litre Conversion Factor],
a.[Unit Rate] ,
b.[Location Code],
a.[Excise Location],
a.[Excise Type Code],
a.[Unit Of Measure Code]
FROM [Spier Live$Value Entry] b
LEFT JOIN [Transfer Excise Tbl] a
ON a.[No_] = b.[Item No_]
AND b.[Location Code] = a.[Location Code]
AND DateDiff(d,b.[Posting Date],a.[Starting Date]) <= 365
AND DateDiff(d,b.[Posting Date],a.[Starting Date]) > 0
WHERE b.[Posting Date] > '2013-02-26'
AND b.[Gen_ Bus_ Posting Group] IN ('LOCA', 'EXSA')
AND b.[Invoiced Quantity] <> 0
AND b.[Item No_] = 'F00335'
答案 0 :(得分:0)
试试这个
sqoop import --connect jdbc:mysql://localhost/employees --username root --P --table employees --hive-import