Click here to Skip to main content
15,899,026 members
Home / Discussions / Database
   

Database

 
GeneralNeed Connectivity Help ! Pin
Jethro636-Apr-05 3:22
Jethro636-Apr-05 3:22 
GeneralpCommand.CreateInstance(__uuidof (Command)) fails in 98 Pin
kumarbp6-Apr-05 0:49
kumarbp6-Apr-05 0:49 
GeneralCompare record in Visual Studio 2003.NET Pin
sukasukabo6-Apr-05 0:32
sukasukabo6-Apr-05 0:32 
GeneralInsert Rows into a datatable in ado.net Pin
Madhu.A5-Apr-05 23:30
Madhu.A5-Apr-05 23:30 
GeneralRe: Insert Rows into a datatable in ado.net Pin
Ritesh12346-Apr-05 20:46
Ritesh12346-Apr-05 20:46 
Generalindexing service - problem with read html meta tag Pin
a_r_215-Apr-05 6:19
a_r_215-Apr-05 6:19 
GeneralReporting Services - Custom Rendering Extension Pin
blue-ice4-Apr-05 22:56
blue-ice4-Apr-05 22:56 
GeneralRe: Reporting Services - Custom Rendering Extension Pin
JeyKey5-Apr-05 18:51
JeyKey5-Apr-05 18:51 
QuestionShould i use SqlConnection or SqlDataAdapter Only ? Pin
kakarato4-Apr-05 21:57
kakarato4-Apr-05 21:57 
AnswerRe: Should i use SqlConnection or SqlDataAdapter Only ? Pin
Colin Angus Mackay4-Apr-05 23:49
Colin Angus Mackay4-Apr-05 23:49 
GeneralRe: Should i use SqlConnection or SqlDataAdapter Only ? Pin
kakarato5-Apr-05 15:33
kakarato5-Apr-05 15:33 
Questioncan we set foreign key from another database Pin
BSRK4-Apr-05 19:08
BSRK4-Apr-05 19:08 
AnswerRe: can we set foreign key from another database Pin
Nazmul Hassan5-Apr-05 5:02
Nazmul Hassan5-Apr-05 5:02 
GeneralDataAdapter.Fill Pin
Drew Stainton4-Apr-05 18:19
Drew Stainton4-Apr-05 18:19 
GeneralRe: DataAdapter.Fill Pin
Albert Pascual5-Apr-05 5:53
sitebuilderAlbert Pascual5-Apr-05 5:53 
QuestionCan multiple ds's be in a array? Pin
DEWright_CA4-Apr-05 11:52
DEWright_CA4-Apr-05 11:52 
QuestionCan we set foreign key from another database Pin
Anonymous4-Apr-05 2:38
Anonymous4-Apr-05 2:38 
GeneralUrgent Pin
kalikoi4-Apr-05 0:46
kalikoi4-Apr-05 0:46 
GeneralRe: Urgent Pin
WoutL4-Apr-05 0:54
WoutL4-Apr-05 0:54 
Generalconnecting database over internet Pin
Member 4472173-Apr-05 21:02
Member 4472173-Apr-05 21:02 
GeneralRe: connecting database over internet Pin
Colin Angus Mackay3-Apr-05 23:30
Colin Angus Mackay3-Apr-05 23:30 
GeneralMultiple columns Pin
Jaydeanster1-Apr-05 8:00
Jaydeanster1-Apr-05 8:00 
Hello,

Please advise on how I might be able to make this sproc work...

declare @TrainerID int

select TrainerID, LastName, FirstName, City, State, Country, r.code, l.description, p.Code from trainers as t
inner join Regions as r
on t.region = r.regionid
inner join Languages as l
on t.Language1 = l.LangID
--and t.Language2 = l.LangID
--and t.Language3 = l.LangID
inner join products as p
on t.product1 = p.ProductID
--on t.product2 = p.ProductID
--on t.product3 = p.ProductID
--on t.product4 = p.ProductID
where TrainerID = @TrainerID

The situation is that I have designed in the Trainers (t) table multiple columns of Languages and Products with properties as Int which stores values based on their respective LanguageID and ProductID from the Languages and Products (definition) table.

The dilemma is on the result, I would like to see the actual codes and not the ID key of each of the multiple columns coming from the definition tables.

Thanks

Jay

Feng Screwed - the art of moving to a new place because the old place is just too messy to clean.
GeneralRe: Multiple columns Pin
Colin Angus Mackay1-Apr-05 8:17
Colin Angus Mackay1-Apr-05 8:17 
GeneralRe: Multiple columns Pin
Jaydeanster1-Apr-05 8:39
Jaydeanster1-Apr-05 8:39 
GeneralRe: Multiple columns Pin
Colin Angus Mackay1-Apr-05 10:06
Colin Angus Mackay1-Apr-05 10:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.