• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no of records count in join stament

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we get the number of records in the ResutSet for the joint query of two tables
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sitaram,
A query with a join isn't any different from a regular query in terms of getting the # rows.

You can use SQL's count(*) or count the rows up as you go through them. (Some drivers let you navigate to the end and get the row number, but that still involves transfering all the data across.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic