943,645 Members | Top Members by Rank

Ad:
Jul 24th, 2009
0

How to find the specific badge id by using the inner join

Expand Post »
Hi guys i got a problem with this i can get data from the table by using sql :-Select * from staff_badgeTracking inner join staff_badgeTrackingNew
On staff_badgeTracking.Badge_ID = staff_badgeTrackingNew.Badge_ID

The point is if i wan to find a specific badge id like 1234 then it will get the data from two table so how to write the code ?

I write like this but it show error


Select * from staff_badgeTracking inner join staff_badgeTrackingNew
On staff_badgeTracking.Badge_ID = staff_badgeTrackingNew.Badge_ID where badge_id = '1234'
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster
gingank is offline Offline
108 posts
since Jun 2009
Jul 24th, 2009
0

Re: How to find the specific badge id by using the inner join

what is the error msg u r getting.
Reputation Points: 26
Solved Threads: 40
Posting Whiz
aktharshaik is offline Offline
316 posts
since Aug 2008
Jul 24th, 2009
0

Re: How to find the specific badge id by using the inner join

if badge_id column a numeric, then omit the quotation marks for '1234'
Reputation Points: 26
Solved Threads: 40
Posting Whiz
aktharshaik is offline Offline
316 posts
since Aug 2008
Jul 24th, 2009
0

Re: How to find the specific badge id by using the inner join

You may also have to prefix badge id with one of the two table names since you have an inner join on badge id.


Good Luck
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009
Jul 26th, 2009
0

Re: How to find the specific badge id by using the inner join

Click to Expand / Collapse  Quote originally posted by vb5prgrmr ...
You may also have to prefix badge id with one of the two table names since you have an inner join on badge id.


Good Luck

I don't understand what you said can you write the example for me and correct me on the sql statement
Reputation Points: 10
Solved Threads: 0
Junior Poster
gingank is offline Offline
108 posts
since Jun 2009
Jul 27th, 2009
0

Re: How to find the specific badge id by using the inner join

WHERE staff_badgeTracking.Badge_ID = 1234



Good Luck
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: option button and textbox
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: VB6 winsock email





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC