Click here to Skip to main content
15,888,967 members
Home / Discussions / Database
   

Database

 
QuestionCURSOR bad in Oracle and MySQL as well? Pin
devvvy18-Apr-09 22:33
devvvy18-Apr-09 22:33 
AnswerRe: CURSOR bad in Oracle and MySQL as well? Pin
Colin Angus Mackay18-Apr-09 22:44
Colin Angus Mackay18-Apr-09 22:44 
GeneralRe: CURSOR bad in Oracle and MySQL as well? Pin
devvvy18-Apr-09 22:45
devvvy18-Apr-09 22:45 
GeneralRe: CURSOR bad in Oracle and MySQL as well? Pin
N a v a n e e t h20-Apr-09 17:08
N a v a n e e t h20-Apr-09 17:08 
QuestionQuery Problem ( INNER JOIN) Pin
mrkeivan18-Apr-09 0:24
mrkeivan18-Apr-09 0:24 
AnswerRe: Query Problem ( INNER JOIN) Pin
Mycroft Holmes18-Apr-09 2:21
professionalMycroft Holmes18-Apr-09 2:21 
AnswerRe: Query Problem ( INNER JOIN) Pin
Syed Mehroz Alam18-Apr-09 19:26
Syed Mehroz Alam18-Apr-09 19:26 
AnswerRe: Query Problem ( INNER JOIN) Pin
Ben Fair21-Apr-09 11:08
Ben Fair21-Apr-09 11:08 
Actually, I think you'd want to use two LEFT OUTER JOINS, as you'll want to return a match on FunctionID1 or FunctionID2 (unless I've read this all incorrectly):

select M.MID, M.MName, F1.FName [F1Name], F2.FName [F2Name]
  from Materials M
  left outer join Functions F1 on F1.FID = M.Function1ID
  left outer join Functions F2 on F2.FID = M.Function2ID
 where F1.FID is not null or F2.FID is not null


The WHERE clause will elimitate records where neither the Function1ID nor Function2ID match the input value. And the double LEFT OUTER JOINs will cause records where either the Function1ID or Function2ID match the supplied input value to be pulled.

Hope in one hand and poop in the other; see which fills up first. Hope and change were good slogans, now show us more than words.

QuestionInsert Trigger for Updating Count of One Column Into Another Column. Pin
VikashGohil17-Apr-09 20:54
VikashGohil17-Apr-09 20:54 
AnswerRe: Insert Trigger for Updating Count of One Column Into Another Column. Pin
Eddy Vluggen18-Apr-09 0:57
professionalEddy Vluggen18-Apr-09 0:57 
AnswerRe: Insert Trigger for Updating Count of One Column Into Another Column. Pin
Mycroft Holmes18-Apr-09 2:25
professionalMycroft Holmes18-Apr-09 2:25 
AnswerRe: Insert Trigger for Updating Count of One Column Into Another Column. Pin
Le centriste23-Apr-09 9:24
Le centriste23-Apr-09 9:24 
QuestionSQL Server convert Pin
sasan5617-Apr-09 7:21
sasan5617-Apr-09 7:21 
AnswerRe: SQL Server convert Pin
Henry Minute17-Apr-09 8:37
Henry Minute17-Apr-09 8:37 
QuestionE-R Diagram Draw Help PLS Pin
LostChip17-Apr-09 6:17
LostChip17-Apr-09 6:17 
AnswerRe: E-R Diagram Draw Help PLS Pin
riced17-Apr-09 6:31
riced17-Apr-09 6:31 
QuestionQuery HElppp.....!!!!! Pin
Marla Sukesh16-Apr-09 23:50
professional Marla Sukesh16-Apr-09 23:50 
AnswerRe: Query HElppp.....!!!!! Pin
Rajesh Anuhya17-Apr-09 0:08
professionalRajesh Anuhya17-Apr-09 0:08 
GeneralRe: Query HElppp.....!!!!! Pin
Marla Sukesh17-Apr-09 0:14
professional Marla Sukesh17-Apr-09 0:14 
GeneralRe: Query HElppp.....!!!!! Pin
Rajesh Anuhya17-Apr-09 0:24
professionalRajesh Anuhya17-Apr-09 0:24 
GeneralRe: Query HElppp.....!!!!! Pin
Marla Sukesh17-Apr-09 1:02
professional Marla Sukesh17-Apr-09 1:02 
GeneralRe: Query HElppp.....!!!!! Pin
Rajesh Anuhya17-Apr-09 1:18
professionalRajesh Anuhya17-Apr-09 1:18 
AnswerRe: Query HElppp.....!!!!! Pin
Marla Sukesh17-Apr-09 1:27
professional Marla Sukesh17-Apr-09 1:27 
AnswerRe: Query HElppp.....!!!!! Pin
Luc Pattyn17-Apr-09 2:14
sitebuilderLuc Pattyn17-Apr-09 2:14 
QuestionProblem with Identity Specification in SQL Server 2008 Pin
Krishnraj16-Apr-09 21:06
Krishnraj16-Apr-09 21: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.