Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle ASP
Oracle ASP Using ASP with Oracle databases. For Oracle discussions not specific to ASP, please see the Oracle forum. For more ASP discussions, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 2nd, 2007, 02:26 AM
Registered User
Join Date: Mar 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default error in self join with subquery

I want to show same field form database each with different conditions in datagrid.I use oracle as back-end.For that,I use self join as below:

 sql2 = "select m1.int_no(select int_no from exg_main_master where o_r_tag = 'O'),m2.int_no(select int_no from exg_main_master where o_r_tag = 'R') from exg_main_master m1,exg_main_master m2 where m1.emp_no_dept_code = '" & txteno.Text & "' and m2.emp_no_dept_code = '" & txteno.Text & "'"

But I am getting error:
System.Data.OracleClient.OracleException: ORA-00936: missing expression

Similar Threads
Thread Thread Starter Forum Replies Last Post
INSERT INTO with SubQuery - ERROR! :-( kevorkian SQL Server 2000 2 June 12th, 2008 05:43 PM
Updating query using inner join sintax error gfranco Access 0 April 18th, 2008 10:08 PM
self join query error Aneri Visual Studio 2005 0 March 1st, 2007 05:35 AM
Oracle 8i inner join and left join problem puteri_84 Oracle 2 August 19th, 2004 07:14 AM
Left Join error mariakovacs Access ASP 2 October 13th, 2003 04:16 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.