Click here to Skip to main content
16,006,440 members
Home / Discussions / Database
   

Database

 
AnswerRe: Fulltext catalog not populating? Pin
Nirosh6-May-07 4:48
professionalNirosh6-May-07 4:48 
QuestionHow robust the SQL Server 2005 is..? Pin
Nirosh5-May-07 8:50
professionalNirosh5-May-07 8:50 
Questionhow to insert unicode character into SQL server 2005 from c# Pin
rehab14-May-07 22:00
rehab14-May-07 22:00 
AnswerRe: how to insert unicode character into SQL server 2005 from c# Pin
Hesham Amin4-May-07 22:29
Hesham Amin4-May-07 22:29 
AnswerRe: how to insert unicode character into SQL server 2005 from c# Pin
Colin Angus Mackay4-May-07 22:30
Colin Angus Mackay4-May-07 22:30 
AnswerRe: how to insert unicode character into SQL server 2005 from c# Pin
subai5-May-07 4:18
subai5-May-07 4:18 
GeneralRe: how to insert unicode character into SQL server 2005 from c# Pin
Software_Guy_1236-May-07 2:58
Software_Guy_1236-May-07 2:58 
QuestionIncorrect query result onINNER JOINS over three tables Pin
Joe Smith IX4-May-07 17:21
Joe Smith IX4-May-07 17:21 
Hi, I have 3 tables below. How can I query total payment and prod_principal group by date?
This is what I have, but it results incorrect, why? Help please, anyone? Thanks.

SELECT    DAY(shift.date) AS day1, 
          MONTH(shift.date) AS month1, 
          YEAR(shift.date) AS year1, 
          SUM(invoice.payment) AS sum1, 
          SUM(invoice_details.prod_principal) AS sum2
FROM      shift INNER JOIN
            invoice ON shift.id = invoice.shift_id INNER JOIN
            invoice_details ON invoice.id = invoice_details.invoice_id
GROUP BY DAY(shift.date), MONTH(shift.date), YEAR(shift.date)
ORDER BY year1, month1, day1

shift   invoice    invoice_details
-----   --------   ---------------
id      id         invoice_id
date    shift_id   prod_id
        payment    prod_principal

AnswerRe: Incorrect query result onINNER JOINS over three tables Pin
Arun.Immanuel4-May-07 20:25
Arun.Immanuel4-May-07 20:25 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Joe Smith IX5-May-07 0:45
Joe Smith IX5-May-07 0:45 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Arun.Immanuel5-May-07 1:07
Arun.Immanuel5-May-07 1:07 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Joe Smith IX5-May-07 2:04
Joe Smith IX5-May-07 2:04 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Arun.Immanuel5-May-07 2:29
Arun.Immanuel5-May-07 2:29 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Joe Smith IX5-May-07 4:42
Joe Smith IX5-May-07 4:42 
QuestionXPO vs SQL Statement or Persistent Object VS SQL Pin
mfcuser4-May-07 8:01
mfcuser4-May-07 8:01 
AnswerRe: XPO vs SQL Statement or Persistent Object VS SQL Pin
Kevin McFarlane5-May-07 5:19
Kevin McFarlane5-May-07 5:19 
QuestionSyntax error converting datetime from character string. Pin
rujuc#4-May-07 0:57
rujuc#4-May-07 0:57 
AnswerRe: Syntax error converting datetime from character string. Pin
Marek Grzenkowicz4-May-07 1:07
Marek Grzenkowicz4-May-07 1:07 
AnswerRe: Syntax error converting datetime from character string. Pin
szukuro4-May-07 1:09
szukuro4-May-07 1:09 
GeneralRe: Syntax error converting datetime from character string. Pin
rujuc#4-May-07 2:22
rujuc#4-May-07 2:22 
GeneralRe: Syntax error converting datetime from character string. Pin
szukuro4-May-07 2:50
szukuro4-May-07 2:50 
Questiondownload Pin
lakkudavanam3-May-07 22:39
lakkudavanam3-May-07 22:39 
AnswerRe: download Pin
Hesham Amin4-May-07 21:54
Hesham Amin4-May-07 21:54 
QuestionDoes this Query return results based on the output of First Query? Pin
Vimalsoft(Pty) Ltd3-May-07 22:13
professionalVimalsoft(Pty) Ltd3-May-07 22:13 
AnswerRe: Does this Query return results based on the output of First Query? Pin
Arun.Immanuel3-May-07 22:35
Arun.Immanuel3-May-07 22:35 

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.