BigQuery Help - How to cast and convert to float and date format












1















I'm trying to do two things in BigQuery, but I'm having difficulties doing so.



I'd like to do two things :




  1. Convert my date columns to Date format (it is currently in int64, with 43379 as an example)

  2. Cast my columns Delivered_Cost and Actual_Cost to float (they are currently with string type) - As when there is a null value, there is - instead of 0. When you cast to float, do these -s automatically change to 0 or do I have to update that first?


I don't have much experience this, and I've been having difficulties looking for a solution online so I'd love any help! I'm having difficulties casting and displaying data from my table at the same time.



Thank you!



SELECT * FROM TABLE1
CAST(Delivered_Cost as float)









share|improve this question

























  • I guess you are using Standard and not Legacy queries, right?

    – Temu
    2 days ago
















1















I'm trying to do two things in BigQuery, but I'm having difficulties doing so.



I'd like to do two things :




  1. Convert my date columns to Date format (it is currently in int64, with 43379 as an example)

  2. Cast my columns Delivered_Cost and Actual_Cost to float (they are currently with string type) - As when there is a null value, there is - instead of 0. When you cast to float, do these -s automatically change to 0 or do I have to update that first?


I don't have much experience this, and I've been having difficulties looking for a solution online so I'd love any help! I'm having difficulties casting and displaying data from my table at the same time.



Thank you!



SELECT * FROM TABLE1
CAST(Delivered_Cost as float)









share|improve this question

























  • I guess you are using Standard and not Legacy queries, right?

    – Temu
    2 days ago














1












1








1


1






I'm trying to do two things in BigQuery, but I'm having difficulties doing so.



I'd like to do two things :




  1. Convert my date columns to Date format (it is currently in int64, with 43379 as an example)

  2. Cast my columns Delivered_Cost and Actual_Cost to float (they are currently with string type) - As when there is a null value, there is - instead of 0. When you cast to float, do these -s automatically change to 0 or do I have to update that first?


I don't have much experience this, and I've been having difficulties looking for a solution online so I'd love any help! I'm having difficulties casting and displaying data from my table at the same time.



Thank you!



SELECT * FROM TABLE1
CAST(Delivered_Cost as float)









share|improve this question
















I'm trying to do two things in BigQuery, but I'm having difficulties doing so.



I'd like to do two things :




  1. Convert my date columns to Date format (it is currently in int64, with 43379 as an example)

  2. Cast my columns Delivered_Cost and Actual_Cost to float (they are currently with string type) - As when there is a null value, there is - instead of 0. When you cast to float, do these -s automatically change to 0 or do I have to update that first?


I don't have much experience this, and I've been having difficulties looking for a solution online so I'd love any help! I'm having difficulties casting and displaying data from my table at the same time.



Thank you!



SELECT * FROM TABLE1
CAST(Delivered_Cost as float)






sql google-bigquery






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 18 at 23:07









GMB

9,1372723




9,1372723










asked Jan 18 at 21:37









EllieEllie

162




162













  • I guess you are using Standard and not Legacy queries, right?

    – Temu
    2 days ago



















  • I guess you are using Standard and not Legacy queries, right?

    – Temu
    2 days ago

















I guess you are using Standard and not Legacy queries, right?

– Temu
2 days ago





I guess you are using Standard and not Legacy queries, right?

– Temu
2 days ago












2 Answers
2






active

oldest

votes


















1
















  1. Convert my date columns to Date format (it is currently in int64, with 43379 as an example)




Use function PARSE_DATE() :



PARSE_DATE(Delivered_Date, '%Y-%m-%d')


The following doc lists the supported formats.





  1. Cast my columns 'Delivered_Cost' and 'Actual_Cost' to float (it is currently with string type)




Your syntax with CASE() is OK ; you could also use shortcut method FLOAT(). However if your string does not successfully maps to a float (like - alone), a runtime error will occur. You could use SAFE_CAST() to ignore conversion error, but that might also lead to ignoring relevant errors. Hence, you would better use REPLACE().



Here is your query :



SELECT
PARSE_DATE(Delivered_Date, '%Y-%m-%d') AS Delivered_Date,
FLOAT(REPLACE(Delivered_Cost, '-', '0')) AS Delivered_Cost,
FLOAT(REPLACE(Actual_Cost, '-', '0')) AS Actual_Cost
FROM MYTABLE


FLOAT(Delivered_Cost)





share|improve this answer
























  • Thank you! When I use the code below, it somewhat works: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost FROM table However, the '-' values get changed to null rather than 0s. Also when I try to do multiple REPLACE functions in the same query, I get an error. Please see the below code for an example: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost float(replace(total_planned_units, '-', '0')) AS total_planned_units FROM table

    – Ellie
    Jan 19 at 1:32













  • Apologies - I'm also new on stackoverflow so I'm unfamiliar with how to paste the code in a friendly way.

    – Ellie
    Jan 19 at 1:34











  • so if it doesn't works for you I guess you shouldn't accept the answer in order to no drive other users to wrong conclusions. Did it finally worked?

    – Temu
    2 days ago



















0














Below is for BigQuery Standard SQL





#standardSQL
SELECT
DATE_FROM_UNIX_DATE(date_column_as_number_of_days_since_epoch) date_since_epoch,
IFNULL(SAFE_CAST(Delivered_Cost AS FLOAT64), 0.0) AS Delivered_Cost,
IFNULL(SAFE_CAST(Actual_Cost AS FLOAT64), 0.0) AS Actual_Cost
FROM `project.dataset.table`


You can test, play with it using dummy data as below



#standardSQL
WITH `project.dataset.table` AS (
SELECT
43397 AS date_column_as_number_of_days_since_epoch,
'123' AS Delivered_Cost,
' - ' AS Actual_Cost
)
SELECT
DATE_FROM_UNIX_DATE(date_column_as_number_of_days_since_epoch) date_since_epoch,
IFNULL(SAFE_CAST(Delivered_Cost AS FLOAT64), 0.0) AS Delivered_Cost,
IFNULL(SAFE_CAST(Actual_Cost AS FLOAT64), 0.0) AS Actual_Cost
FROM `project.dataset.table`


with result as



Row date_since_epoch    Delivered_Cost  Actual_Cost  
1 2088-10-25 123.0 0.0


Note: I am assuming that 43379 which you use as an example in your question is actually a number of days since epoch - as this is most reasonable from my point assumption - let us know if this is something else, so I will adjust answer respectively






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54261733%2fbigquery-help-how-to-cast-and-convert-to-float-and-date-format%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1
















    1. Convert my date columns to Date format (it is currently in int64, with 43379 as an example)




    Use function PARSE_DATE() :



    PARSE_DATE(Delivered_Date, '%Y-%m-%d')


    The following doc lists the supported formats.





    1. Cast my columns 'Delivered_Cost' and 'Actual_Cost' to float (it is currently with string type)




    Your syntax with CASE() is OK ; you could also use shortcut method FLOAT(). However if your string does not successfully maps to a float (like - alone), a runtime error will occur. You could use SAFE_CAST() to ignore conversion error, but that might also lead to ignoring relevant errors. Hence, you would better use REPLACE().



    Here is your query :



    SELECT
    PARSE_DATE(Delivered_Date, '%Y-%m-%d') AS Delivered_Date,
    FLOAT(REPLACE(Delivered_Cost, '-', '0')) AS Delivered_Cost,
    FLOAT(REPLACE(Actual_Cost, '-', '0')) AS Actual_Cost
    FROM MYTABLE


    FLOAT(Delivered_Cost)





    share|improve this answer
























    • Thank you! When I use the code below, it somewhat works: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost FROM table However, the '-' values get changed to null rather than 0s. Also when I try to do multiple REPLACE functions in the same query, I get an error. Please see the below code for an example: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost float(replace(total_planned_units, '-', '0')) AS total_planned_units FROM table

      – Ellie
      Jan 19 at 1:32













    • Apologies - I'm also new on stackoverflow so I'm unfamiliar with how to paste the code in a friendly way.

      – Ellie
      Jan 19 at 1:34











    • so if it doesn't works for you I guess you shouldn't accept the answer in order to no drive other users to wrong conclusions. Did it finally worked?

      – Temu
      2 days ago
















    1
















    1. Convert my date columns to Date format (it is currently in int64, with 43379 as an example)




    Use function PARSE_DATE() :



    PARSE_DATE(Delivered_Date, '%Y-%m-%d')


    The following doc lists the supported formats.





    1. Cast my columns 'Delivered_Cost' and 'Actual_Cost' to float (it is currently with string type)




    Your syntax with CASE() is OK ; you could also use shortcut method FLOAT(). However if your string does not successfully maps to a float (like - alone), a runtime error will occur. You could use SAFE_CAST() to ignore conversion error, but that might also lead to ignoring relevant errors. Hence, you would better use REPLACE().



    Here is your query :



    SELECT
    PARSE_DATE(Delivered_Date, '%Y-%m-%d') AS Delivered_Date,
    FLOAT(REPLACE(Delivered_Cost, '-', '0')) AS Delivered_Cost,
    FLOAT(REPLACE(Actual_Cost, '-', '0')) AS Actual_Cost
    FROM MYTABLE


    FLOAT(Delivered_Cost)





    share|improve this answer
























    • Thank you! When I use the code below, it somewhat works: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost FROM table However, the '-' values get changed to null rather than 0s. Also when I try to do multiple REPLACE functions in the same query, I get an error. Please see the below code for an example: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost float(replace(total_planned_units, '-', '0')) AS total_planned_units FROM table

      – Ellie
      Jan 19 at 1:32













    • Apologies - I'm also new on stackoverflow so I'm unfamiliar with how to paste the code in a friendly way.

      – Ellie
      Jan 19 at 1:34











    • so if it doesn't works for you I guess you shouldn't accept the answer in order to no drive other users to wrong conclusions. Did it finally worked?

      – Temu
      2 days ago














    1












    1








    1









    1. Convert my date columns to Date format (it is currently in int64, with 43379 as an example)




    Use function PARSE_DATE() :



    PARSE_DATE(Delivered_Date, '%Y-%m-%d')


    The following doc lists the supported formats.





    1. Cast my columns 'Delivered_Cost' and 'Actual_Cost' to float (it is currently with string type)




    Your syntax with CASE() is OK ; you could also use shortcut method FLOAT(). However if your string does not successfully maps to a float (like - alone), a runtime error will occur. You could use SAFE_CAST() to ignore conversion error, but that might also lead to ignoring relevant errors. Hence, you would better use REPLACE().



    Here is your query :



    SELECT
    PARSE_DATE(Delivered_Date, '%Y-%m-%d') AS Delivered_Date,
    FLOAT(REPLACE(Delivered_Cost, '-', '0')) AS Delivered_Cost,
    FLOAT(REPLACE(Actual_Cost, '-', '0')) AS Actual_Cost
    FROM MYTABLE


    FLOAT(Delivered_Cost)





    share|improve this answer















    1. Convert my date columns to Date format (it is currently in int64, with 43379 as an example)




    Use function PARSE_DATE() :



    PARSE_DATE(Delivered_Date, '%Y-%m-%d')


    The following doc lists the supported formats.





    1. Cast my columns 'Delivered_Cost' and 'Actual_Cost' to float (it is currently with string type)




    Your syntax with CASE() is OK ; you could also use shortcut method FLOAT(). However if your string does not successfully maps to a float (like - alone), a runtime error will occur. You could use SAFE_CAST() to ignore conversion error, but that might also lead to ignoring relevant errors. Hence, you would better use REPLACE().



    Here is your query :



    SELECT
    PARSE_DATE(Delivered_Date, '%Y-%m-%d') AS Delivered_Date,
    FLOAT(REPLACE(Delivered_Cost, '-', '0')) AS Delivered_Cost,
    FLOAT(REPLACE(Actual_Cost, '-', '0')) AS Actual_Cost
    FROM MYTABLE


    FLOAT(Delivered_Cost)






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 18 at 23:04









    GMBGMB

    9,1372723




    9,1372723













    • Thank you! When I use the code below, it somewhat works: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost FROM table However, the '-' values get changed to null rather than 0s. Also when I try to do multiple REPLACE functions in the same query, I get an error. Please see the below code for an example: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost float(replace(total_planned_units, '-', '0')) AS total_planned_units FROM table

      – Ellie
      Jan 19 at 1:32













    • Apologies - I'm also new on stackoverflow so I'm unfamiliar with how to paste the code in a friendly way.

      – Ellie
      Jan 19 at 1:34











    • so if it doesn't works for you I guess you shouldn't accept the answer in order to no drive other users to wrong conclusions. Did it finally worked?

      – Temu
      2 days ago



















    • Thank you! When I use the code below, it somewhat works: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost FROM table However, the '-' values get changed to null rather than 0s. Also when I try to do multiple REPLACE functions in the same query, I get an error. Please see the below code for an example: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost float(replace(total_planned_units, '-', '0')) AS total_planned_units FROM table

      – Ellie
      Jan 19 at 1:32













    • Apologies - I'm also new on stackoverflow so I'm unfamiliar with how to paste the code in a friendly way.

      – Ellie
      Jan 19 at 1:34











    • so if it doesn't works for you I guess you shouldn't accept the answer in order to no drive other users to wrong conclusions. Did it finally worked?

      – Temu
      2 days ago

















    Thank you! When I use the code below, it somewhat works: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost FROM table However, the '-' values get changed to null rather than 0s. Also when I try to do multiple REPLACE functions in the same query, I get an error. Please see the below code for an example: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost float(replace(total_planned_units, '-', '0')) AS total_planned_units FROM table

    – Ellie
    Jan 19 at 1:32







    Thank you! When I use the code below, it somewhat works: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost FROM table However, the '-' values get changed to null rather than 0s. Also when I try to do multiple REPLACE functions in the same query, I get an error. Please see the below code for an example: SELECT --PARSE_DATE(START_DATE, '%y-%m-%d') AS START_DATE, float(replace(delivered_cost, '-', '0')) AS Delivered_cost float(replace(total_planned_units, '-', '0')) AS total_planned_units FROM table

    – Ellie
    Jan 19 at 1:32















    Apologies - I'm also new on stackoverflow so I'm unfamiliar with how to paste the code in a friendly way.

    – Ellie
    Jan 19 at 1:34





    Apologies - I'm also new on stackoverflow so I'm unfamiliar with how to paste the code in a friendly way.

    – Ellie
    Jan 19 at 1:34













    so if it doesn't works for you I guess you shouldn't accept the answer in order to no drive other users to wrong conclusions. Did it finally worked?

    – Temu
    2 days ago





    so if it doesn't works for you I guess you shouldn't accept the answer in order to no drive other users to wrong conclusions. Did it finally worked?

    – Temu
    2 days ago













    0














    Below is for BigQuery Standard SQL





    #standardSQL
    SELECT
    DATE_FROM_UNIX_DATE(date_column_as_number_of_days_since_epoch) date_since_epoch,
    IFNULL(SAFE_CAST(Delivered_Cost AS FLOAT64), 0.0) AS Delivered_Cost,
    IFNULL(SAFE_CAST(Actual_Cost AS FLOAT64), 0.0) AS Actual_Cost
    FROM `project.dataset.table`


    You can test, play with it using dummy data as below



    #standardSQL
    WITH `project.dataset.table` AS (
    SELECT
    43397 AS date_column_as_number_of_days_since_epoch,
    '123' AS Delivered_Cost,
    ' - ' AS Actual_Cost
    )
    SELECT
    DATE_FROM_UNIX_DATE(date_column_as_number_of_days_since_epoch) date_since_epoch,
    IFNULL(SAFE_CAST(Delivered_Cost AS FLOAT64), 0.0) AS Delivered_Cost,
    IFNULL(SAFE_CAST(Actual_Cost AS FLOAT64), 0.0) AS Actual_Cost
    FROM `project.dataset.table`


    with result as



    Row date_since_epoch    Delivered_Cost  Actual_Cost  
    1 2088-10-25 123.0 0.0


    Note: I am assuming that 43379 which you use as an example in your question is actually a number of days since epoch - as this is most reasonable from my point assumption - let us know if this is something else, so I will adjust answer respectively






    share|improve this answer




























      0














      Below is for BigQuery Standard SQL





      #standardSQL
      SELECT
      DATE_FROM_UNIX_DATE(date_column_as_number_of_days_since_epoch) date_since_epoch,
      IFNULL(SAFE_CAST(Delivered_Cost AS FLOAT64), 0.0) AS Delivered_Cost,
      IFNULL(SAFE_CAST(Actual_Cost AS FLOAT64), 0.0) AS Actual_Cost
      FROM `project.dataset.table`


      You can test, play with it using dummy data as below



      #standardSQL
      WITH `project.dataset.table` AS (
      SELECT
      43397 AS date_column_as_number_of_days_since_epoch,
      '123' AS Delivered_Cost,
      ' - ' AS Actual_Cost
      )
      SELECT
      DATE_FROM_UNIX_DATE(date_column_as_number_of_days_since_epoch) date_since_epoch,
      IFNULL(SAFE_CAST(Delivered_Cost AS FLOAT64), 0.0) AS Delivered_Cost,
      IFNULL(SAFE_CAST(Actual_Cost AS FLOAT64), 0.0) AS Actual_Cost
      FROM `project.dataset.table`


      with result as



      Row date_since_epoch    Delivered_Cost  Actual_Cost  
      1 2088-10-25 123.0 0.0


      Note: I am assuming that 43379 which you use as an example in your question is actually a number of days since epoch - as this is most reasonable from my point assumption - let us know if this is something else, so I will adjust answer respectively






      share|improve this answer


























        0












        0








        0







        Below is for BigQuery Standard SQL





        #standardSQL
        SELECT
        DATE_FROM_UNIX_DATE(date_column_as_number_of_days_since_epoch) date_since_epoch,
        IFNULL(SAFE_CAST(Delivered_Cost AS FLOAT64), 0.0) AS Delivered_Cost,
        IFNULL(SAFE_CAST(Actual_Cost AS FLOAT64), 0.0) AS Actual_Cost
        FROM `project.dataset.table`


        You can test, play with it using dummy data as below



        #standardSQL
        WITH `project.dataset.table` AS (
        SELECT
        43397 AS date_column_as_number_of_days_since_epoch,
        '123' AS Delivered_Cost,
        ' - ' AS Actual_Cost
        )
        SELECT
        DATE_FROM_UNIX_DATE(date_column_as_number_of_days_since_epoch) date_since_epoch,
        IFNULL(SAFE_CAST(Delivered_Cost AS FLOAT64), 0.0) AS Delivered_Cost,
        IFNULL(SAFE_CAST(Actual_Cost AS FLOAT64), 0.0) AS Actual_Cost
        FROM `project.dataset.table`


        with result as



        Row date_since_epoch    Delivered_Cost  Actual_Cost  
        1 2088-10-25 123.0 0.0


        Note: I am assuming that 43379 which you use as an example in your question is actually a number of days since epoch - as this is most reasonable from my point assumption - let us know if this is something else, so I will adjust answer respectively






        share|improve this answer













        Below is for BigQuery Standard SQL





        #standardSQL
        SELECT
        DATE_FROM_UNIX_DATE(date_column_as_number_of_days_since_epoch) date_since_epoch,
        IFNULL(SAFE_CAST(Delivered_Cost AS FLOAT64), 0.0) AS Delivered_Cost,
        IFNULL(SAFE_CAST(Actual_Cost AS FLOAT64), 0.0) AS Actual_Cost
        FROM `project.dataset.table`


        You can test, play with it using dummy data as below



        #standardSQL
        WITH `project.dataset.table` AS (
        SELECT
        43397 AS date_column_as_number_of_days_since_epoch,
        '123' AS Delivered_Cost,
        ' - ' AS Actual_Cost
        )
        SELECT
        DATE_FROM_UNIX_DATE(date_column_as_number_of_days_since_epoch) date_since_epoch,
        IFNULL(SAFE_CAST(Delivered_Cost AS FLOAT64), 0.0) AS Delivered_Cost,
        IFNULL(SAFE_CAST(Actual_Cost AS FLOAT64), 0.0) AS Actual_Cost
        FROM `project.dataset.table`


        with result as



        Row date_since_epoch    Delivered_Cost  Actual_Cost  
        1 2088-10-25 123.0 0.0


        Note: I am assuming that 43379 which you use as an example in your question is actually a number of days since epoch - as this is most reasonable from my point assumption - let us know if this is something else, so I will adjust answer respectively







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 18 at 23:45









        Mikhail BerlyantMikhail Berlyant

        57.6k43571




        57.6k43571






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54261733%2fbigquery-help-how-to-cast-and-convert-to-float-and-date-format%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Callistus III

            Ostreoida

            Plistias Cous