Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > urgent...please help with code

Reply
Thread Tools

urgent...please help with code

 
 
Joey Martin
Guest
Posts: n/a
 
      02-17-2005
Please, please help with me with this code. I thought I had it figured
out, but no such luck.

I have two tables, raceresultsview and jockeyselections.

In jockeyselections, I have jockey names and stableid, for example Pat
Day, stableid 1000.
In raceresultsview, I have jockey names, and placement.

I want to do something like this:
select * from raceresultsview where jockey in (select jockey from
jockeyselections). This works FINE, but I need to figure out how to grab
the stableid, too.

Each time there is a match, I want to insert the stableid and placement
into the table named winnings.

How do I get this to work?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
dlbjr
Guest
Posts: n/a
 
      02-17-2005
What database are you using?

--
dlbjr
Pleading sagacious indoctrination!


 
Reply With Quote
 
 
 
 
dlbjr
Guest
Posts: n/a
 
      02-17-2005
INSERT INTO matches ( JockeyId, StableID )
SELECT jockeyselections.JockeyID, jockeyselections.StableID
FROM jockeyselections INNER JOIN raceresultsview ON
jockeyselections.JockeyID = raceresultsview.JockeyID;


--
dlbjr
Pleading sagacious indoctrination!


 
Reply With Quote
 
Joey Martin
Guest
Posts: n/a
 
      02-17-2005
Thanks, but I figured it out.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the difference between code inside a <script> tag and code in the code-behind file? keithb ASP .Net 1 03-29-2006 01:00 AM
Re: help with repeater, how to code it in code-behind page Phil Winstanley [Microsoft MVP ASP.NET] ASP .Net 2 06-25-2004 03:38 AM
help with repeater, how to code it in code-behind page Tee ASP .Net 1 06-24-2004 12:42 PM
Fire Code behind code AND Javascript code associated to a Button Click Event =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?= ASP .Net 4 02-11-2004 07:31 AM
<code>linklist<Item,8> ItemList;</code> help! tone HTML 4 11-19-2003 02:57 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57