Click here to Skip to main content
16,005,467 members
Home / Discussions / Database
   

Database

 
Questioncatching sql exception type Pin
DownBySpj18-Oct-06 21:01
DownBySpj18-Oct-06 21:01 
AnswerRe: catching sql exception type Pin
Colin Angus Mackay19-Oct-06 5:18
Colin Angus Mackay19-Oct-06 5:18 
AnswerRe: SQL error :Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.??? [help] Pin
Mike Dimmick19-Oct-06 6:51
Mike Dimmick19-Oct-06 6:51 
Questionhow to display daily sales between the date? [urgent] Pin
campbells18-Oct-06 18:58
campbells18-Oct-06 18:58 
AnswerRe: how to display daily sales between the date? [urgent] Pin
Edbert P19-Oct-06 15:25
Edbert P19-Oct-06 15:25 
GeneralRe: how to display daily sales between the date? [urgent] Pin
campbells19-Oct-06 15:49
campbells19-Oct-06 15:49 
GeneralRe: how to display daily sales between the date? [urgent] Pin
Edbert P19-Oct-06 16:02
Edbert P19-Oct-06 16:02 
GeneralRe: how to display daily sales between the date? [urgent] Pin
Edbert P19-Oct-06 16:04
Edbert P19-Oct-06 16:04 
Oh. Scratch that. I forgot to delete the AS hardline and AS supermarket.
The code below should (hopefully) work Laugh | :laugh:
(Please delete the AS hardline and AS supermarket in Query2 and Query3 respectively)
SELECT Query1.bizdate, TotalSoft, TotalHard, TotalSupermarket
FROM (SELECT bizdate, SUM(totalsales+returnamt) AS TotalSoft 
        FROM tot_item
        WHERE deptcode IN (11, 12, 13, 14, 15, 16, 17)
        GROUP BY bizdate) AS Query1
LEFT JOIN (SELECT bizdate, SUM(totalsales+returnamt) AS TotalHard 
        FROM tot_item
        WHERE deptcode IN (21, 22, 23, 24, 25, 26, 27, 28, 29)
        GROUP BY bizdate) AS Query2 
ON Query1.bizdate = Query2.bizdate
LEFT JOIN (SELECT bizdate, sum(totalsales+returnamt) AS TotalSupermarket 
        FROM tot_item
        WHERE deptcode IN (30, 40, 50, 60, 70, 80, 90)
        GROUP BY bizdate) AS Query3 
ON Query1.bizdate = Query3.bizdate


"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson

"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin

Edbert
Sydney, Australia

GeneralRe: how to display daily sales between the date? [urgent] Pin
campbells19-Oct-06 16:37
campbells19-Oct-06 16:37 
Questionsqlconnection Pin
avahia18-Oct-06 17:53
avahia18-Oct-06 17:53 
QuestionError I keep getting in my vb program (ADO error) Pin
MichaelDurham18-Oct-06 10:21
MichaelDurham18-Oct-06 10:21 
AnswerRe: Error I keep getting in my vb program (ADO error) Pin
Edbert P19-Oct-06 18:41
Edbert P19-Oct-06 18:41 
GeneralRe: Error I keep getting in my vb program (ADO error) Pin
MichaelDurham24-Oct-06 8:24
MichaelDurham24-Oct-06 8:24 
QuestionSlow performance in .NET? Pin
Xiangyang Liu 刘向阳18-Oct-06 4:10
Xiangyang Liu 刘向阳18-Oct-06 4:10 
AnswerRe: Slow performance in .NET? Pin
Ed.Poore19-Oct-06 13:36
Ed.Poore19-Oct-06 13:36 
GeneralRe: Slow performance in .NET? Pin
Xiangyang Liu 刘向阳20-Oct-06 17:26
Xiangyang Liu 刘向阳20-Oct-06 17:26 
GeneralRe: Slow performance in .NET? Pin
Ed.Poore21-Oct-06 8:04
Ed.Poore21-Oct-06 8:04 
QuestionHow to increase size of database in SQL Server 2000 Pin
prakash_21017-Oct-06 23:24
prakash_21017-Oct-06 23:24 
AnswerRe: How to increase size of database in SQL Server 2000 Pin
Mairaaj Khan18-Oct-06 0:12
professionalMairaaj Khan18-Oct-06 0:12 
GeneralRe: How to increase size of database in SQL Server 2000 Pin
Jerry Hammond18-Oct-06 10:09
Jerry Hammond18-Oct-06 10:09 
QuestionUsing dataset in a client-server application Pin
baxter_dev17-Oct-06 23:11
baxter_dev17-Oct-06 23:11 
AnswerRe: Using dataset in a client-server application Pin
Colin Angus Mackay17-Oct-06 23:17
Colin Angus Mackay17-Oct-06 23:17 
GeneralRe: Using dataset in a client-server application [modified] Pin
baxter_dev17-Oct-06 23:41
baxter_dev17-Oct-06 23:41 
GeneralRe: Using dataset in a client-server application Pin
Ed.Poore19-Oct-06 13:38
Ed.Poore19-Oct-06 13:38 
QuestionHow to make DataSet transparently remoted, or proxied, or called by ref? Pin
vgrigor117-Oct-06 22:37
vgrigor117-Oct-06 22: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.