Click here to Skip to main content
15,905,616 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Geting information on media in my recorder drive Pin
josip cagalj16-Nov-08 21:42
josip cagalj16-Nov-08 21:42 
QuestionUpdate ResourceScript File Pin
Dhiraj kumar Saini14-Nov-08 1:40
Dhiraj kumar Saini14-Nov-08 1:40 
QuestionRe: Update ResourceScript File Pin
David Crow14-Nov-08 3:09
David Crow14-Nov-08 3:09 
QuestionConnecting VC++ to oracle 10g and acess data from multiple tables. Pin
Divya Lalwani14-Nov-08 1:29
Divya Lalwani14-Nov-08 1:29 
AnswerRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
_AnsHUMAN_ 14-Nov-08 1:40
_AnsHUMAN_ 14-Nov-08 1:40 
QuestionRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
David Crow14-Nov-08 3:11
David Crow14-Nov-08 3:11 
AnswerRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
Divya Lalwani16-Nov-08 18:09
Divya Lalwani16-Nov-08 18:09 
AnswerRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
Divya Lalwani16-Nov-08 19:24
Divya Lalwani16-Nov-08 19:24 
I can access all data from a single table.But If I want to access selected data from multiple tables then I get an error after executing.

ERROR: ORA-00903: invalid table name
DSN Name: om_ebridge.
Oracle User Name: SCOTT
Table Names: Transaction_Master,Transporter_Master,Supplier_Master,Product_Master.

CString CMyebridgeSet::GetDefaultConnect()
{
return _T("ODBC;DSN=om_ebridge");
}

CString CMyebridgeSet::GetDefaultSQL()
{
//return _T("[SCOTT].[TRANSACTION_MASTER]");(works to access data from single table.)

(But ERROR occurs if the below mentioned INNER JOIN is used to access selected data from multiple tables .Can you please help me access data).

return _T("SELECT TRANSACTION_MASTER.TRANSACTION_CODE,TRANSACTION_MASTER.VEHICLE_NO,TRANSACTION_MASTER.OPERATING_MODE,")
_T("TRANSPORTER_MASTER.transporter_name,SUPPLIER_MASTER.SUPPLIER_NAME,")
_T("PRODUCT_MASTER.PRODUCT_NAME,TRANSACTION_MASTER.unit,TRANSACTION_MASTER.Gross_Wt,TRANSACTION_MASTER.Gross_WtTime,")
_T("TRANSACTION_MASTER.Tare_Wt,TRANSACTION_MASTER.Tare_WtTime,TRANSACTION_MASTER.CONTAINER1_TAREWT,")
_T("TRANSACTION_MASTER.CONTAINER2_TAREWT ,TRANSACTION_MASTER.net_Wt,TRANSACTION_MASTER.Challan_no,TRANSACTION_MASTER.Challan_Wt,")
_T("TRANSACTION_MASTER.No_Of_Units,TRANSACTION_MASTER.Calculated_Wt,TRANSACTION_MASTER.Formula1,")
_T("TRANSACTION_MASTER.Formula2,TRANSACTION_MASTER.Formula3,TRANSACTION_MASTER.Formula4,")
_T(" TRANSACTION_MASTER.location_code,TRANSACTION_MASTER.field1,TRANSACTION_MASTER.field2,TRANSACTION_MASTER.field3 ")

_T("from PRODUCT_MASTER INNER JOIN SUPPLIER_MASTER INNER JOIN TRANSACTION_MASTER")
_T("ON SUPPLIER_MASTER.SUPPLIER_CODE =TRANSACTION_MASTER.SUPPLIER_CODE")
_T("ON PRODUCT_MASTER.PRODUCT_CODE=TRANSACTION_MASTER.PRODUCT_CODE")
_T("INNER JOIN TRANSPORTER_MASTER ON TRANSPORTER_MASTER.TRANSPORTER_CODE=TRANSACTION_MASTER.TRANSPORTER_CODE ");
}
GeneralRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
David Crow17-Nov-08 2:56
David Crow17-Nov-08 2:56 
GeneralRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
Divya Lalwani17-Nov-08 17:47
Divya Lalwani17-Nov-08 17:47 
GeneralRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
Divya Lalwani18-Nov-08 1:32
Divya Lalwani18-Nov-08 1:32 
QuestionRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
David Crow18-Nov-08 3:12
David Crow18-Nov-08 3:12 
QuestionRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
David Crow18-Nov-08 3:07
David Crow18-Nov-08 3:07 
AnswerRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
Divya Lalwani19-Nov-08 0:47
Divya Lalwani19-Nov-08 0:47 
GeneralRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
David Crow19-Nov-08 2:25
David Crow19-Nov-08 2:25 
GeneralRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
Divya Lalwani19-Nov-08 17:16
Divya Lalwani19-Nov-08 17:16 
GeneralRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
David Crow20-Nov-08 3:36
David Crow20-Nov-08 3:36 
GeneralRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
Divya Lalwani20-Nov-08 21:17
Divya Lalwani20-Nov-08 21:17 
GeneralRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
David Crow21-Nov-08 2:36
David Crow21-Nov-08 2:36 
GeneralRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
#realJSOP18-Nov-08 3:41
professional#realJSOP18-Nov-08 3:41 
AnswerRe: Connecting VC++ to oracle 10g and acess data from multiple tables. Pin
Divya Lalwani16-Nov-08 19:52
Divya Lalwani16-Nov-08 19:52 
QuestionTab control and Modal dialog box Pin
shir_k14-Nov-08 1:25
shir_k14-Nov-08 1:25 
AnswerRe: Tab control and Modal dialog box Pin
rrrado14-Nov-08 1:44
rrrado14-Nov-08 1:44 
QuestionCView::OnDraw (MFC) not getting called Pin
manoharbalu14-Nov-08 1:15
manoharbalu14-Nov-08 1:15 
AnswerRe: CView::OnDraw (MFC) not getting called Pin
_AnsHUMAN_ 14-Nov-08 1:44
_AnsHUMAN_ 14-Nov-08 1:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.