'Need to truncate the present quarter data and reload only that quarter data without touch other records
I need to delete the present quarter records but existing records can not be deleted.
In fiscal_quarter column FY23Q1/FY23Q2/FY23Q3/FY23Q4 are the values for that column Need help
insert into my_schema.my_table
select * from my_schema.my_table
where fiscal_quarter = 'FY%Q%'
Solution 1:[1]
Does the following do what you want?
delete from my_schema.my_table
where fiscal_quarter = 'FY%Q%';
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
