Using UPDATE statement for data cleaning or wrangling in SQL | BigQuery

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ต.ค. 2024

ความคิดเห็น • 9

  • @luvyoukiki
    @luvyoukiki 6 หลายเดือนก่อน

    omg thankyouuu

  • @numtwentysix
    @numtwentysix ปีที่แล้ว

    What happen after I used all of $300 credits or after 90 days and decided to not upgrade billing account? Could I still have access to the sandbox mode?

    • @pivotalstats
      @pivotalstats  ปีที่แล้ว +1

      After the free trial ends, you can continue to use the Bigquery Sandbox with few limitation. like
      1. DML statements not allowed
      2. Limited data & query output storage
      3. Tables, View, Queries will automatically expire
      You can read the complete details on following link:
      cloud.google.com/free/docs/free-cloud-features?authuser=1&_ga=2.84268441.-123495644.1690396732&_gac=1.23350600.1692627503.CjwKCAjwloynBhBbEiwAGY25dJXoBZEutQ1pfkVo2CI8cytBaAJkQfC99E7WK3ur3ROTItwsHO7KThoCl5gQAvD_BwE

    • @numtwentysix
      @numtwentysix ปีที่แล้ว

      @@pivotalstats thank you for your response 👍🏻

  • @mysa-ls8cq
    @mysa-ls8cq 11 หลายเดือนก่อน

    how can i update using a cte or a particular query output as input to update statement

    • @pivotalstats
      @pivotalstats  11 หลายเดือนก่อน

      Below is an example of using CTE with Update:
      With CTE1 as
      (
      SELECT EmpID
      FROM db1.tbl1
      WHERE Company = 'ABC' AND JoinDate > '2019-01-01'
      )
      Update db1.tbl1
      Set Gratuity = 'Not Applicable'
      Where EmpID In (Select * from CTE1)

  • @VivekNakarmi-z3r
    @VivekNakarmi-z3r ปีที่แล้ว

    Can you update the whole table without changing the table name?

    • @pivotalstats
      @pivotalstats  ปีที่แล้ว

      You can use Update statements to edit any number of rows. But if I understood ur question correctly, you want to replace all data in ur table with new one without changing table structure. In that case u can use Truncate to remove older rows and then use Insert statement to input new records. This will keep the table structure intact and store the new data. Hope I answered ur questions!