Тёмный

Google BigQuery Date Functions 

Analytics with Adam
Подписаться 13 тыс.
Просмотров 6 тыс.
50% 1

This video will cover some Google BigQuery SQL Date Functions for beginners. The BigQuery SQL Date Functions we will cover are the following.
1. The date_diff function, which allows the user to extract the difference between two dates in SQL measure in a selected date part, in the video we look at day, month and hour, for a full list of date parts please refer to the BigQuery SQL Date Functions documentation which we have a link to below.
The date difference function needs to be formatted as date_diff(later date col, earlier date col, date part)
2. The extract function can extract a part of a date to be used for analytics / aggregation. The extract function needs to be formatted as extract(date part from date column)
3. The last day function converts a date to the last day of the month it occurs in, perfect for aggregating values.
4. The format date function formats the date in to different date formats. FORMAT_DATE("%x", date)
You can find the date function documentation here cloud.google.c....
You can find the date format documentation here
cloud.google.c...

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@internationaltrailers2815
@internationaltrailers2815 Год назад
Thankyou for this video and links my friend. This helped me gain more knowledge in manipulating the date formats. Thankyou again🙏🏼
@analyticswithadam
@analyticswithadam Год назад
Glad it helped 🙋
@ojieokogua4605
@ojieokogua4605 2 года назад
Thanks for this wonderful video. Please I am new to big query and I am working on google data analytics case study on divvy trips. when I created my table by uploading csv files, start and end station name are all showing null. Could there be something I am not doing right? Please Help. Thanks
@Rock-wd3yq
@Rock-wd3yq Год назад
why don't you order your results? it's very confusing to jump from one point to another. Looking for the highest number
@analyticswithadam
@analyticswithadam Год назад
thanks for the feedback, will keep it in mind for next time