Skip to content

Tag: sql

Regexp_replace to replace specific value

I have data in a column at different position which i want to replace using regexp_replace(). Column value : Business solution, management services, credit Management services, business solution, credit I want to replace business solution with business solutions in a column nothing else I want to change.. Ple…

Move the clicked element to first

I am working on a query where I need to find all the employee names whose salary is less than the other employee salaries. In output I need two columns, the names of both the employees. for example: …

SQL multiple values in Where = “N”

I am going to execute SQL command on my multiplayer game, I don’t wanna any game stop or something like that because I am going to lose players so everything must go smooth. Its my command : UPDATE `…

Number based on condition

I’m trying to generate a number based on a condition. When there is yes in column ‘Stop’ in the partition of a Client ordered by Start_Date, the Dense Rank has to start over. So I tried several things but it’s stil not what I want. My table with current number and expected number The q…