Click here to Skip to main content
15,919,613 members
Home / Discussions / Database
   

Database

 
GeneralRe: Convert String and Sort the the Intergers in a String ASC [modified] Pin
Niladri_Biswas29-Jun-09 5:55
Niladri_Biswas29-Jun-09 5:55 
GeneralRe: Convert String and Sort the the Intergers in a String ASC Pin
Vimalsoft(Pty) Ltd29-Jun-09 5:56
professionalVimalsoft(Pty) Ltd29-Jun-09 5:56 
QuestionProblem with joining tables in MSAccess. Pin
A k ch28-Jun-09 19:32
A k ch28-Jun-09 19:32 
AnswerRe: Problem with joining tables in MSAccess. Pin
riced28-Jun-09 22:44
riced28-Jun-09 22:44 
GeneralRe: Problem with joining tables in MSAccess. Pin
A k ch28-Jun-09 23:04
A k ch28-Jun-09 23:04 
AnswerRe: Problem with joining tables in MSAccess. Pin
Niladri_Biswas28-Jun-09 23:07
Niladri_Biswas28-Jun-09 23:07 
GeneralRe: Problem with joining tables in MSAccess. Pin
A k ch28-Jun-09 23:33
A k ch28-Jun-09 23:33 
GeneralRe: Problem with joining tables in MSAccess. Pin
riced29-Jun-09 0:43
riced29-Jun-09 0:43 
Here's the SQL generated by the query designer.
Two versions: first with fixed values, second using parameters.
Note the redundant parentheses (esp in WHERE) - and the layout is pretty poor.

SELECT a.*
FROM ((Student AS a LEFT JOIN Subdetails AS b ON a.bid = b.bid) 
LEFT JOIN Subjects AS c ON b.subid = c.subid) 
LEFT JOIN details AS d ON c.subid = d.subid
WHERE (((b.bid)=2) AND ((b.semid)=1) AND ((d.hno)=1234) AND ((d.hno)=[a].[hno]));


PARAMETERS inBid Long, inSemid Long, inHno Long;
SELECT a.*
FROM ((Student AS a LEFT JOIN Subdetails AS b ON a.bid = b.bid) 
LEFT JOIN Subjects AS c ON b.subid = c.subid) 
LEFT JOIN details AS d ON c.subid = d.subid
WHERE (((b.bid)=[inBid]) AND ((b.semid)=[inSemid]) AND ((d.hno)=[inHno]) AND ((d.hno)=[a].[hno]));


Looking at your original post I suspect this is a problems
left join details d on c.subid=d.subid and a.hno=d.hno
The tables on both sides of the and must be the same i.e. c=d or a=d - cannot have c=d and a=d in same join clause.

Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis

GeneralRe: Problem with joining tables in MSAccess. Pin
A k ch29-Jun-09 1:00
A k ch29-Jun-09 1:00 
QuestionFLOAT vs NUMERIC for financial transaction Pin
devvvy28-Jun-09 15:23
devvvy28-Jun-09 15:23 
AnswerRe: FLOAT vs NUMERIC for financial transaction Pin
Niladri_Biswas28-Jun-09 16:37
Niladri_Biswas28-Jun-09 16:37 
GeneralRe: FLOAT vs NUMERIC for financial transaction Pin
devvvy28-Jun-09 16:41
devvvy28-Jun-09 16:41 
GeneralRe: FLOAT vs NUMERIC for financial transaction Pin
Niladri_Biswas28-Jun-09 16:44
Niladri_Biswas28-Jun-09 16:44 
GeneralRe: FLOAT vs NUMERIC for financial transaction Pin
devvvy28-Jun-09 16:57
devvvy28-Jun-09 16:57 
GeneralRe: FLOAT vs NUMERIC for financial transaction Pin
Niladri_Biswas28-Jun-09 17:33
Niladri_Biswas28-Jun-09 17:33 
GeneralRe: FLOAT vs NUMERIC for financial transaction Pin
Niladri_Biswas28-Jun-09 22:30
Niladri_Biswas28-Jun-09 22:30 
GeneralRe: FLOAT vs NUMERIC for financial transaction Pin
devvvy30-Jun-09 13:49
devvvy30-Jun-09 13:49 
QuestionSQL Server Express and Visual C# Pin
kikeman28-Jun-09 7:56
kikeman28-Jun-09 7:56 
AnswerRe: SQL Server Express and Visual C# Pin
Henry Minute28-Jun-09 8:13
Henry Minute28-Jun-09 8:13 
QuestionRe: SQL Server Express and Visual C# Pin
kikeman29-Jun-09 6:26
kikeman29-Jun-09 6:26 
AnswerRe: SQL Server Express and Visual C# Pin
Henry Minute29-Jun-09 6:43
Henry Minute29-Jun-09 6:43 
QuestionRe: SQL Server Express and Visual C# Pin
kikeman30-Jun-09 7:40
kikeman30-Jun-09 7:40 
AnswerRe: SQL Server Express and Visual C# Pin
Henry Minute30-Jun-09 9:24
Henry Minute30-Jun-09 9:24 
AnswerRe: SQL Server Express and Visual C# Pin
Niladri_Biswas28-Jun-09 16:53
Niladri_Biswas28-Jun-09 16:53 
QuestionConversion failed when converting datetime from character string Pin
piticcotoc27-Jun-09 21:13
piticcotoc27-Jun-09 21:13 

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.