Skip to content

Tag: sql

Condition on SQL Server query

The below SQL query is in a SQL Server 2017. I want when the value of UtenteCliente.CostoFatturazionePersonalizzato is 0 or null is configured with the value of Utente.CostoFatturazione, to do this I use the query below but the result always returns null. How can I do this? SQL Query: Answer You can use CASE …

Select count on Oracle Query based on distinct condition

I am newbie with oracle pl/sql, right now using oracle sqldeveloper, i need help for my homework, how to make the column number 2, 3, 4, 5, 6, … count based on first value column, the DISTINCT OWNER ? can anyone help me? or suggest me with some hint? this is wrong, i need the count n other column based