Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to write sql query

 
smitha mano
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
--------------------------------------------------------------------------------
Emp.table

id name Desig
1 aaaa SA
2 bbbb PL



Address.table

id street CITY
1 Pulluvazhy Perumbavoor
2 Kizhillam Pulluvazhi



i wanted to retriev data

Desig =PL the city=pulluvazhi
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
select e.id,e.name,e.desig from emp e where e.desig='PL'

for table address table it will be the same
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic