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

Database

 
Questionvarbinary - Consequences to saving document/pdf as binary in SQL? Alternatives? Pin
PrissySC22-Sep-13 4:00
PrissySC22-Sep-13 4:00 
AnswerRe: varbinary - Consequences to saving document/pdf as binary in SQL? Alternatives? Pin
Eddy Vluggen22-Sep-13 22:59
professionalEddy Vluggen22-Sep-13 22:59 
AnswerRe: varbinary - Consequences to saving document/pdf as binary in SQL? Alternatives? Pin
Richard Deeming23-Sep-13 2:13
mveRichard Deeming23-Sep-13 2:13 
AnswerRe: varbinary - Consequences to saving document/pdf as binary in SQL? Alternatives? Pin
jschell23-Sep-13 8:21
jschell23-Sep-13 8:21 
Questionfunction return text Pin
Member 845343722-Sep-13 1:07
Member 845343722-Sep-13 1:07 
AnswerRe: function return text Pin
susanna.floora22-Sep-13 21:17
susanna.floora22-Sep-13 21:17 
AnswerRe: function return text Pin
Richard Deeming23-Sep-13 2:09
mveRichard Deeming23-Sep-13 2:09 
Questiondisplay all cleaners using Join Pin
Jassim Rahma21-Sep-13 23:35
Jassim Rahma21-Sep-13 23:35 
Hi,

I am using the following code to populate all cleaners and display the income from every cleaner. It works fine when there is a entry for the cleaner in the job_order table but if no entry then it will not display the cleaner.

I want to display ALL cleaners even if no entry in the job_order table but of course with ZERO income.

SQL
SELECT
cleaners.cleaner_id,
cleaners.cleaner_name,
cleaners.date_of_join,
SUM(invoices.invoice_net_amount) as total_income
FROM
cleaners
INNER JOIN job_orders ON job_orders.cleaner_id = cleaners.cleaner_id
INNER JOIN invoices ON invoices.job_order_id = job_orders.job_order_id
GROUP BY
cleaners.cleaner_id
ORDER BY cleaners.cleaner_name;



Jassim
XoomPage[^]


Technology News @ www.JassimRahma.com

AnswerRe: display all cleaners using Join Pin
Eddy Vluggen22-Sep-13 0:30
professionalEddy Vluggen22-Sep-13 0:30 
GeneralRe: display all cleaners using Join Pin
Jassim Rahma22-Sep-13 0:52
Jassim Rahma22-Sep-13 0:52 
QuestionRe: display all cleaners using Join Pin
Eddy Vluggen22-Sep-13 1:18
professionalEddy Vluggen22-Sep-13 1:18 
AnswerRe: display all cleaners using Join Pin
Jassim Rahma22-Sep-13 1:24
Jassim Rahma22-Sep-13 1:24 
SuggestionRe: display all cleaners using Join Pin
Eddy Vluggen23-Sep-13 5:55
professionalEddy Vluggen23-Sep-13 5:55 
AnswerRe: display all cleaners using Join Pin
Bernhard Hiller22-Sep-13 21:56
Bernhard Hiller22-Sep-13 21:56 
AnswerRe: display all cleaners using Join Pin
David Mujica23-Sep-13 3:01
David Mujica23-Sep-13 3:01 
QuestionmySql server host error Pin
George Tsiga21-Sep-13 6:17
George Tsiga21-Sep-13 6:17 
AnswerRe: mySql server host error Pin
Eddy Vluggen22-Sep-13 0:30
professionalEddy Vluggen22-Sep-13 0:30 
GeneralRe: mySql server host error Pin
George Tsiga22-Sep-13 1:03
George Tsiga22-Sep-13 1:03 
QuestionQuestion about schema? Pin
Super Lloyd18-Sep-13 14:32
Super Lloyd18-Sep-13 14:32 
AnswerRe: Question about schema? Pin
Mycroft Holmes18-Sep-13 15:36
professionalMycroft Holmes18-Sep-13 15:36 
AnswerRe: Question about schema? Pin
Jörgen Andersson18-Sep-13 20:37
professionalJörgen Andersson18-Sep-13 20:37 
AnswerRe: Question about schema? Pin
RedDk19-Sep-13 7:27
RedDk19-Sep-13 7:27 
AnswerRe: Question about schema? Pin
jschell19-Sep-13 11:28
jschell19-Sep-13 11:28 
QuestionSql Query Pin
Srinivas Uttareshwar16-Sep-13 23:02
Srinivas Uttareshwar16-Sep-13 23:02 
AnswerRe: Sql Query Pin
Simon_Whale17-Sep-13 0:22
Simon_Whale17-Sep-13 0:22 

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.