Author | Topic |
Location: Sydney
Registered: July 2002
|
Re: HELP! SQL Query for Uni...
|
Thu, 30 October 2003 05:53
|
|
ehendrikd wrote on Tue, 28 October 2003 17:06 | select repairlog.*, technicians.chargeperhour from technicians, (select * from pcdetails, repairlog where pcdetails.pc_id = repairlog.pc_id) where technicians.technicians_id = repairlog.technicians_id
|
You didn't format it nicely
I don't think you need another select though (and why are you selecting *?), your not assigning the values to anything.
I think the whole inner statement is in the wrong spot. I think it should be after the where clause.
You havn't got a from for repairlog in your first select statement
I don't know what database its written for and don't think it will work.
SQL is relative to the database its to be run on, so your code (and my code) could run on some databases and not on others.
|
|
|
| Subject | Poster | Date |
|
HELP! SQL Query for Uni...
|
ZZT231 | Tue, 28 October 2003 03:24 |
|
Re: HELP! SQL Query for Uni...
|
ehendrikd | Tue, 28 October 2003 06:06 |
|
Re: HELP! SQL Query for Uni...
|
SupraPete | Thu, 30 October 2003 05:53 |
|
Re: HELP! SQL Query for Uni...
|
Nark | Tue, 28 October 2003 09:40 |
|
Re: HELP! SQL Query for Uni...
|
ZZT231 | Tue, 28 October 2003 21:35 |
|
Re: HELP! SQL Query for Uni...
|
ZZT231 | Tue, 28 October 2003 21:38 |
|
Re: HELP! SQL Query for Uni...
|
SupraPete | Tue, 28 October 2003 23:55 |
|
Re: HELP! SQL Query for Uni...
|
ZZT231 | Wed, 29 October 2003 06:14 |
|
Re: HELP! SQL Query for Uni...
|
SupraPete | Wed, 29 October 2003 06:45 |
|
Re: HELP! SQL Query for Uni...
|
gtman | Thu, 30 October 2003 02:41 |
|
Re: HELP! SQL Query for Uni...
|
SupraPete | Thu, 30 October 2003 02:49 |
|
Re: HELP! SQL Query for Uni...
|
ehendrikd | Thu, 30 October 2003 05:32 |