Skip to content

Tag: sql

Delete Result Rows from a Table in SQL

I have 2 tables named BM_Data1 & BM_Data1_May62019. Both Tables contains the same data as BM_Data1_May62019 is the copy of BM_Data1 table. But BM_Data1 has some extra rows, How can I delete those …

SQL query to interpolate between values

I intend to interpolate (linear interpolation) between values in a column and insert that into a new column using a SQL query. Based on my search online, I suspect LEAD analytic function could be useful. I am new to writing SQL queries. So, any insights on how it can be achieved will be quite helpful. The sam…

Arithmetic addition to aggregate function

I’m new to sql and wanted to perform a simple task using aggregate function in sql. select (current_data + avg(current_data)) as “average + current data” from datasets However, arithmetic addition …