|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
in am working on crystal report with SQL server.
i have to connect 2 identical tables (A, A_1 -> alias table). as i have to retrieve same field of this table at different conditions. when i made a connection it erroe said "ODBC Error: [ODBC][Microsoft SQL Server Driver][SQL Server]The column prefix 'A_1' does not match with a table name or alias name used in the query. but the show SQL query in crystal reprt shows "SELECT A."BNK_COD", A."COV_MIN", A."COV_CLAS", B."LST_NAM", C."FST_NAM", A_1."PAID",D."BNK_NAM" " can any one help ? thanx, Rohini |
|
#2
|
|||
|
|||
|
What's the whole SQL for this? Based on what you have said here, the SQL should look like the below in full
SELECT A.BNK_COD, A.COV_MIN, A.COV_CLAS, B.LST_NAM, C.FST_NAM, A_1.PAID, D.BNK_NAM FROM Table1 A, Table2 B, Table3 C, Table4 D |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > Need help in SQL Server - Crystal Report |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|