Query For Northwind database

Author Topic
Omer Choksy
Member

Joined: 10 Nov 2002
Homepage: link
Country: Pakistan
Posts: 1

Posted: 11 Nov 2002 15:06:47

I am having prob in this Sql query..(related to Northwind Database Given As Sample Database In Access And Sql Server)
Select All those orders(order ids) which have following product id:
1) 11
2) 42
3) 72

I am having prob in this Sql query..(related to Northwind Database Given As Sample Database In Access And Sql Server)
Select All those orders(order ids) which have following product id:
1) 11
2) 42
3) 72
uday gaikwad
Member

Joined: 25 Jan 2007
Country: India
Posts: 3

Posted: 25 Jan 2007 11:31:32

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I am having prob in this Sql query..(related to Northwind Database Given As Sample Database In Access And Sql Server)
Select All those orders(order ids) which have following product id:
1) 11
2) 42
3) 72
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

The problem is not in your query. The problem is in the name of the table. It contains space (Order Details)
and hence not only the above query but any query involving the above table (Order Details) will show invalid object name.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I am having prob in this Sql query..(related to Northwind Database Given As Sample Database In Access And Sql Server)
Select All those orders(order ids) which have following product id:
1) 11
2) 42
3) 72
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

The problem is not in your query. The problem is in the name of the table. It contains space (Order Details)
and hence not only the above query but any query involving the above table (Order Details) will show invalid object name.
uday gaikwad
Member

Joined: 25 Jan 2007
Country: India
Posts: 3

Posted: 25 Jan 2007 13:35:28

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I am having prob in this Sql query..(related to Northwind Database Given As Sample Database In Access And Sql Server)
Select All those orders(order ids) which have following product id:
1) 11
2) 42
3) 72
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Try the query as "Order Details" as the table name.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I am having prob in this Sql query..(related to Northwind Database Given As Sample Database In Access And Sql Server)
Select All those orders(order ids) which have following product id:
1) 11
2) 42
3) 72
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Try the query as "Order Details" as the table name.
Follow us on twitter Subscribe to our RSS feed
Activate your free membership today | Login | Currency