• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Please help me in creation of tables

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1)I have a table Department and Employee.
one Department have many Employees.
2)How to create these tables using SQL
3)And last one that,how cani get Employess for that Department using SQL in my Servlet apllication.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try this. it helped me. http://www.javaranch.com/drive/jdbc/index.jsp
 
Faisal Ishaque
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks ,
but my problem is that, one Dept table and Emp table, there is primary key called Dept_Id which determine the employees in Emp table.
1)how to create these tables using SQL. i.e supposein oracle.
2)And from my servlet application, how can I write SQL statement that fetch the employees of that Dept_Id.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"FaisalIshaqueJava FaisalIshaque",
Your name does not comply to the JavaRanch naming standard. Please see the description here
Please edit your profile and change your display name.
Accounts with invalid display names get deleted
Thanks,
Dave
 
We don't have time to be charming! Quick, read this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic