473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

What is wrong with this query logic

select top 100

from erp.OrderHed as h (nolock)

join erp.OrderDtl as d (nolock) on h.OrderNum = d.OrderNum

where sourceSystem_c = 'iconnect' and ShipViaCode = 'wc'

I get this error message:
Incorrect syntax near the keyword 'from'.
Jun 27 '17 #1
1 1354
Luk3r
300 256MB
You forgot the asterisk or column name(s)

Expand|Select|Wrap|Line Numbers
  1. select top 100 * from
or
Expand|Select|Wrap|Line Numbers
  1. select top 100 sourceSystem_c,ShipViaCode from
Jun 27 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Phil Powell | last post by:
Ok guys, here we go again! SELECT s.nnet_produkt_storrelse_navn FROM nnet_produkt_storrelse s, nnet_produkt_varegruppe v, nnet_storrelse_varegruppe_assoc sv, nnet_produkt p WHERE...
3
by: Bartosz Wegrzyn | last post by:
I am trying to upload images using either exec command. The file is uploaded ok. My script: <html> <head> <title>Picture Upload Page</title> <?php if ($_POST=="upload") {
3
by: Torrent | last post by:
When Trying to Load an XSLT File with the XslTransform i got a rather annoying Exception being thrown "System.Xml.XPath.XPathException: XsltContext is needed for this query because of an unknown...
2
by: Jedi Knight | last post by:
Hi, I think I need to use an EXISTS query, but I am not vey proficient with it and don't quite have a handle on the logic of this query yet. query1, winners, has 3 fields that I'm concerend...
3
by: Keith | last post by:
I've inherited an Access file in which there is the following query: SELECT tblItem.InstanceNo, "PL" & Left(.,InStr(.,"-")-1) AS Parent FROM tblItem, tblItem AS tblItem_1 WHERE ((("PL" &...
1
by: kevinjbowman | last post by:
Update garment_details SET garment_details.blankprice = '1.50' Where garment_details.GarmentDetailID in (Select garment_details.GarmentDetailID From garment_details Inner Join colors ON...
3
by: zykes | last post by:
I have this query that produces Syntax Error(missing operator) in query operation ForumTopics.TopicID = ForumReply.TopicID LEFT OUTER JOIN Members ON ForumTopics.WrittenBy =...
17
by: erikcw | last post by:
Hi all, I'm trying to run the following query: amember_db = MySQLdb.connect(host="localhost", user="**********", passwd="*****", db="*******") # create a cursor self.amember_cursor =...
2
by: SrikanthBichala | last post by:
1) int foo(int x) { if(x<=0) return 0; else return 1+foo(x/10); } a) What is the output of this logic for foo(12345) b) What purpose this logic is used
6
by: HiGu | last post by:
This query works in the query design window but doesn't display any data in the combobox in the form. select distinct '<ALL>' as equipment from tblmimain UNION ALL SELECT DISTINct...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.