Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 15 Μαρ 2010 · You can do this: UPDATE table1 SET table1.value = (SELECT table2.CODE. FROM table2 . WHERE table1.value = table2.DESC) WHERE table1.UPDATETYPE='blah'

  2. 5 Φεβ 2014 · You could join to the 2 tables separately (and GROUP BY) and then join them together: WITH dates (dat) AS ( SELECT TO_DATE('02.05.2014','dd.mm.yyyy') + ROWNUM - 1 AS dat FROM all_objects WHERE ROWNUM <= TO_DATE('02.05.2014','dd.mm.yyyy') - TO_DATE('02.05.2014','dd.mm.yyyy') + 1 ) , ret (dat, return_amount) AS ( SELECT d.dat, COALESCE(SUM(r ...

  3. 21 Σεπ 2017 · update (select a.category as defaultcategory from a left join b on b.xx_id = a.xx_id left join c on c.zz_id = b.zz_id left join d on d.yy_id = c.yy_id where d.yy_id = ‘123’) dc set dc.defaultcategory = (select kk_id from cc where name = 'NNN') - create table statements for all your tables.

  4. 27 Δεκ 2023 · Before diving into complex examples, let's understand the basic syntax of an update with a join operation in Oracle: sql UPDATE table1 SET table1.target_column = (SELECT table2.source_column FROM table2 WHERE table1.join_column = table2.join_column) WHERE EXISTS (SELECT 1 FROM table2 WHERE table1.join_column = table2.join_column); In the above ...

  5. 24 Μαΐ 2017 · Usually, when you need to join multiple tables in an UPDATE, MERGE is the solution. merge into address a1 using ( select p.address_fk, ta2.tempaddress1 from premise p join account ac on (ac.id = p.account_fk) join tempaddresstable ta2 on (ac.ext_ref = ta2.tempextref) ) ta1 on (a1.id = ta1.address_fk) when matched then update set a1.address1 ...

  6. 19 Φεβ 2015 · update ( select c.phone, c.fax, p.phone as p_phone, p.fax as p_fax from person p inner join contact c on c.person_id = p.person_id where c.current_year_id = ( select current_year_id from current_year where default_year = 1 ) ) x set phone = p_phone, fax = p_fax ;

  7. My update statement looks as follows: update PRODUCTION . set name = (select stage.name from staging stage where stage.name=name and rownum <2), . count = (select stage.countfrom staging stage where stage.count=count and rownum <2);

  1. Γίνεται επίσης αναζήτηση για