This is a discussion on Help with Query within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi, I am trying to perform a query that is beyond my knewlegde and was after little help, I ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I am trying to perform a query that is beyond my knewlegde and was after little help, I have two tables in my db, national and CDR. the National table displays the codes and location for every std code in the UK, the CDR table displays the information about calls made from people in my company. I am trying to reference both tables so that the result display the location of the dailled numbers, here is the query I have built using the query tool in SQL but it does not seem to work. could any tell me where I am going wrong? SELECT dbo.IpPbxCDR.OriginationNumber, dbo.[National].Location FROM dbo.[National] CROSS JOIN dbo.IpPbxCDR WHERE (dbo.[National].Digits LIKE '%dbo.IpPbxCDR.OriginationNumber%') Many Thanks Ian |
| |||
| Please post your DDL + INSERT statements of sample data + desired results. -- Tom ---------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA SQL Server MVP Columnist, SQL Server Professional Toronto, ON Canada www.pinpub.com .. "Crumb" <rowan.ian@gmail.com> wrote in message news:1141597991.414860.283020@j33g2000cwa.googlegr oups.com... Hi, I am trying to perform a query that is beyond my knewlegde and was after little help, I have two tables in my db, national and CDR. the National table displays the codes and location for every std code in the UK, the CDR table displays the information about calls made from people in my company. I am trying to reference both tables so that the result display the location of the dailled numbers, here is the query I have built using the query tool in SQL but it does not seem to work. could any tell me where I am going wrong? SELECT dbo.IpPbxCDR.OriginationNumber, dbo.[National].Location FROM dbo.[National] CROSS JOIN dbo.IpPbxCDR WHERE (dbo.[National].Digits LIKE '%dbo.IpPbxCDR.OriginationNumber%') Many Thanks Ian |
| ||||
| On 5 Mar 2006 14:33:11 -0800, Crumb wrote: >Hi, (snip) Hi Ian, Answered in microsoft.public.sqlserver.server. Please don't post copies of the same question to multiple locations; it makes it harder for you to keep track of the answers and yields extra work for those who try to answer. -- Hugo Kornelis, SQL Server MVP |
| Thread Tools | |
| Display Modes | |
|
|