Skip to content

Tag: oracle

How to write this kind of query in Oracle

I have a MySQL database and I want to migrate all query to Oracle and since I am not an expert in Oracle SQL I am stuck here. I have query like this My question is: How to write this ORDER BY expression in Oracle SQL? Answer You can use There is no column naming format containing back ticks in

How to combine these two SELECT statment into one

I have two SELECT query which are written in MySQL AND So far I have to translate these two query to Oracle PL/SQL‚I came in idea to combine these two statment into one and so far I write query but I am a little bit confusing since I am begginer in PL/SQL Here is graphical representation of tables CategoryTab…

oracle data base error ORA-00920 invalid relational operator

This is my code after check syntax this error appear ORA-00920 invalid relational operator What problem on this code? Answer Unless you have a function called region that accepts three string arguments, this code does not make sense: I assume that you are missing the in:

How to avoid & popup when SQL query contain ‘&’ letter?

I am writing a migration script where I replaced html encoded values by original values like & will get replaced by &. So my SQL query has & letter but when I execute this query it give me popup for every & to replace that character which is as shown below After clicking on OK its giving a…

How to rectify “missing right parenthesis” problem?

Following is a sample of query I am working on right now: On compiling, it is throwing a “missing right parenthesis” error. I checked, but all the parentheses are accounted for. Can somebody help me? Answer The actual error you are seeing is caused by the date_arrived column with NOT NULL being pl…