Advertisement

01.16.2008 at 10:22PM PST, ID: 23089418
[x]
Attachment Details

SQL Query needed

Asked by Mamtha1982 in MS SQL Server, SQL Query Syntax

Table: tblCountries
Columns: CountryCode(varchar), OperatorCode(varchar), Credits(int)
Example Country Codes: 91,92 etc.
Example Operator Codes: 9842, 23 etc.
Example Credits: 1, 1.5 etc.

I have an international phone number in a variable, and have to find this phone number from which country and which operator and credits. How i can write SQL Query for this?
like...

SELECT Sno, CountryCode, OperatorCode FROM tblCountries WHERE ...................?





Start Free Trial
[+][-]01.16.2008 at 10:50PM PST, ID: 20679212

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.16.2008 at 11:00PM PST, ID: 20679253

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.17.2008 at 01:19AM PST, ID: 20679767

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL Server, SQL Query Syntax
Sign Up Now!
Solution Provided By: ee_rlee
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628