Click here to Skip to main content
15,896,111 members
Home / Discussions / Database
   

Database

 
GeneralRe: Issue with Testing result of SQL SELECT Pin
Hesham Amin21-Feb-08 22:33
Hesham Amin21-Feb-08 22:33 
GeneralPlease, Someone help me to solve this problem as soon as possible!!! Pin
yunussheikh200721-Feb-08 6:48
yunussheikh200721-Feb-08 6:48 
GeneralRe: Please, Someone help me to solve this problem as soon as possible!!! Pin
Hesham Amin21-Feb-08 9:51
Hesham Amin21-Feb-08 9:51 
GeneralRe: Please, Someone help me to solve this problem as soon as possible!!! Pin
Christian Graus21-Feb-08 16:14
protectorChristian Graus21-Feb-08 16:14 
GeneralRe: Please, Someone help me to solve this problem as soon as possible!!! Pin
ChandraRam25-Feb-08 0:59
ChandraRam25-Feb-08 0:59 
GeneralCeating Trigger Pin
kibromg21-Feb-08 6:24
kibromg21-Feb-08 6:24 
GeneralRe: Ceating Trigger Pin
Hesham Amin21-Feb-08 9:40
Hesham Amin21-Feb-08 9:40 
QuestionUpdate with two tables, a correlated subquery? Pin
Ben Dessau21-Feb-08 5:06
Ben Dessau21-Feb-08 5:06 
I have a SQL question if any of you have time:

I want to do an update using two tables. I used to know how to do this but I've forgotten.

Put simply I havw two tables, Cars and UnMatched

Cars:
ModelCode number (Primary Key)
FuelType text

UnMatched:
ID number (Primary Key)
FuelType text

Cars has lots of rows, Unmatched has less.

I want to update Cars setting the FuelType to the value of FuelType in Unmatched, where the ModelCode in Cars = the ID in UnMatched.

So for example if Cars had the following Rows:

10 ""
11 ""
12 ""
13 ""

And UnMatched had these rows
11 "PETROL"
13 "DIESEL"
14 "HYBRID"

You'd end up with Cars being

10 ""
11 "PETROL"
12 ""
13 "DIESEL"


I know it's some kind of correlated subquery but I can't remember what it is.

This is on an Access database but I'd imagine it would be the same on others.

Thanks - Ben
AnswerRe: Update with two tables, a correlated subquery? Pin
Mike Dimmick22-Feb-08 1:09
Mike Dimmick22-Feb-08 1:09 
Questionhow to convert char to time Pin
Sachin Pimpale20-Feb-08 23:09
Sachin Pimpale20-Feb-08 23:09 
AnswerRe: how to convert char to time Pin
Hesham Amin21-Feb-08 9:50
Hesham Amin21-Feb-08 9:50 
GeneralSql Pin
senthilsstil20-Feb-08 21:19
senthilsstil20-Feb-08 21:19 
GeneralRe: Sql Pin
Hesham Amin21-Feb-08 9:35
Hesham Amin21-Feb-08 9:35 
GeneralRe: Sql Pin
Dave Kreskowiak21-Feb-08 9:44
mveDave Kreskowiak21-Feb-08 9:44 
QuestionHow do I update records in one table with values supplied by another. Pin
Steven J Jowett20-Feb-08 6:09
Steven J Jowett20-Feb-08 6:09 
AnswerRe: How do I update records in one table with values supplied by another. Pin
GuyThiebaut20-Feb-08 13:29
professionalGuyThiebaut20-Feb-08 13:29 
GeneralRe: How do I update records in one table with values supplied by another. Pin
Steven J Jowett22-Feb-08 2:39
Steven J Jowett22-Feb-08 2:39 
GeneralRe: How do I update records in one table with values supplied by another. Pin
GuyThiebaut22-Feb-08 2:51
professionalGuyThiebaut22-Feb-08 2:51 
GeneralGet Monday Function Pin
Lash2020-Feb-08 4:56
Lash2020-Feb-08 4:56 
AnswerRe: Get Monday Function Pin
Lash2020-Feb-08 6:24
Lash2020-Feb-08 6:24 
GeneralRe: Get Monday Function Pin
Steven J Jowett20-Feb-08 6:32
Steven J Jowett20-Feb-08 6:32 
Generalhi Pin
mon***z20-Feb-08 2:12
mon***z20-Feb-08 2:12 
GeneralRe: hi Pin
Steven J Jowett20-Feb-08 4:41
Steven J Jowett20-Feb-08 4:41 
GeneralRe: hi Pin
Sandeep Kumar21-Feb-08 3:40
Sandeep Kumar21-Feb-08 3:40 
GeneralRe: hi Pin
Karrar Ketawi21-Feb-08 22:57
Karrar Ketawi21-Feb-08 22:57 

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.