Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


i have 2 table table one 4 columns respective values a1
7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values
a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same
then 4th column values 1)Qes diff >5 then print 5 * diff
value 2)Que diff <5 print 5



i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colum..

Answer / anithaletchumi

select t1.name,case when abs(t1.val-t2.val) > 5 then 5 *
abs(t1.val - t2.val) else 5 end diff from tab1 t1 join tab2 t2
on t1.name=t2.name where t1.val != t2.val

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

How does one use sql*loader to load images, sound clips and documents? : aql loader

0 Answers  


What are the types of variables use in pl sql?

0 Answers  


what is the difference between join and union? : Sql dba

0 Answers  


query to retrive the employees whose sal is greater than avg sal

10 Answers   TCS,


What is sql in oracle?

0 Answers  


how to saw triggers output in pl/sql database?

1 Answers  


How is use pl and sql?

0 Answers  


what is inline view?

15 Answers  


write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba

0 Answers  


Is sql between inclusive?

0 Answers  


Why does %isopen return false for an implicit cursor?

1 Answers  


What is the difference between database trigger and stored procedure?

0 Answers  


Categories