Find Jobs
Hire Freelancers

SQL Statement Needed.

$30-5000 USD

Ολοκληρώθηκε
Αναρτήθηκε πάνω από 20 χρόνια πριν

$30-5000 USD

Πληρωμή κατά την παράδοση
Enclosed is a sample database. The problem is there is a SQL Statement I cannot get to work right The statement I was trying to make is this select [login to view URL] from inventory a, additionalinfo b where a.id=[login to view URL] and min([login to view URL])>'1975' and max([login to view URL])<'1975' and b.make=10 and a.whatpart=1 group by [login to view URL] In this case, it should select at least one because 1975 is after 1968 which is the minimum of the earliest year possible. Plus 1983 is less then 1985 which is the maximum year possible. However, when I try to use the max or min in the where clause, I get an error. It says a subquery is necessary. I need the statement modified so the min and max functions will work when trying to find what records to show. I don't know if there is still something wrong with the logic or not. The purpose of this is to what parts fit the years of vehicles. In this example, for the inventory item, it fits 68-78 and 79-85. That would also mean if the numbers 66-86 was used, this would still work because part of the years used it fits. However, if the numbers being searched was 64-65, then it nothing would show up. Let me know if you have any questions. The relationships are inventory.id=additionalinfo.newpart. That relates the parts to the years it fits. ## Deliverables The SQL Statement to find matches for the span of years. Here are a few examples 1. 66-67 for the search years found 64-65 and 69-70 in this case, nothing would show up because none of the years fit. 2. 65-90 years found 66-88 in this case, it should find the record because 66 to 88 is between the span of years of 65 to 90. Let me know if you have any further questions. I will need the query that would be needed with SQL Server 7.0 and MS Access. ## Platform MS Access, SQL Server 7.0
Ταυτότητα εργασίας: 2968620

Σχετικά με την εργασία

6 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 21 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
Βραβεύτηκε στον/στην:
Avatar Χρήστη
See private message.
$7 USD σε 1 ημέρα
5,0 (480 αξιολογήσεις)
7,6
7,6
6 freelancers δίνουν μια μέση προσφορά $17 USD για αυτή τη δουλειά
Avatar Χρήστη
See private message.
$8,50 USD σε 1 ημέρα
5,0 (724 αξιολογήσεις)
6,9
6,9
Avatar Χρήστη
See private message.
$4,25 USD σε 1 ημέρα
4,9 (56 αξιολογήσεις)
5,2
5,2
Avatar Χρήστη
See private message.
$8,50 USD σε 1 ημέρα
5,0 (13 αξιολογήσεις)
3,4
3,4
Avatar Χρήστη
See private message.
$17 USD σε 1 ημέρα
3,9 (3 αξιολογήσεις)
2,1
2,1
Avatar Χρήστη
See private message.
$42,50 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
See private message.
$21,25 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της AUSTRALIA
Sydney, Australia
5,0
781
Επαληθευμένη μέθοδος πληρωμής
Μέλος από Απρ 9, 2002

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.