SpitFire Help Desk

View Articles by Category

There are no sub categories

Category » 12. MySQL Queriesrss button

(Page 2 of 2)     Prev | 1 | 2 | Next

There were 40 articles found in this category:

  1. questionExporting Error and Others
    SELECT voicephone, dateedited, dateentered into outfile 'C:/Errors.txt' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n' FROM `clients` where dialresult='207' or dialresult='206' or dialresult='249' limit 10000000
  2. questionExporting Nocalls
    Select voicephone into outfile 'c:\\nocalls.txt' fields terminated by ',' lines terminated by '\r\n' from nocalls limit 100000000
  3. questionExporting Sorted by Zipcode
    SELECT name, company,address, city, state, zipcode, voicephone into outfile 'c:\\770byzip.txt' fields terminated by ',' lines terminated by '\r\n' FROM `clients` order by zipcode limit 10000000
  4. questionInsrtuctons for MySQL Sorting
    For sorting the Touch Tone 9 into a text file that saves in Folder "Touch Tone 9" on the C drive: SELECT voicephone into outfile 'C:/Touch Tone 9/temp.txt' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n' FROM `clients` where spare16 like '9%' limit 1000000 For sorting the Touch Tone 8 into a ...
  5. questionLookup Transfer export-Alternate
    SELECT company, address, city, state, voicephone, lastresult into outfile 'c:\\transfers.txt' fields terminated by ',' lines terminated by '\r\n' FROM `clients` where dateedited between '20061218000000' and '20061218235959' and spare16 like '9%' limit 1000000
  6. questionRandom export
    SELECT voicephone into outfile 'c:\\random.txt' fields terminated by ',' lines terminated by '\r\n' FROM clients order by rand() limit 10000000;
  7. questionrandomizer
    SELECT * into outfile 'c:\\random.txt' fields terminated by ',' lines terminated by '\r\n' FROM `clients` where dialresult='01' order by rand() limit 1000000
  8. questionRemove data from a column
    update Clients set faxphone=''
  9. questionRemoving punctuation from voicenumbers
    1. If you want to remove all the hyphens then use: Update clients set voicephone=replace(voicephone,’-‘,’’) 2. If you want to replace comma’s in the voicephone field Update clients set voicephone=replace(voicephone,’,‘,’’) 3. If you want to replace space’s in the voicephone field Update clients ...
  10. questionRework Single Record
    update clients set dialresult='01', lastresult='Rework' where Voicephone='1234567890'
  11. questionScrub Tier C
    delete clients.* FROM `clients` LEFT JOIN tier.tierab as `a` ON substring(clients.voicephone,1,6)=a.prefix where a.prefix is null
  12. questionSearch for records within date span
    SELECT count(*) FROM `nocalls` where dateentered between '2006-01-01%' and '2007-04-26%' SELECT * FROM `nocalls` where dateentered between '2006-01-01%' and '2007-04-26%'
  13. questionSearching for nocalls
    select * from nocalls where voicephone='2143896208'
  14. questionSingle Record Lookup
    select voicephone from clients where voicephone='1234567890'
  15. questionSpare1 range outfile
    SELECT name, address, city, state, zipcode, email, voicephone, spare1, spare2, spare3, lastname, firstname into outfile 'c:\\Loan Range List.txt' fields terminated by ',' lines terminated by '\r\n' FROM `higher loan limit leads 2`.`clients` where spare1>'375000' and voicephone
  16. questionTierC-clean
    delete clients.* FROM `clients` LEFT JOIN tier.tierab as `a` ON substring(clients.voicephone,1,6)=a.prefix where a.prefix is null Note: Tier A and B must be combined and imported first as a DB where "tierab" is the DB name.
  17. questionTransfers Query
    SELECT name, address, city, state, zipcode, voicephone into outfile 'c:\\transfers.txt' fields terminated by ',' lines terminated by '\r\n' FROM `clients` where dateedited between '20080721000000' and '20080721235959' and (spare16 like '1%' or spare16 like '2%') limit 1000000
  18. questionTT Queries
    For sorting the Touch Tone 9 into a text file that saves in Folder "Touch Tone 9" on the C drive: SELECT voicephone into outfile 'C:/Touch Tone 9/temp.txt' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n' FROM `clients` where spare16 like '9%' limit 1000000 For sorting the Touch Tone 8 into a ...
  19. questionUK country code removal
    update clients set voicephone=substring(voicephone,5,12) where substring(voicephone,1,4)=’+44 ’
  20. questionZipcode Dialing
    The first query would be: select * from clients where dialresult='01' and zipcode='75001' the second query would be select * from clients where dialresult='01' and zipcode>75001 and zipcode
(Page 2 of 2)     Prev | 1 | 2 | Next