Update query with max(date) in oracle

<p>There are two tables named <code>emp</code> and <code>ct1</code> Requirement is to get max(hiredate) from <code>emp</code> and update it to <code>ct1</code> table.</p><p>used : <code>Update ct1 set session_date=(select max(hiredate)from emp) where table_name='src1';</code></p><pre><br /><code>emp <br />name hiredate<br />A 12-12-2004<br />B 14-08-2000<br /><br />ct1 table<br />table_name session_date<br />SRC1 null<br />SRC2 null<br /></code><br /></pre><br /><h2>Click here view more answers <a href="%20http://stackoverflow.com/questions/34470119/update-query-with-maxdate-in-oracle">http://ift.tt/1Oes8JF</a></h2>

Nhận xét

Bài đăng phổ biến từ blog này

Align div to bottom of the page in bootstrap

Align elements inside an tag vertically

Javascript is unable to stop page loading