Click here to Skip to main content
15,911,896 members
Home / Discussions / Database
   

Database

 
JokeRe: writing a scalar-function Pin
Mycroft Holmes9-Aug-10 16:28
professionalMycroft Holmes9-Aug-10 16:28 
GeneralRe: writing a scalar-function Pin
PIEBALDconsult9-Aug-10 16:48
mvePIEBALDconsult9-Aug-10 16:48 
GeneralRe: writing a scalar-function Pin
Mycroft Holmes9-Aug-10 17:01
professionalMycroft Holmes9-Aug-10 17:01 
GeneralRe: writing a scalar-function Pin
PIEBALDconsult9-Aug-10 17:25
mvePIEBALDconsult9-Aug-10 17:25 
Questionhow to execute stored procedure in a function using sql server 2000 Pin
developerit8-Aug-10 1:15
developerit8-Aug-10 1:15 
AnswerRe: how to execute stored procedure in a function using sql server 2000 Pin
The Digital Worm11-Aug-10 2:17
The Digital Worm11-Aug-10 2:17 
Questionquery optimization Pin
pstsp9117-Aug-10 13:07
pstsp9117-Aug-10 13:07 
AnswerRe: query optimization Pin
Mycroft Holmes8-Aug-10 2:04
professionalMycroft Holmes8-Aug-10 2:04 
There are a number of ways to get this data, I would probably use two left joins and a sum on a case statement based on the id in the seller/buyer fields. You would need to create the alternative queries and run them through the profiler to evaluate the performance.

Performance is more likely to be improved by adding an index to the buyer and seller id fields on the orders table.
Never underestimate the power of human stupidity
RAH

AnswerRe: query optimization Pin
PIEBALDconsult9-Aug-10 17:21
mvePIEBALDconsult9-Aug-10 17:21 
Question0x00 byte problem while storing binary data to MySQL BLOB via ODBC (C API) Pin
whitesail7-Aug-10 2:24
whitesail7-Aug-10 2:24 
AnswerRe: 0x00 byte problem while storing binary data to MySQL BLOB via ODBC (C API) Pin
Blue_Boy7-Aug-10 5:07
Blue_Boy7-Aug-10 5:07 
GeneralRe: 0x00 byte problem while storing binary data to MySQL BLOB via ODBC (C API) Pin
whitesail7-Aug-10 11:00
whitesail7-Aug-10 11:00 
QuestionCommon Data validation best practice SQL & .Net? Pin
billyjoesunday6-Aug-10 4:54
billyjoesunday6-Aug-10 4:54 
AnswerRe: Common Data validation best practice SQL & .Net? Pin
Mycroft Holmes7-Aug-10 0:39
professionalMycroft Holmes7-Aug-10 0:39 
GeneralRe: Common Data validation best practice SQL & .Net? Pin
billyjoesunday12-Aug-10 5:00
billyjoesunday12-Aug-10 5:00 
GeneralRe: Common Data validation best practice SQL & .Net? Pin
Mycroft Holmes12-Aug-10 12:17
professionalMycroft Holmes12-Aug-10 12:17 
QuestionHow to insert values in to one table, data from two different tables? Pin
sarala.s6-Aug-10 2:15
sarala.s6-Aug-10 2:15 
AnswerRe: How to insert values in to one table, data from two different tables? Pin
thatraja6-Aug-10 2:27
professionalthatraja6-Aug-10 2:27 
AnswerRe: How to insert values in to one table, data from two different tables? Pin
Blue_Boy6-Aug-10 2:32
Blue_Boy6-Aug-10 2:32 
QuestionRe: How to insert values in to one table, data from two different tables? Pin
lovejun7-Aug-10 22:54
lovejun7-Aug-10 22:54 
AnswerRe: How to insert values in to one table, data from two different tables? Pin
Blue_Boy8-Aug-10 6:17
Blue_Boy8-Aug-10 6:17 
Questionsql function Pin
Thanusree Duth5-Aug-10 19:27
Thanusree Duth5-Aug-10 19:27 
AnswerRe: sql function Pin
Blue_Boy6-Aug-10 1:06
Blue_Boy6-Aug-10 1:06 
QuestionCalling Executables from CLR Procedure Pin
Shahzad.Aslam5-Aug-10 6:18
Shahzad.Aslam5-Aug-10 6:18 
QuestionGet Names from Id Pin
SatyaKeerthi155-Aug-10 0:25
SatyaKeerthi155-Aug-10 0:25 

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.