Click here to Skip to main content
15,892,161 members
Home / Discussions / Database
   

Database

 
Question"Lazy Spool" problem Pin
Bernhard Hiller17-Nov-11 1:00
Bernhard Hiller17-Nov-11 1:00 
AnswerRe: "Lazy Spool" problem Pin
R. Giskard Reventlov17-Nov-11 1:47
R. Giskard Reventlov17-Nov-11 1:47 
JokeRe: "Lazy Spool" problem Pin
Bernhard Hiller18-Nov-11 0:46
Bernhard Hiller18-Nov-11 0:46 
AnswerRe: "Lazy Spool" problem Pin
Jörgen Andersson17-Nov-11 3:45
professionalJörgen Andersson17-Nov-11 3:45 
GeneralRe: "Lazy Spool" problem Pin
Bernhard Hiller18-Nov-11 0:47
Bernhard Hiller18-Nov-11 0:47 
QuestionDatabase Mail 2008 problem Pin
Falconapollo16-Nov-11 22:49
Falconapollo16-Nov-11 22:49 
AnswerRe: Database Mail 2008 problem Pin
Mycroft Holmes16-Nov-11 23:15
professionalMycroft Holmes16-Nov-11 23:15 
QuestionNeed help...asp.net count sql.. Pin
mat daus16-Nov-11 21:33
mat daus16-Nov-11 21:33 
im very new to asp.net.
i develop a website for e-commerce..now i developing a page to display the statistic of the product that bought by costumer..
here is my database structure..
Table Product-ProductID,ProductName,Description
Table Transaction-TransactionID,User,ProductID,Quantity

-in table Transaction, i store the product that bought by user with user name and quantity.
-table product, store the information about product

-this is my data, assume Bag ProductID=1 and Pencil ProductID=1 in table transaction..
-for table transaction:
TransactionID | User | ProductID | Quantity
1             | ali  | 1         | 2
1             | abu  | 2         | 3
1             | qwe  | 1         | 5

i want make a statistic about the product that bought by users..
im using this Select query= "SELECT Product.ProductName, COUNT(Transaction.ProductID) AS ProductCount FROM Product INNER JOIN Transaction ON Product.ProductID = Transaction.ProductID GROUP BY Product.ProductName"

when using this query the result is,
ProductName | ProductCount
Bag         | 2
Pencil      | 1

i just want my result shown like i stated below..but i dont know how to do it..
ProductName | ProductCount
Bag         | 7
Pencil      | 3

please help me....

AnswerRe: Need help...asp.net count sql.. Pin
Mycroft Holmes16-Nov-11 21:43
professionalMycroft Holmes16-Nov-11 21:43 
GeneralRe: Need help...asp.net count sql.. Pin
mat daus16-Nov-11 21:51
mat daus16-Nov-11 21:51 
GeneralRe: Need help...asp.net count sql.. Pin
Mycroft Holmes16-Nov-11 23:12
professionalMycroft Holmes16-Nov-11 23:12 
GeneralRe: Need help...asp.net count sql.. Pin
mat daus16-Nov-11 21:58
mat daus16-Nov-11 21:58 
QuestionError in sql command when using ado in VC++ and unicode Pin
mazen keeikati16-Nov-11 11:06
professionalmazen keeikati16-Nov-11 11:06 
QuestionError in sql command when using ado in VC++ and unicode Pin
mazen keeikati16-Nov-11 11:05
professionalmazen keeikati16-Nov-11 11:05 
AnswerRe: Error in sql command when using ado in VC++ and unicode Pin
Mycroft Holmes16-Nov-11 13:40
professionalMycroft Holmes16-Nov-11 13:40 
GeneralRe: Error in sql command when using ado in VC++ and unicode Pin
mazen keeikati17-Nov-11 9:20
professionalmazen keeikati17-Nov-11 9:20 
AnswerRe: Error in sql command when using ado in VC++ and unicode Pin
Luc Pattyn17-Nov-11 9:28
sitebuilderLuc Pattyn17-Nov-11 9:28 
QuestionTrying My First DataGridView Project Pin
Roger Wright15-Nov-11 20:26
professionalRoger Wright15-Nov-11 20:26 
AnswerRe: Trying My First DataGridView Project Pin
thatraja15-Nov-11 21:05
professionalthatraja15-Nov-11 21:05 
GeneralRe: Trying My First DataGridView Project Pin
Roger Wright16-Nov-11 5:09
professionalRoger Wright16-Nov-11 5:09 
AnswerRe: Trying My First DataGridView Project Pin
Wayne Gaylard16-Nov-11 17:55
professionalWayne Gaylard16-Nov-11 17:55 
GeneralRe: Trying My First DataGridView Project Pin
Roger Wright16-Nov-11 18:18
professionalRoger Wright16-Nov-11 18:18 
GeneralRe: Trying My First DataGridView Project Pin
Wayne Gaylard16-Nov-11 18:24
professionalWayne Gaylard16-Nov-11 18:24 
QuestionALTER TABLE gives error after INSERT INTO in same table? Pin
Le@rner14-Nov-11 17:10
Le@rner14-Nov-11 17:10 
AnswerRe: ALTER TABLE gives error after INSERT INTO in same table? Pin
_Damian S_14-Nov-11 17:19
professional_Damian S_14-Nov-11 17:19 

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.