Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am using the direct connect and need to convert a timedate stamp to be only date below is a copy of what I have
HRxs.InitReview as 'DateRange',
hrxs:
LOAD *,
DayName(HRxs.InitReview) as DateRange;SQL
Select HRxs.eRxMsgID,
HRxs.FacID,
HRxs.InitReview,HRxs.NewRx,
HRxs.PackBy,
HRxs.Packed
FROM Rx.dbo.HRxs
regards
Marco
Try
Date(Floor(HRxs.InitReview,'MM/DD/YYYY')) as 'DateRange',
The following error occurred:
ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: The floor function requires 1 argument(s).
Date(Floor(HRxs.InitReview,'MM/DD/YYYY')) as 'DateRange'
after removing the floor
Connected
The following error occurred:
ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: 'Date' is not a recognized built-in function name.
Use preceding load:
LOAD DayName(HRxs.InitReview) as DateRange;
SQL Select HRxs.InitReview
FROM YourDB;
hope this helps
regards
Marco
hrxs:
LOAD *;
SQL SELECT
,
HRxs.eRxMsgID,
HRxs.FacID,
HRxs.InitReview as DateRange,
HRxs.NewRx,
HRxs.PackBy,
HRxs.Packed,
LOAD
DayName(HRxs.InitReview) as DateRange;
SQL Select HRxs.InitReview
FROM Rx.dbo.HRxs
hrxs:
LOAD *,
DayName(HRxs.InitReview) as DateRange;SQL
Select HRxs.eRxMsgID,
HRxs.FacID,
HRxs.InitReview,HRxs.NewRx,
HRxs.PackBy,
HRxs.Packed
FROM Rx.dbo.HRxs
regards
Marco
It´s supposed to be at Qlik scope
LOAD *,
Date(Floor(HRxs.InitReview,'MM/DD/YYYY')) as 'DateRange';
SQL
yourquery goes here