Calculating Difference in Date from 2 different columns

Hi,

I need help with this query, I want to calculate the date difference between the MAX date column and the MIN date column but I tried minus but it doesn't work

Please tell me if there are any solutions

Hi @natti
Post "Diagnostic Info" from Admin > Troubleshooting, and the database type you are querying.
What does "it doesn't work" mean? You are just doing a query, so any errors returned comes from the database.

@flamber
{
"browser-info": {
"language": "en-US",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.11+9",
"java.vendor": "AdoptOpenJDK",
"java.vendor.url": "https://adoptopenjdk.net/",
"java.version": "11.0.11",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.11+9",
"os.name": "Linux",
"os.version": "4.14.219-164.354.amzn2.x86_64",
"user.language": "en",
"user.timezone": "GMT"
},
"metabase-info": {
"databases": [
"bigquery",
"h2"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "11.9"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.2.18"
}
},
"run-mode": "prod",
"version": {
"date": "2021-05-17",
"tag": "v1.39.2",
"branch": "release-x.39.x",
"hash": "b0d9436"
},
"settings": {
"report-timezone": "Asia/Bangkok"
}
}
}

The database I'm using as of now is BigQuery

@natti https://stackoverflow.com/questions/50351517/difference-between-two-dates-in-dates-using-google-bigquery