The ff. example is taken from: https://www.datenbanken-verstehen.de/sql-tutorial/sql-between-befehl/
Just started to learn SQL in R. I want to get a list of dates in between those two dates as set out in 'newdf.Mitarbeiter4'. Can anyone please help me pointing out the mistake in my query? There are similar questions about this query, but somehow I still could not use the answers in identifying my mistake.
Mitarbeiter4 <- data.frame( Nachname = c( "Wegner", "Müller", "Schulz", "Richter", "Schröder" ),
Vorname = c( "Lutz", "Melanie", "Dorothea", "Heiko", "Lukas" ),
Geburtstag = c( '12.12.1983', '01.04.1978', '13.02.1990', '15.08.1995', '24.07.1980' )
)
Mitarbeiter4
newdf.Mitarbeiter4 <- sqldf( "SELECT Nachname, Vorname, Geburtstag from Mitarbeiter4 WHERE Geburtstag BETWEEN '1980.01.01' AND '1993.01.01' " )
newdf.Mitarbeiter4
which gives me the ff. result:
[1] Nachname Vorname Geburtstag
<0 Zeilen> (oder row.names mit Länge 0)
I tried for the dates both "." and "/" as in the other questions asked, but still no success on my side.
As I have problems with the correct formatting could I please refer the kind person who replies to my question to the result as in the tutorial quoted above under:
"Das Ergebnis würde wie folgt aussehen:"