473,385 Members | 1,766 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,385 software developers and data experts.

runtime error while running the code

i have three tables viz log,pln,master in excel

My query :
Expand|Select|Wrap|Line Numbers
  1. SELECT master.turnover, 
  2.    master.major,
  3.    master.minor,
  4.    MASTER.BOQ,
  5.    sum(pln.qty), 
  6.    sum(log.qty)
  7. FROM master, pln, log 
  8. WHERE master.masid = pln.masid 
  9.    AND pln.masid=log.masid 
  10. GROUP BY master.turnover, 
  11.    master.major,
  12.    master.minor,
  13.    MASTER.BOQ
i getting runtime i explicit mention join type or getting wrong valves in query result.
Mar 12 '13 #1
1 966
zmbd
5,501 Expert Mod 4TB
Where did you get this SQL from?

Refering to your reformated code block:
Line 5 and Line 6 require an alias
Line 8 your where clause should be grouped
The spacing is required, in that you can not run all of the lines togeither as you had it.

So, your reworked SQL should be:

Expand|Select|Wrap|Line Numbers
  1. SELECT master.turnover, 
  2.    master.major,
  3.    master.minor,
  4.    MASTER.BOQ,
  5.    sum(pln.qty) As SumOfPlnQty, 
  6.    sum(log.qty) As SumOfLogQty
  7. FROM master, pln, log 
  8. WHERE (((master.masid)=pln.masid) 
  9.    AND ((pln.masid)=log.masid)) 
  10. GROUP BY master.turnover, 
  11.    master.major,
  12.    master.minor,
  13.    MASTER.BOQ;
Mar 12 '13 #2

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

Similar topics

10
by: Seeker | last post by:
Hi! I have to do some developing and I'm trying to configure my server to mimic the operation of our production server. The issue I'm having is that I'm trying to use CDONTS to send an email...
6
by: Dan Roberts | last post by:
I am running some off-the-shelf software that is written in ASP, which uses JScript to generate dynamic content within HTML forms. There are several ASP pages which are partially rendering to IE,...
7
by: Yongsub Eric Shin | last post by:
Hi. I'm just a beginner in ASP.Net. I started writing codes and I keep on getting this Runtime Error page, where it says "Description: An application error occurred on the server. The current...
1
by: Allen | last post by:
Running a 3-tiered internet site (Web layer consists of Server 2003 Std servers running .NET/IIS, App layer consists of Server 2003 Std servers running .NET/IIS, and Data layer runs Server 2003 Std...
7
by: yuanlinjiang | last post by:
I am working on converting a win32 console application from VC6 to VC7. My version is Microsoft Development Environment 2003 version 7.1.3088. The code works fine on VC6. it is a console...
4
by: news.citenet.net | last post by:
I keep getting the following error message after my web site running 2 or 3 days I share one folder with about 200 domain names Any one can help? ...
4
by: surja | last post by:
Hi, I have written a code to download images from a server end desktop, but while running the code ,WTK is showing a runtime error " Create image from Byte array Uncaught exception...
2
by: pavya | last post by:
Hi to all, I am sending an email by using VB with ASP.Net. The code is as follows... MMsg = New MailMessage MMsg.From = GetUserEmail() MMsg.To = txtto.Text ...
3
by: Jim Armstrong | last post by:
Hello all - This is driving me crazy. I have a table called tblClients - very simple, has the following fields: taxID (PK) ClientName SalesName The main form of my application allows a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.