| | |
problem with select within select
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2007
Posts: 33
Reputation:
Solved Threads: 0
Hi
I want to execute below query in ms-sql server 2000 but its giving errors.
Can anybody help please.
Its showing below errors. your help is greatly appreciated.
Thanks
Ansari
I want to execute below query in ms-sql server 2000 but its giving errors.
Can anybody help please.
MS SQL Syntax (Toggle Plain Text)
SELECT * FROM ( SELECT vRefTable FROM mainmenu WHERE iMenuId=58 ) WHERE (SELECT vFieldsName FROM TableField WHERE iMenuId=58 AND bIsPrimary=1 AND iTableFieldId=11) = 1
Its showing below errors. your help is greatly appreciated.
Server: Msg 156, Level 15, State 1, Line 2 Incorrect syntax near the keyword 'where'. Server: Msg 170, Level 15, State 1, Line 3 Line 3: Incorrect syntax near '='.
Thanks
Ansari
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
you need to specify what column for the where and the =1 i have no clue what you are wanting there
MS SQL Syntax (Toggle Plain Text)
SELECT * FROM ( SELECT vRefTable FROM mainmenu WHERE iMenuId=58 ) WHERE -- your column name here vFieldsName IN (SELECT vFieldsName FROM TableField WHERE iMenuId=58 AND bIsPrimary=1 AND iTableFieldId=11)
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
![]() |
Similar Threads
- passing values of Select box from JSP to Action class thru form Bean (JSP)
- bank system problem !!!! (C++ programming) (C++)
- problem for a simple asp.net query (ASP)
- pagination problem (PHP)
- yupsearch problem - HELP (Viruses, Spyware and other Nasties)
- Help needed on select option (multible) [list box] (JavaScript / DHTML / AJAX)
- problem with commondialog (Visual Basic 4 / 5 / 6)
- problem with win98 rundll32.exe (Viruses, Spyware and other Nasties)
- Entourage Problem with Command+A (Mac Software)
Other Threads in the MS SQL Forum
- Previous Thread: Matching user preferences
- Next Thread: mssql connection problem with PHP
Views: 2943 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for MS SQL
"last autogrowth business connectingtodatabaseinuse count cursor data database dateadd datepart day" dbsize deadlock delete_trigger exploit getdate hack highperformancecomputing hpc hpcserver2008 ibm iis limit live loop maximum microsoft ms mssql multiple multithreading news number password permission position query reporting result security server services sets single source sql sql-injection sqlserver sqlserver2005 subtype supercomputing supertype tables uniqueid update view weekday






