An Apache Spark-based analytics platform optimized for Azure.
string date search - previous month
arkiboys
9,711
Reputation points
In pyspark databricks I am loading data into delta table...
One of the columns is HireDate which comes in as string, i.e. 20220530
20220421
20220607
...
Question,
What is the select query to return all rows but for previous month
i.e. where HireDate >= 1st of previous month and HireDate < = last day of previous month
Thank you
Azure Databricks
Azure Databricks
Sign in to answer
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is