Toymods Car Club
www.toymods.org.au
F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Members Members    Search Search
Toymods » The Outhouse » HELP! SQL Query for Uni...

Show: Today's Posts  :: Show Polls 
Email to friend 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
SupraPete
Forums Junkie


Location:
Sydney
Registered:
July 2002
   
icon13.gif  Re: HELP! SQL Query for Uni... Thu, 30 October 2003 05:53 Go to previous messageGo to previous message
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 Mad Smile

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.

  Send a private message to this user    

SubjectPosterDate
Read Message   HELP! SQL Query for Uni... ZZT231Tue, 28 October 2003 03:24
Read Message   Re: HELP! SQL Query for Uni... ehendrikdTue, 28 October 2003 06:06
Read Message   Re: HELP! SQL Query for Uni...  SupraPeteThu, 30 October 2003 05:53
Read Message   Re: HELP! SQL Query for Uni... NarkTue, 28 October 2003 09:40
Read Message   Re: HELP! SQL Query for Uni... ZZT231Tue, 28 October 2003 21:35
Read Message   Re: HELP! SQL Query for Uni... ZZT231Tue, 28 October 2003 21:38
Read Message   Re: HELP! SQL Query for Uni... SupraPeteTue, 28 October 2003 23:55
Read Message   Re: HELP! SQL Query for Uni... ZZT231Wed, 29 October 2003 06:14
Read Message   Re: HELP! SQL Query for Uni... SupraPeteWed, 29 October 2003 06:45
Read Message   Re: HELP! SQL Query for Uni... gtmanThu, 30 October 2003 02:41
Read Message   Re: HELP! SQL Query for Uni... SupraPeteThu, 30 October 2003 02:49
Read Message   Re: HELP! SQL Query for Uni... ehendrikdThu, 30 October 2003 05:32
Previous Topic:Who went to the ministry of sound tour
Next Topic:Rugby World Cup

Goto Forum:
-=] Back to Top [=-

Current Time: Sun Dec 22 13:52:03 UTC 2024

Total time taken to generate the page: 0.0068929195404053 seconds

Bandwidth utilization bar

.:: Contact :: Home ::.

Powered by: FUDforum 2.3.8
Copyright ©2001-2003 Advanced Internet Designs Inc.