A young Oracle Expert to help you in learning and solving Oracle related queries!!

Sunday, July 14, 2013

How to update one oracle table based on condition of other two tables:-


update t1  set t1.code=
(
select t3.code  from  t2 ,t3
where t2.id=t3.id
and t2.fcod=t3.fcod
and t3.mname=t1.mname)
where  t1.code is null
Posted by Priyanka at 12:18 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2015 (1)
    • ►  April (1)
  • ►  2014 (8)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (2)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
  • ▼  2013 (24)
    • ►  November (1)
    • ►  October (3)
    • ►  September (1)
    • ▼  July (8)
      • Oracle report sub query selection based on paramet...
      • Oracle Tuning :Comparison of "Not in" and "minus" ...
      • How to attach a calendar to the form
      • Compare dates in Oracle Forms:-
      • Display Oracle Report in Excel/SpreadSheet:-
      • How to update one oracle table based on condition ...
      • How to check the duplicate records are entered in ...
      • How to validate in detail-oracle block that atleas...
    • ►  June (3)
    • ►  March (4)
    • ►  February (3)
    • ►  January (1)
  • ►  2012 (6)
    • ►  August (6)

About Me

Priyanka
View my complete profile
Picture Window theme. Powered by Blogger.