Find Jobs
Hire Freelancers

Script for inserting and removing values from db based on calculation

$30-250 USD

Abgeschlossen
Veröffentlicht vor fast 9 Jahren

$30-250 USD

Bezahlt bei Lieferung
select distinct(ext_prefix) from trunks_rules where CHAR_LENGTH(ext_prefix) = 7 and ext_prefix like '6%'; call this A select right(sim_bank.scid_gsm.gsm_number,7) from asterisk.trunks_trunk,sim_bank.scid_gsm where asterisk.trunks_trunk.scid_date > '1 hour ago' and [login to view URL] = [login to view URL] ; Call this B If an entry in A does not exist in B , delete it from A if an entry in B does not exist in A select count(trunk_id), [login to view URL] from asterisk.trunks_rules,asterisk.trunks_trunk where trunks_trunk.id=trunks_rules.trunk_id and trunks_trunk.trunk_type='Dongle' group by trunk_id; find the 7 smallest counts eg (55,24,65,78,62,45,23) for every entry found in B that does not exist in A insert into trunk_rules (trunk_id,ext_prefix,strip,allow) values ('55','B[1]','0','1') insert into trunk_rules (trunk_id,ext_prefix,strip,allow) values ('24','B[1]','0','1') insert into trunk_rules (trunk_id,ext_prefix,strip,allow) values ('65','B[1]','0','1') insert into trunk_rules (trunk_id,ext_prefix,strip,allow) values ('78','B[1]','0','1') insert into trunk_rules (trunk_id,ext_prefix,strip,allow) values ('62','B[1]','0','1') insert into trunk_rules (trunk_id,ext_prefix,strip,allow) values ('45','B[1]','0','1') insert into trunk_rules (trunk_id,ext_prefix,strip,allow) values ('23','B[1]','0','1') find 7 smallest count again and insert B[2] find 7 smallest count again and insert B[3] etc DB structure in attachment
Projekt-ID: 7811087

Über das Projekt

12 Vorschläge
Remote Projekt
Aktiv vor 9 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
I'm a senior software developer with long experience in scripting development, SQL and MySQL. So I can build the script with no effort and in a short time. I can start now and I can give you the script tomorrow. Hoping to hear from you.
$64 USD in 1 Tag
5,0 (6 Bewertungen)
4,3
4,3
12 Freelancer bieten im Durchschnitt $62 USD für diesen Auftrag
Avatar des Nutzers
Hello, and thanks for the opportunity to bid on your project. I am an expert in many different area’s of web and mobile applications based on the following languages: PHP, MySql, HTML5, Java (Web and Android), and JavaScript. I am also an expert in many different frameworks such as CodeIgniter, Spring and jQuery. I have over 5 years industry experience in development and graduated with a Masters Degree in IT from the Hong Kong University. My PHP L1 exam score in Freelancer places me in the top 3% of developers. Please have confidence in my skill and quality of work. I assure, I will do my best to work with you on your project to present the best possible outcome for you and your customers. I will also do my best to correct any area of work where quality comes into question, I want to have pride in my service to your company and the final product provided. While I am happy to make adjustments and alterations as your project progresses please understand that I am a dedicated freelancer and any work that is substantially different from the project description may need the awarded fee to be re-negotiated. Feel free to contact me if you have any questions, and please review my 5 star profile. I look forward to working together in partnership on your project and into the future. Regards
$54 USD in 1 Tag
5,0 (183 Bewertungen)
8,7
8,7
Avatar des Nutzers
Hi, We have expertise in perl and mysql for more than 10 years. Please discuss. We can do it. Thanks
$60 USD in 2 Tagen
4,9 (207 Bewertungen)
6,6
6,6
Avatar des Nutzers
Предложение еще не подано
$35 USD in 3 Tagen
5,0 (26 Bewertungen)
5,0
5,0
Avatar des Nutzers
Dear Sir, Able to start right now. I have more than 2+ years experience in jquery,ajax,html,css,php, paypal integration and web based cms and frameworks like joomla,codegintter etc. I read all your description and know exactly what is needed to do and within timeline. I hope I am able to help you and I am waiting for your reply. Regards, bdphpguru
$66 USD in 0 Tag
4,9 (51 Bewertungen)
4,8
4,8
Avatar des Nutzers
Hi, I am Chetan Ghadiya from Rajkot,Gujarat,India. we are team of developers and designers. Completely passionate and self dependent. I believe in delivery with a quality. We are a team of developers and designers (all CS grads) working 12*7. I bid only those projects which I believe my team can deliver. No outsourcing or overload. You will get a direct connection with me and a regular update on the progress of work. Just joined Freelancer, looking for some jobs. Cheers!
$100 USD in 1 Tag
4,9 (24 Bewertungen)
4,4
4,4
Avatar des Nutzers
Hello, I can do this for you using "ksh". Please send ma a PM if you are interested to discuss with me. Thanks, Gabriel Bica
$57 USD in 3 Tagen
5,0 (4 Bewertungen)
3,8
3,8
Avatar des Nutzers
I can do that easily. I'll have the imense pleasure in help you in that task. Please contact me. I have experience em databases. Anyway, have a nice day!
$30 USD in 2 Tagen
5,0 (7 Bewertungen)
3,6
3,6
Avatar des Nutzers
I will complete your project requirement. It will be delivered on time and with the scope completed.
$45 USD in 3 Tagen
5,0 (12 Bewertungen)
3,7
3,7
Avatar des Nutzers
Hello, I can help you with this project. I can give you the script in couple of hours. Please let me know when we can discuss more about this. Thank you.
$30 USD in 0 Tag
4,9 (14 Bewertungen)
3,4
3,4
Avatar des Nutzers
I have been writing scripts which does the tasks in MySQL on a linux machine by profession. Hope I can do this for you.
$155 USD in 3 Tagen
5,0 (2 Bewertungen)
2,4
2,4
Avatar des Nutzers
La propuesta todavía no ha sido proveída
$50 USD in 2 Tagen
5,0 (1 Bewertung)
0,8
0,8

Über den Kunden

Flagge von UNITED STATES
dix hills, United States
5,0
137
Zahlungsmethode verifiziert
Mitglied seit Aug. 24, 2006

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.