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

Why am I getting bigger dataset when the first code snippets executes?

This code returns 6754 rows:

select a.prodid, a.prodlinetype, a.itemid, a.inventtransid, a.inventreftype, a.inventrefid, a.inventreftransid, a.vendid,
a.oprnum
from reporting.prodbom a inner join reporting.prodroute b on a.prodid = b.prodid
inner join reporting.wrkctrtable c on b.wrkctrid = c.wrkctrid where a.dataareaid = 'far'
and a.vendid = '9065'and (b.semqtygood <> 0 or b.semqtyerror <> 0) and b.dataareaid = 'far'
and c.vendid = '9065' and c.dataareaid = 'far'

This code returns 3943 rows:

select prodid, prodlinetype, itemid, inventtransid, inventreftype, inventrefid, inventreftransid, vendid, oprnum
from reporting.prodbom where dataareaid = 'far' and prodid in (
select prodid from reporting.prodroute where dataareaid = 'far'
and wrkctrid in (select wrkctrid from reporting.wrkctrtable where dataareaid = 'far' and vendid = '9065')
and (semqtygood <> 0 or semqtyerror <> 0))
Sep 29 '10 #1
1 1081
ck9663
2,878 Expert 2GB
Do you have duplicate that could affect your INNER JOINs?

~~ CK
Oct 1 '10 #2

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

Similar topics

8
by: asmirnov1234567890 | last post by:
Hi I'd like to place this code to C++ code snippets site. Does anyone know about where is could be? Andrei Smirnov ======================================= // // example of how to strip...
1
by: objectref | last post by:
Hi to all, i have an app that i allow a drag and drop operation of picture boxes on a panel. when i drop a picture box i do the following so my newly dropped picture box will be able to...
2
by: Steve Franks | last post by:
I'm using VS.NET 2005 beta 2 and am excited about the idea of using code snippets. This is a nice time saver. For example I need to read all text from a file, and see that with a simple command...
3
by: kai | last post by:
Hi, Base on MSDN help, in VS2005 IDE, select "Tools -> Code Snippets Manager", but I cannot find "Code Snippets Manager" under "Tools" menu. Also I noticed when I insert snippets in C#, it has...
0
by: c.w.browne | last post by:
Hi, Ive had a bit of a look around for other people with this problem and cant find anything that solves it in my case, so I'm afraid im going to have to bother you all with a post of my own. ...
13
by: frk.won | last post by:
I am interested in learning how to use the VS 2005 code snippets. However, I wish to know what are the best ways to source control the code snippets? Are there any source safe/subversion...
4
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Why am I getting an error when I passed by ref a dataset to a new form? The message reads "cannot convert from 'ref Paimport.unixAccount' to 'ref System.Data.DataSet'. Paimport is the name of the...
8
by: Wikicodia Admin | last post by:
Dears, Wikicodia is a wiki based project for sharing code snippets. We're collecting large number of code snippets for all code-based programming languages, scripts, shells and consoles. We wish...
14
by: lovecreatesbea... | last post by:
The book `Code complete' mentions similar code snippets as the followings , and talks about their advantages respectively. But I think these code snippets are totally different in logic, and...
2
Frinavale
by: Frinavale | last post by:
I'm attempting to supplement the help for my code by providing other developers with code snippets that demonstrate how to use my classes/method. I've created a .snippet file and have placed it in...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.