Skip to content

How to Replace NULL Value with 0 (Zero)?

I’ve just got myself stuck with some SQL query and I’m quite new on this. I’m using pivot in my query. This is my SELECT query: SELECT * FROM (SELECT lg.domainNameID AS [Domain ID], COUNT(lg….

How to import a JSON file into postgresql databse?

I just tried to read a .JSON file in my PostgreSQL database but it is not able to read it. I did it with a .csv file, but with a .JSON file, I am not able to do it. This is how the .JSON file looks like: This is the code that I tried, I created the table first and

How to get partial string in oracle

I need to find all the users in the table that have this pattern I only know the first 10 digits, the email address can be different. I did something like this, but I get nothing back Is there another way that I can capture this data in oracle? Thank you! Answer More a comment that a real answer, but