Click here to Skip to main content
15,886,077 members
Home / Discussions / Database
   

Database

 
QuestionOracle Store Proc Cursor across db Pin
jensenx21-Oct-08 21:05
jensenx21-Oct-08 21:05 
AnswerRe: Oracle Store Proc Cursor across db Pin
Wendelius22-Oct-08 9:58
mentorWendelius22-Oct-08 9:58 
QuestionHow to get the column sum by checking the ids Pin
annu0821-Oct-08 19:49
annu0821-Oct-08 19:49 
AnswerRe: How to get the column sum by checking the ids Pin
fsdsmart21-Oct-08 19:55
fsdsmart21-Oct-08 19:55 
GeneralRe: How to get the column sum by checking the ids Pin
annu0821-Oct-08 20:41
annu0821-Oct-08 20:41 
GeneralRe: How to get the column sum by checking the ids Pin
Ashfield21-Oct-08 21:07
Ashfield21-Oct-08 21:07 
QuestionJoin query Pin
fsdsmart21-Oct-08 19:47
fsdsmart21-Oct-08 19:47 
AnswerRe: Join query Pin
Wendelius22-Oct-08 7:53
mentorWendelius22-Oct-08 7:53 
If I understood you correctly, you're having a problem with the query because, based on your sample material, it returns 4 rows instead of 3.

If this is correct, you should use for example GROUP BY clause, but then you cannot have individual values from table2, only aggregates. So you should choose what do you want from table2. For example:
select table1.rallno,
       table1.mark,
       max(table2.refrence_name)
from   table1 left join table2 on table1.rallno=table2.rallno
group by table1.rallno,
         table1.mark


The need to optimize rises from a bad design.

My articles[^]

Questionthis script reads in remote host ip and compare ip address in an access database using asp Pin
phil666721-Oct-08 19:02
phil666721-Oct-08 19:02 
Questionwhat is a datatable Pin
joindotnet21-Oct-08 18:33
joindotnet21-Oct-08 18:33 
AnswerRe: what is a datatable Pin
Ashfield21-Oct-08 20:59
Ashfield21-Oct-08 20:59 
JokeRe: what is a datatable Pin
Wendelius22-Oct-08 7:43
mentorWendelius22-Oct-08 7:43 
Questionpivot table sqlserver Pin
foryou21-Oct-08 3:48
foryou21-Oct-08 3:48 
AnswerRe: pivot table sqlserver Pin
Wendelius21-Oct-08 7:43
mentorWendelius21-Oct-08 7:43 
QuestionHelp is needed using the MYSQl Database Pin
Rameez Raja21-Oct-08 1:39
Rameez Raja21-Oct-08 1:39 
AnswerRe: Help is needed using the MYSQl Database Pin
Ashfield21-Oct-08 5:09
Ashfield21-Oct-08 5:09 
AnswerRe: Help is needed using the MYSQl Database Pin
joindotnet21-Oct-08 20:11
joindotnet21-Oct-08 20:11 
QuestionDatabase structure Pin
5fingers21-Oct-08 1:30
5fingers21-Oct-08 1:30 
AnswerRe: Database structure Pin
SeMartens21-Oct-08 2:56
SeMartens21-Oct-08 2:56 
AnswerRe: Database structure Pin
Wendelius21-Oct-08 10:41
mentorWendelius21-Oct-08 10:41 
JokeRe: Database structure Pin
Mycroft Holmes21-Oct-08 15:00
professionalMycroft Holmes21-Oct-08 15:00 
GeneralRe: Database structure Pin
Wendelius21-Oct-08 17:48
mentorWendelius21-Oct-08 17:48 
JokeRe: Database structure Pin
Muammar©21-Oct-08 22:56
Muammar©21-Oct-08 22:56 
AnswerRe: Database structure Pin
Eddy Vluggen22-Oct-08 3:48
professionalEddy Vluggen22-Oct-08 3:48 
QuestionTable Columnms Pin
Hakmeh Mohannad21-Oct-08 1:17
Hakmeh Mohannad21-Oct-08 1:17 

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.