Click here to Skip to main content
15,891,529 members
Home / Discussions / Database
   

Database

 
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 
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 
I tried it, but the result is exactly the same as my original query.

the reason i know it's wrong is because sum1 is not the same as queried from the following:
SELECT     DAY(shift.date) AS day1, 
           MONTH(shift.date) AS month1, 
           YEAR(shift.date) AS year1, 
           SUM(invoice.payment) AS sum1
FROM       shift, invoice
WHERE      shift.id = invoice.shift_id
GROUP BY DAY(shift.date), 
         MONTH(shift.date), 
         YEAR(shift.date)
ORDER BY year1, month1, day1

maybe i should specify these:
- there are many invoices in one shift (having the same shift_id)
- there are many invoice_details in one invoice (having the same invoice_id)

Please help, thanks.
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 
GeneralRe: Does this Query return results based on the output of First Query? Pin
Vimalsoft(Pty) Ltd3-May-07 22:50
professionalVimalsoft(Pty) Ltd3-May-07 22:50 
GeneralRe: Does this Query return results based on the output of First Query? Pin
Arun.Immanuel3-May-07 23:37
Arun.Immanuel3-May-07 23:37 

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.