[Solved] Can anyone please give me the step by step installation process of the oracle development suite 10g on ubuntu 16.04? [closed]

Oracle 10g2? Wow that’s kind of oldish, but here it is: Install libaio1 library: sudo apt-get update; sudo apt-get install -y libaio1 bc Download [from Oracle] and install the oracle database package. Make sure you get the correct architecture (takes around 3 minutes on a slow machine): sudo dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb Configure Oracle [change password … Read more

[Solved] oracle sql about table.substr

Adjust your syntax to: SELECT tableA.something FROM tableA LEFT JOIN table on tableA.name = substr(table.title, LENGTH(table.title)-8) table.title is an argument to the LENGTH() function. Also needs to be argument to SUBSTR(). 4 solved oracle sql about table.substr

[Solved] ORA-00907: Missing right parenthesis [closed]

CREATE TABLE s( id int, y int NOT NULL UNIQUE, x int NOT NULL, z varchar(50) NOT NULL, k varchar(50), l varchar(50) NOT NULL, m int NOT NULL, v int NOT NULL, c int NOT NULL, r varchar(400), CONSTRAINT s_pk PRIMARY KEY (id)); 2 solved ORA-00907: Missing right parenthesis [closed]

[Solved] I want to search job and salary from employee table but I am getting error like invalid relational operator [closed]

Actual code depends on tool you use. In SQL*Plus, it is the &; in SQL Developer or TOAD, that would be a :. Also, GUI tools usually don’t require enclosing string parameters into single quotes. Here’s a SQL*Plus example: SQL> select * from emp where job = ‘&job’ and sal <= &sal; Enter value for … Read more

[Solved] How to traverse the same table with nested cursors in oracle [closed]

Try something like this: begin for c in (select * from child_table) loop insert into table1 select * from parent_table where column_1 = c.column_10; insert into table2 select * from parent_table where column_1 = c.column_10; insert into table3 (column_1, column_2, column_3, column_4, column_5, column_6, column_7, column_8, column_9, column_10) values (c.column_1, c.column_2, c.column_3, c.column_4, c.column_5, c.column_6, … Read more

[Solved] PLSQL procedure to add numbers by fetching records from table [closed]

Something like this? set serveroutput on declare l_what varchar2(10); –> fail or pass begin for cur_r in (select col1, col2, col3, –> to be compared with col1 + col2 result from your_table) loop l_what := case when cur_r.col1 + cur_r.col2 = cur_r.col3 then ‘pass’ else ‘fail’ end; dbms_output.put_line(cur_r.col1 ||’ + ‘|| cur_r.col2 ||’ = ‘ … Read more

[Solved] sql payment distribution

Extending the answer to this question: payment distrubution oracle sql query You can still use the SQL MODEL clause. In this version, you need separate calculations for each distinct account_num. You can achieve this using the PARTITION keyword of the SQL MODEL clause to partition by account_num. Like this (see SQL comments for step-by-step explanation): … Read more

[Solved] Selecting the right column

Both. In some rows, t2.number is number and in others t3.number is number. The result of the union all in a single result set. The result set doesn’t know the origin of the values in any particular column (although you could include another column with this information). 3 solved Selecting the right column

[Solved] Receive an unexpected symbol error in my PLSQL query [closed]

You appear to have an extra quote in your query. The following should work for you: vSQl := ‘select toValueText(a.code, a.descr) from (select currency_code code, des1 descr ‘||’from sy_curr_code ) a ‘; Note the quote before your closing parenthesis has been removed. 1 solved Receive an unexpected symbol error in my PLSQL query [closed]