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
   
Re: HELP! SQL Query for Uni... Tue, 28 October 2003 23:55 Go to previous messageGo to previous message
how do you do an inner join in "Standard SQL"? I can write it in sql for oracle.

also, always structure your SQL statements nicely. Start the Select/from/where/and on a new line.


SELECT RepairLog.*, Techicians.chargeperhour
FROM Techicians, RepairLog, PCDetails
WHERE RepairLog.technicians_id = Technicians.technicians_id
AND PcDetails.pc_id &= RepairLog.pc_id

note: some databases use *= or other ways defining innner joins.

I don't understand the statement though as why are you inner joining PCDetails if your not using it to link to another table and your not using any of the details in there. Is it just selecting the ones that actually have some PCDetails? If so then the above statement should work (without a database to test it on who knows??).
  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:29:13 UTC 2024

Total time taken to generate the page: 0.0044519901275635 seconds

Bandwidth utilization bar

.:: Contact :: Home ::.

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