Find Jobs
Hire Freelancers

An SQL statement for Mysql database required

£10-20 GBP

Completed
Posted almost 3 years ago

£10-20 GBP

Paid on delivery
Two mysql tables: Part, Part Association Part attributes: id, name, type Part Association attributes: child_part_id, parent_part_id (i.e. Part has two one-to-many relationships with Part Association) Sample values:- Part: [id, type] 1,A; 2,A; 3,A; 4,A; 5,A; 6,B; 7,B; 8,B; 9,C; 10,C; 11,D. Part Association: [child_part_id, parent_part_id] 1,6; 2,9; 3,6; 3,9; 4,7; 5,11; 7,9; 10,1; 10,5. I want sql to return all parts which are of a specific type ($firsttype) but which are not related to another part which is of another specified type ($secondtype). Example (1), for: $firsttype='A', $secondtype='B' Result should be Part id's: 2, 5. That is parts 2 and 5 are of type 'A' but are not related to any part of type B. Example (2), for: $firsttype='A', $secondtype='C' Result should be Part id's: 1, 4, 5. That is parts 1, 4 and 5 are of type 'A' but are not related to any part of type C. Example (3), for: $firsttype='B', $secondtype='C' Result should be Part id's: 6, 8. That is parts 6 and 8 are of type 'B' but are not related to any part of type C.
Project ID: 30567041

About the project

3 proposals
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi there, I am PHP web developer having worked with SQL databases. I can perform this task. Let me know if you are interested. Thanks.
£10 GBP in 1 day
5.0 (5 reviews)
2.2
2.2
3 freelancers are bidding on average £15 GBP for this job
User Avatar
Hello, I am an expert in MySql with an experience of 7+ years in it. I can solve your database error after discussing with you start work on it. Looking forward to discuss with you in detail and start work on it. Thank you
£20 GBP in 1 day
5.0 (3 reviews)
2.3
2.3
User Avatar
Hello. Thanks for your posting. My focus point is to give best results which is above the clients expectation. I am a professional engineer with 8+ years experiences SQL I am a skilled programmer who able to learn and adapt quickly to new technologies. Also If you complete your task from me ,you can be enchanted about result from my end. Best regards.
£15 GBP in 1 day
5.0 (1 review)
0.8
0.8

About the client

Flag of UNITED KINGDOM
Lincoln, United Kingdom
5.0
1
Payment method verified
Member since May 24, 2021

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.