Click here to Skip to main content
15,890,186 members
Home / Discussions / Database
   

Database

 
AnswerRe: Password Protection Pin
Pete O'Hanlon22-Apr-07 23:35
mvePete O'Hanlon22-Apr-07 23:35 
QuestionProtection of database from other user Pin
Ajeet mittal23-Apr-07 21:25
Ajeet mittal23-Apr-07 21:25 
QuestionTrying to update MS Access table with datetime column in Where clasuse Pin
pnslcs22-Apr-07 12:27
pnslcs22-Apr-07 12:27 
AnswerRe: Trying to update MS Access table with datetime column in Where clasuse Pin
Colin Angus Mackay22-Apr-07 12:47
Colin Angus Mackay22-Apr-07 12:47 
GeneralRe: Trying to update MS Access table with datetime column in Where clasuse Pin
pnslcs22-Apr-07 15:20
pnslcs22-Apr-07 15:20 
GeneralSolution>>: Trying to update MS Access table with datetime column in Where clasuse Pin
pnslcs22-Apr-07 17:54
pnslcs22-Apr-07 17:54 
QuestionSqlCommandBuilder not building Pin
thecodedemon22-Apr-07 6:41
thecodedemon22-Apr-07 6:41 
QuestionHow to combine UPDATE and COUNT in a query Pin
Joe Smith IX22-Apr-07 4:14
Joe Smith IX22-Apr-07 4:14 
Hi,

Could someone please help me in this simple task.
I have two tables below. I need to set checked="ok" for those products that have no entry in [expiration date] table. Thanks in advance.

I imagine this would be something like this, but it's incorrect:
UPDATE (product as p<br />
INNER JOIN [expiration date] AS ed ON p.id=ed.product_id)<br />
SET checked='ok' WHERE (COUNT(*) FROM [expiration date] = 0)<br />
<br />
product<br />
-------<br />
id<br />
name<br />
checked<br />
<br />
expiration date<br />
---------------<br />
product_id<br />
exp_date<br />
quantity<br />

AnswerRe: How to combine UPDATE and COUNT in a query [modified] Pin
Arun.Immanuel22-Apr-07 4:34
Arun.Immanuel22-Apr-07 4:34 
AnswerRe: How to combine UPDATE and COUNT in a query Pin
kubben22-Apr-07 4:55
kubben22-Apr-07 4:55 
QuestionSyntax Error in Join Operation Pin
freefika22-Apr-07 2:51
freefika22-Apr-07 2:51 
AnswerRe: Syntax Error in Join Operation Pin
Krish - KP22-Apr-07 17:43
Krish - KP22-Apr-07 17:43 
GeneralCasts from DataReader Pin
Brady Kelly22-Apr-07 0:52
Brady Kelly22-Apr-07 0:52 
GeneralRe: Casts from DataReader Pin
xibeifeijian22-Apr-07 15:22
xibeifeijian22-Apr-07 15:22 
QuestionHow to add a column to an existing SQL database table Pin
furjaw21-Apr-07 20:29
furjaw21-Apr-07 20:29 
AnswerRe: How to add a column to an existing SQL database table Pin
kubben22-Apr-07 1:51
kubben22-Apr-07 1:51 
GeneralRe: How to add a column to an existing SQL database table Pin
Jerry Hammond22-Apr-07 4:26
Jerry Hammond22-Apr-07 4:26 
GeneralRe: How to add a column to an existing SQL database table Pin
furjaw22-Apr-07 17:27
furjaw22-Apr-07 17:27 
GeneralRe: How to add a column to an existing SQL database table Pin
furjaw22-Apr-07 18:48
furjaw22-Apr-07 18:48 
QuestionHow to query this? Pin
Arun.Immanuel21-Apr-07 18:55
Arun.Immanuel21-Apr-07 18:55 
AnswerRe: How to query this? Pin
Colin Angus Mackay21-Apr-07 23:42
Colin Angus Mackay21-Apr-07 23:42 
GeneralRe: How to query this? Pin
Arun.Immanuel21-Apr-07 23:58
Arun.Immanuel21-Apr-07 23:58 
GeneralRe: How to query this? [modified] Pin
Arun.Immanuel22-Apr-07 0:25
Arun.Immanuel22-Apr-07 0:25 
GeneralRe: How to query this? Pin
DQNOK24-Apr-07 12:03
professionalDQNOK24-Apr-07 12:03 
QuestionHow to work with manage code in the dll Pin
Romiks21-Apr-07 8:55
Romiks21-Apr-07 8:55 

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.