Click here to Skip to main content
15,900,325 members
Home / Discussions / Database
   

Database

 
NewsUpdate - still not working Pin
Luis Alonso Ramos11-Jan-06 15:00
Luis Alonso Ramos11-Jan-06 15:00 
GeneralRe: Update - still not working Pin
nguyenvhn11-Jan-06 21:25
nguyenvhn11-Jan-06 21:25 
AnswerRe: Update - still not working Pin
Luis Alonso Ramos12-Jan-06 6:48
Luis Alonso Ramos12-Jan-06 6:48 
QuestionI cannot update the Data grid fields for the following example: Pin
kenn_rosie10-Jan-06 6:44
kenn_rosie10-Jan-06 6:44 
QuestionODBC - Getting table names ? Pin
Weckmann10-Jan-06 1:50
Weckmann10-Jan-06 1:50 
Question24hr Time Format Pin
tadhg889-Jan-06 23:56
tadhg889-Jan-06 23:56 
AnswerRe: 24hr Time Format Pin
Colin Angus Mackay10-Jan-06 0:19
Colin Angus Mackay10-Jan-06 0:19 
GeneralRe: 24hr Time Format Pin
tadhg8810-Jan-06 1:15
tadhg8810-Jan-06 1:15 
QuestionHelp for sql query(joins) Pin
rs_net9-Jan-06 18:20
rs_net9-Jan-06 18:20 
AnswerRe: Help for sql query(joins) Pin
Colin Angus Mackay9-Jan-06 20:52
Colin Angus Mackay9-Jan-06 20:52 
QuestionWhy the ODP.NET could not be installed? Pin
rushing9-Jan-06 15:25
rushing9-Jan-06 15:25 
QuestionSQL Server DataAdapter Pin
thebison9-Jan-06 10:02
thebison9-Jan-06 10:02 
QuestionRunning SQL server 2000 & 2005 side by side Pin
Tiger4569-Jan-06 1:00
Tiger4569-Jan-06 1:00 
AnswerRe: Running SQL server 2000 & 2005 side by side Pin
Colin Angus Mackay9-Jan-06 1:12
Colin Angus Mackay9-Jan-06 1:12 
GeneralRe: Running SQL server 2000 & 2005 side by side Pin
Tiger4569-Jan-06 1:46
Tiger4569-Jan-06 1:46 
GeneralRe: Running SQL server 2000 & 2005 side by side Pin
Colin Angus Mackay9-Jan-06 20:57
Colin Angus Mackay9-Jan-06 20:57 
GeneralRe: Running SQL server 2000 & 2005 side by side Pin
Tiger45610-Jan-06 17:24
Tiger45610-Jan-06 17:24 
GeneralRe: Running SQL server 2000 & 2005 side by side Pin
Colin Angus Mackay10-Jan-06 20:41
Colin Angus Mackay10-Jan-06 20:41 
GeneralRe: Running SQL server 2000 & 2005 side by side Pin
dl4gbe12-Jan-06 2:48
dl4gbe12-Jan-06 2:48 
QuestionRemote SQL Database Pin
HakunaMatada9-Jan-06 0:26
HakunaMatada9-Jan-06 0:26 
AnswerRe: Remote SQL Database Pin
Colin Angus Mackay9-Jan-06 1:14
Colin Angus Mackay9-Jan-06 1:14 
Questionsql: count product's item, how about the zero item? Pin
zrocb818-Jan-06 12:27
zrocb818-Jan-06 12:27 
Hi, everyone. Need help here. Let's straight to question:

I have 2 tables:
tb1 -- productID, productDescription
tb2 -- productID, itemID, itemDescription......blabla

In my tb1:
productID | productDescription
-------------------------------
HAD | Hardware
TOY | Toy
CAR | Car
STA | Stationary

and in my tb 2:
productID | itemID | itemDescription ......blabla
-------------------------------------------------
HAD | mou1 | mouse1
HAD | mou2 | mouse2
HAD | mou3 | mouse3
...
..
TOY | scar1 | small car1
TOY | scar2 | small car2
...
..
.

Assume that
there got 7 items under TOY, 18 under HAD, 18 under CAR,
and ___No Item Under STA___ <--- I have problem with this. keep reading.
--------------------------------------------------------------

i'm using MSSQL,
this is the sql command i worked so far:

select tb1.productID, count (tb2.itemID) as CountedProducts
from tb1, tb2 where
tb1.productID=tb2.productID
group by tb1.productID

/*result*/
TOY 7
HAD 18
CAR 18
/********************/

but the expected result i want is suppose to be like this
STA 0
TOY 7
HAD 18
CAR 18


anyone please help. thx.
AnswerRe: sql: count product's item, how about the zero item? Pin
nguyenvhn8-Jan-06 17:08
nguyenvhn8-Jan-06 17:08 
GeneralRe: sql: count product's item, how about the zero item? Pin
zrocb818-Jan-06 17:34
zrocb818-Jan-06 17:34 
QuestionHow can i shutdown database in oracle 10g Pin
Ta_Tee4737-Jan-06 17:26
Ta_Tee4737-Jan-06 17:26 

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.