Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Ocula
  • Order by date
  1. Ocula

    Help needed on returning only one result

    IF anyone is curious I have found a solution. It involves creating a 2nd table for mobile numbers, selecting them all then excluding them from the initial test.
  2. Ocula

    Help needed on returning only one result

    I'm pretty sure extra spaces are ignored. I have also tried the extra %. It's almost behaving like there are 2 entries for Australia with each of the country codes in the table but there isn't. If this helps, the country table looks like LANDLOC CODE CHARGE Australia...
  3. Ocula

    Help needed on returning only one result

    I'm not sure it is but I won't rule it out. Thing is I can only have one of the OR'd functions and remove the rest and it still doesn't work right e.g. If dst=0061xxxxxxx (Mid(cdr.dst,1,4)=country.code) AND country.landloc Not Like '%Mobile') Will return Australia AND Australia Mobile...
  4. Ocula

    Help needed on returning only one result

    The CASE section for month is a value passed through from a website where the customer can enter the month required and is only for display purposes and can be ignored. This is MySQL. I have posted in another section but haven't had any useful replies. Subtlties aside from various...
  5. Ocula

    Help needed on returning only one result

    The following SQL is for phone billing. cdr.dst=number dialed. Country table fields are code=area prefix, landloc=geographical location ("Australia" OR "Australia Mobile" for example) and charge=per minute value. There is a huge variation of country prefix and in the WHERE clause you can see...
  6. Ocula

    Need one result from two table query but getting two results

    Thanks Ian but aren't they already? All you did was include Length(cdr.dst)>10 in the group or ORs, which didn't change the output. Cheers
  7. Ocula

    Need one result from two table query but getting two results

    The following SQL is for phone billing. cdr.dst=number dialed. Country table fields are code=area prefix, landloc=geographical location (Australia OR Australia Mobile for example) and charge=per minute value. There is a huge variation of country prefix and in the WHERE clause you can see I...

Part and Inventory Search

Back
Top