August 7, 2005 at 4:28 am
I got 2 tables. Type and Bet table.
Type Table has : TypeID,TypeName,TypePrice
Bet Table has : BetID,Num1,Num2,Num3,Num4,Num5,TypeID.
Now I actually need to display These columns in my Datagrid. BetID,Num1,Num2,Num3,Num4,Num5,TypeName,TypePrice.
How do I do this sql query. THanks
August 7, 2005 at 6:37 am
did you try :
select B.BetID,B.Num1,B.Num2,B.Num3,B.Num4,B.Num5,T.TypeName,T.TypePrice
from Bet B
inner join
Type T
on
B.TypeID = T.TypeID
.....and if it's only for a specific TypeID you would do:
select B.BetID,B.Num1,B.Num2,B.Num3,B.Num4,B.Num5,T.TypeName,T.TypePrice
from Bet B
inner join
Type T
on
B.TypeID = T.TypeID where
B.TypeID = ###
**ASCII stupid question, get a stupid ANSI !!!**
August 7, 2005 at 11:36 am
Are you sure that this model is normalized?
August 7, 2005 at 1:49 pm
if you're asking me remi - NO - I'm not sure...making assumptions!
**ASCII stupid question, get a stupid ANSI !!!**
August 7, 2005 at 1:59 pm
Was asking Raj .
August 7, 2005 at 4:21 pm
G.A.L remi...
**ASCII stupid question, get a stupid ANSI !!!**
August 7, 2005 at 6:00 pm
Been online 3 minutes... Life is being haved somewhere else.
C ya tomorrow.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply