Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello, how can I exclude the year 2017-2020 data from my table before loading. See below.
LOAD
YEAR,
MONTH,
DAY
FROM [lib://QVDs/A/CS.QVD]
(qvd);
The YEAR has 2017 to 2022 data but I would like to get the 2021 to 2022 only.
Thank you!
LOAD
YEAR,
MONTH,
DAY
FROM [lib://QVDs/A/CS.QVD]
(qvd)
where YEAR >2020;
Maybe you want it to be dynamic, so try this
LOAD * FROM [lib://QVDs/A/CS.QVD](qvd)
Where YEAR >= Year(AddYears(YearStart(Today()),-1));
LOAD
YEAR,
MONTH,
DAY
FROM [lib://QVDs/A/CS.QVD]
(qvd)
where YEAR >2020;
Maybe you want it to be dynamic, so try this
LOAD * FROM [lib://QVDs/A/CS.QVD](qvd)
Where YEAR >= Year(AddYears(YearStart(Today()),-1));
Thank you for the prompt response guys.