Click here to Skip to main content
16,005,038 members
Home / Discussions / Database
   

Database

 
QuestionStored Procedure not Working Pin
Brendan Vogt28-Jun-06 22:07
Brendan Vogt28-Jun-06 22:07 
AnswerRe: Stored Procedure not Working Pin
DIMPLE_R28-Jun-06 22:34
DIMPLE_R28-Jun-06 22:34 
GeneralRe: Stored Procedure not Working Pin
PlayByTheRules28-Jun-06 23:32
PlayByTheRules28-Jun-06 23:32 
GeneralRe: Stored Procedure not Working Pin
Brendan Vogt28-Jun-06 23:50
Brendan Vogt28-Jun-06 23:50 
GeneralRe: Stored Procedure not Working Pin
Colin Angus Mackay29-Jun-06 2:40
Colin Angus Mackay29-Jun-06 2:40 
GeneralRe: Stored Procedure not Working Pin
PlayByTheRules29-Jun-06 7:03
PlayByTheRules29-Jun-06 7:03 
GeneralRe: Stored Procedure not Working Pin
Brendan Vogt29-Jun-06 20:24
Brendan Vogt29-Jun-06 20:24 
GeneralRe: Stored Procedure not Working Pin
Brendan Vogt28-Jun-06 23:46
Brendan Vogt28-Jun-06 23:46 
Thanks, but I was not thinking clearly.

I changed it to the following and it works fine:

SELECT
WineryID_PK,
WineryName,
WineryEstablishedYear,
WineryOwner,
WineryDescription,
CountryID_PK,
CountryName,
RegionID_PK,
RegionName,
WineryDateInserted,
WineryDateUpdated,
(m2.MemberFName + ' ' + m2.MemberLName) AS WineryUpdatedBy,
WineryStatus,
WineryHasImage
FROM
MemberInWinery
INNER JOIN Winery
ON MemberInWinery.WineryID_FK = Winery.WineryID_PK
INNER JOIN Members AS "m1"
ON MemberInWinery.MemberID_FK = m1.MemberID_PK
LEFT OUTER JOIN Members AS "m2"
ON Winery.WineryUpdatedByID_FK = m2.MemberID_PK
INNER JOIN Region
ON Winery.RegionID_FK = Region.RegionID_PK
INNER JOIN Country
ON Region.CountryID_FK = Country.CountryID_PK
WHERE
MemberInWinery.WineryID_FK = 20
AND MemberInWinery.MemberID_FK = 12;

Thanks for your help!! Big Grin | :-D
Questiontable structure of the new table(Urgent) Pin
vivek-g28-Jun-06 21:40
vivek-g28-Jun-06 21:40 
AnswerRe: table structure of the new table(Urgent) Pin
PlayByTheRules28-Jun-06 22:01
PlayByTheRules28-Jun-06 22:01 
AnswerRe: table structure of the new table(Urgent) Pin
Mairaaj Khan29-Jun-06 0:33
professionalMairaaj Khan29-Jun-06 0:33 
QuestionFind Duration between DateTime Pin
Rajesh_K_Sharma28-Jun-06 19:34
Rajesh_K_Sharma28-Jun-06 19:34 
AnswerRe: Find Duration between DateTime Pin
DIMPLE_R28-Jun-06 19:47
DIMPLE_R28-Jun-06 19:47 
Questionreturn max value from column [modified] Pin
reshsilk28-Jun-06 11:13
reshsilk28-Jun-06 11:13 
AnswerRe: return max value from column Pin
reshsilk28-Jun-06 11:43
reshsilk28-Jun-06 11:43 
QuestionDsn in connection string Pin
iamabbas28-Jun-06 10:39
iamabbas28-Jun-06 10:39 
AnswerRe: Dsn in connection string Pin
Colin Angus Mackay28-Jun-06 13:06
Colin Angus Mackay28-Jun-06 13:06 
GeneralRe: Dsn in connection string Pin
iamabbas28-Jun-06 17:51
iamabbas28-Jun-06 17:51 
QuestionDatagridview.selectedValue help? Pin
PyroManiak28-Jun-06 9:49
PyroManiak28-Jun-06 9:49 
QuestionDTS Query !!! Pin
RockyGuls28-Jun-06 5:09
RockyGuls28-Jun-06 5:09 
QuestionSchema in SQL2005 Pin
VK-Cadec28-Jun-06 2:39
VK-Cadec28-Jun-06 2:39 
AnswerRe: Schema in SQL2005 Pin
Colin Angus Mackay28-Jun-06 13:03
Colin Angus Mackay28-Jun-06 13:03 
GeneralRe: Schema in SQL2005 [modified] Pin
VK-Cadec29-Jun-06 1:17
VK-Cadec29-Jun-06 1:17 
GeneralRe: Schema in SQL2005 Pin
Colin Angus Mackay29-Jun-06 2:33
Colin Angus Mackay29-Jun-06 2:33 
GeneralRe: Schema in SQL2005 Pin
VK-Cadec29-Jun-06 2:50
VK-Cadec29-Jun-06 2:50 

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.