Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
sammo
Contributor
Contributor

Load Fields where a Field is empty (has no value)

Hello Community

I have a question about loading a qvd-File like this:

Load
  ID,
  Name, 
  Surname, 
  Birthdate, 
  Address, 
  City
FROM Adresses.qvd
WHERE Birthdate > then date('01.01.1950', 'dd.mm.yyyy') OR Birthdate = '';

So i want to load all de rows where the birthdate is higher than 1950 and all the rows which have an empty birthdate-field. 

the bigger than works fine, but the rows with the empty birthdates are not in the resulting dataset.

any ideas? 

thank you very much!

Labels (5)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

If your date format is the valid, U can try

Load
  ID,
  Name, 
  Surname, 
  Birthdate, 
  Address, 
  City
FROM Adresses.qvd
WHERE Year(Birthdate) > 1950 or IsNull(Birthdate);

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

1 Reply
Anil_Babu_Samineni

If your date format is the valid, U can try

Load
  ID,
  Name, 
  Surname, 
  Birthdate, 
  Address, 
  City
FROM Adresses.qvd
WHERE Year(Birthdate) > 1950 or IsNull(Birthdate);

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful