Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Object Relational Mapping and the fly likes Native Sql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Native Sql" Watch "Native Sql" New topic

Native Sql

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
I have a requirement where i need to fetch data from 2 tables. For this, i used joins.

See the following code:

My Question is that why does it prints 1, when i have queried for 3 columns? This sql query when executed in SQL console, displays a single row with 3 columns. Is something wrong with my code?

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Native Sql
It's not a secret anymore!