Skip to content

Tag: sql

Update row with select on same table

I’m trying to update row with same table query. Context: I want to : For each row; if TEXT IS NULL; update it with TEXT value of row with same ID and LANG = ‘EN’. What is the SQL request to do something like that ? Answer You don’t specify the database. The following is standard SQL: I…

Sql query to convert or display bytes columns into MB?

I have a query as This query would bring the IP addresses that sent more than 1 million bytes within all flows in a specific time frame, you must enter The result is similar to I want the sourcebytes to appear as MB format. Do I need a nested query for that? Thanks. Answer Use this expression. CONCAT is SQL

Calculate price of rental period

I am working on a project for which I need to calculate prices of holiday homes available in a selected rental period. I need some help with building a SQL query that combines the following tables and …