Bandpass filter amplifies only noise at high frequencies and saturates the opamp output
I have designed a fourth order bandpass filter using the opamps TL081C. It is designed to operate at a center frequency of 40 kHz with a bandwidth of 2 kHz and a gain of -12.5 . I am using an SCB-68 board for data transmission and reception, one channel each for transmitter and receiver. I have grounded the adjacent channels to both the transmitter and the receiver in order to avoid crosstalk. However, at the output, I get a signal which looks like an amplitude modulated signal and is, most probably, noise. The amplitude of this signal is always around 9V, no matter what is the amplitude of the input (even if the input is 0V, the result is the same). If I scale down the whole BPF to operate at a center frequency of around 20 kHz, everything works fine. Therefore, I think the problem lies not in the design of the BPF but the use of the board at higher frequencies. Please reply as soon as possible.
You have done something wrong. You should read the manual for both the SCB-68 and your DAQ card once more. In such cases I often use MAX, and a battery as source. Then a DAQ input is not connected (floating) you will see measurements like you are doing now. Some high level voltage often modulated with mains frequency.
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Similar Messages
-
Some computers download and install the two approved updates, others only download Windows Update Agent and not the approved updates.
UN-successful Windows Update Log:
2014-05-07 09:33:56:180
1036 e70
Misc =========== Logging initialized (build: 7.6.7600.256, tz: -0400) ===========
2014-05-07 09:33:56:220
1036 e70
Misc = Process: C:\Windows\system32\svchost.exe
2014-05-07 09:33:56:221
1036 e70
Misc = Module: c:\windows\system32\wuaueng.dll
2014-05-07 09:33:56:180
1036 e70
Service *************
2014-05-07 09:33:56:221
1036 e70
Service ** START ** Service: Service startup
2014-05-07 09:33:56:222
1036 e70
Service *********
2014-05-07 09:33:56:544
1036 e70
Agent * WU client version 7.6.7600.256
2014-05-07 09:33:56:545
1036 e70
Agent * Base directory: C:\Windows\SoftwareDistribution
2014-05-07 09:33:56:546
1036 e70
Agent * Access type: No proxy
2014-05-07 09:33:56:547
1036 e70
Agent * Network state: Connected
2014-05-07 09:33:57:315
1036 e70
Setup Service restarting after SelfUpdate
2014-05-07 09:33:57:545
1036 e70
Setup Client version: Core: 7.6.7600.256 Aux: 7.6.7600.256
2014-05-07 09:33:57:592
1036 e70
Report CWERReporter::Init succeeded
2014-05-07 09:33:58:326
1036 e70
Report *********** Report: Initializing static reporting data ***********
2014-05-07 09:33:58:376
1036 e70
Report * OS Version = 6.1.7601.1.0.65792
2014-05-07 09:33:58:376
1036 e70
Report * OS Product Type = 0x00000030
2014-05-07 09:33:58:394
1036 e70
Report * Computer Brand = Hewlett-Packard
2014-05-07 09:33:58:444
1036 e70
Report * Computer Model = HP Compaq 4000 Pro SFF PC
2014-05-07 09:33:58:455
1036 e70
Report * Bios Revision = 786H7 v02.00
2014-05-07 09:33:58:504
1036 e70
Report * Bios Name = Default System BIOS
2014-05-07 09:33:58:554
1036 e70
Report * Bios Release Date = 2011-01-31T00:00:00
2014-05-07 09:33:58:554
1036 e70
Report * Locale ID = 1033
2014-05-07 09:34:03:562
1036 f08
Report REPORT EVENT: {082D455B-6E51-4238-A997-1D27D9214A72}
2014-05-07 09:33:58:565-0400 1
199 101
{0011B9ED-9189-4D58-BE25-FA2F13FC3D6C}
1 240005
SelfUpdate Success
Content Install Installation successful and restart required for the following update: Windows Update Aux
2014-05-07 09:34:03:614
1036 f08
Report CWERReporter finishing event handling. (00000000)
2014-05-07 09:34:42:049
1036 e70
Agent *********** Agent: Initializing Windows Update Agent ***********
2014-05-07 09:34:42:049
1036 e70
Agent *********** Agent: Initializing global settings cache ***********
2014-05-07 09:34:42:049
1036 e70
Agent * WSUS server: http://csd26.csd.local:80
2014-05-07 09:34:42:049
1036 e70
Agent * WSUS status server: http://csd26.csd.local:80
2014-05-07 09:34:42:049
1036 e70
Agent * Target group: CO
2014-05-07 09:34:42:049
1036 e70
Agent * Windows Update access disabled: No
2014-05-07 09:34:42:063
1036 e70
DnldMgr Download manager restoring 0 downloads
2014-05-07 09:34:42:089
1036 e70
AU ########### AU: Initializing Automatic Updates ###########
2014-05-07 09:34:42:089
1036 e70
AU AU setting next detection timeout to 2014-05-07 13:34:42
2014-05-07 09:34:42:090
1036 e70
AU AU setting next sqm report timeout to 2014-05-07 13:34:42
2014-05-07 09:34:42:090
1036 e70
AU # WSUS server: http://csd26.csd.local:80
2014-05-07 09:34:42:090
1036 e70
AU # Detection frequency: 22
2014-05-07 09:34:42:090
1036 e70
AU # Target group: CO
2014-05-07 09:34:42:090
1036 e70
AU # Approval type: Scheduled (Policy)
2014-05-07 09:34:42:090
1036 e70
AU # Scheduled install day/time: Every day at 3:00
2014-05-07 09:34:42:090
1036 e70
AU # Auto-install minor updates: Yes (User preference)
2014-05-07 09:34:42:105
1036 e70
AU Initializing featured updates
2014-05-07 09:34:42:116
1036 e70
AU Found 0 cached featured updates
2014-05-07 09:34:42:116
1036 e70
AU Successfully wrote event for AU health state:0
2014-05-07 09:34:42:117
1036 e70
AU Successfully wrote event for AU health state:0
2014-05-07 09:34:42:117
1036 e70
AU AU finished delayed initialization
2014-05-07 09:34:42:117
1036 e70
AU AU setting next sqm report timeout to 2014-05-08 13:34:42
2014-05-07 09:34:42:117
1036 e70
AU #############
2014-05-07 09:34:42:117
1036 e70
AU ## START ## AU: Search for updates
2014-05-07 09:34:42:117
1036 e70
AU #########
2014-05-07 09:34:42:291
1036 e70
AU <<## SUBMITTED ## AU: Search for updates [CallId = {5AA2F00A-8964-4543-A740-EC45C5FD5752}]
2014-05-07 09:34:42:341
1036 f08
Agent *************
2014-05-07 09:34:42:341
1036 f08
Agent ** START ** Agent: Finding updates [CallerId = AutomaticUpdates]
2014-05-07 09:34:42:341
1036 f08
Agent *********
2014-05-07 09:34:42:341
1036 f08
Agent * Online = Yes; Ignore download priority = No
2014-05-07 09:34:42:341
1036 f08
Agent * Criteria = "IsInstalled=0 and DeploymentAction='Installation' or IsPresent=1 and DeploymentAction='Uninstallation' or IsInstalled=1 and DeploymentAction='Installation' and RebootRequired=1 or IsInstalled=0
and DeploymentAction='Uninstallation' and RebootRequired=1"
2014-05-07 09:34:42:341
1036 f08
Agent * ServiceID = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7} Managed
2014-05-07 09:34:42:341
1036 f08
Agent * Search Scope = {Machine}
2014-05-07 09:34:42:341
1036 f08
Setup Checking for agent SelfUpdate
2014-05-07 09:34:42:342
1036 f08
Setup Client version: Core: 7.6.7600.256 Aux: 7.6.7600.256
2014-05-07 09:34:42:349
1036 f08
Misc Validating signature for C:\Windows\SoftwareDistribution\SelfUpdate\wuident.cab:
2014-05-07 09:34:42:392
1036 f08
Misc Microsoft signed: Yes
2014-05-07 09:34:44:669
1036 f08
Misc Validating signature for C:\Windows\SoftwareDistribution\SelfUpdate\wuident.cab:
2014-05-07 09:34:44:676
1036 f08
Misc Microsoft signed: Yes
2014-05-07 09:34:44:754
1036 f08
Misc Validating signature for C:\Windows\SoftwareDistribution\SelfUpdate\wsus3setup.cab:
2014-05-07 09:34:44:777
1036 f08
Misc Microsoft signed: Yes
2014-05-07 09:34:44:781
1036 f08
Misc Validating signature for C:\Windows\SoftwareDistribution\SelfUpdate\wsus3setup.cab:
2014-05-07 09:34:44:788
1036 f08
Misc Microsoft signed: Yes
2014-05-07 09:34:44:837
1036 f08
Setup Determining whether a new setup handler needs to be downloaded
2014-05-07 09:34:44:855
1036 f08
Misc Validating signature for C:\Windows\SoftwareDistribution\SelfUpdate\Handler\WuSetupV.exe:
2014-05-07 09:34:44:862
1036 f08
Misc Microsoft signed: Yes
2014-05-07 09:34:44:862
1036 f08
Misc WARNING: Digital Signatures on file C:\Windows\SoftwareDistribution\SelfUpdate\Handler\WuSetupV.exe are not trusted: Error 0x800b0001
2014-05-07 09:34:44:862
1036 f08
Setup WARNING: Trust verification failed for WuSetupV.exe. It will be deleted and downloaded, error = 0x800B0001
2014-05-07 09:34:44:863
1036 f08
Setup SelfUpdate handler update required: Current version: 7.6.7600.256, required version: 7.6.7600.256
2014-05-07 09:34:44:873
1036 f08
Setup Evaluating applicability of setup package "WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~x86~~7.6.7600.256"
2014-05-07 09:34:44:932
1036 f08
Setup Setup package "WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~x86~~7.6.7600.256" is already installed.
2014-05-07 09:34:44:933
1036 f08
Setup Evaluating applicability of setup package "WUClient-SelfUpdate-Aux-TopLevel~31bf3856ad364e35~x86~~7.6.7600.256"
2014-05-07 09:34:45:048
1036 f08
Setup Setup package "WUClient-SelfUpdate-Aux-TopLevel~31bf3856ad364e35~x86~~7.6.7600.256" is already installed.
2014-05-07 09:34:45:048
1036 f08
Setup Evaluating applicability of setup package "WUClient-SelfUpdate-Core-TopLevel~31bf3856ad364e35~x86~~7.6.7600.256"
2014-05-07 09:34:45:234
1036 f08
Setup Setup package "WUClient-SelfUpdate-Core-TopLevel~31bf3856ad364e35~x86~~7.6.7600.256" is already installed.
2014-05-07 09:34:45:235
1036 f08
Setup SelfUpdate check completed. SelfUpdate is NOT required.
2014-05-07 09:34:48:415
1036 f08
PT +++++++++++ PT: Synchronizing server updates +++++++++++
2014-05-07 09:34:48:415
1036 f08
PT + ServiceId = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7}, Server URL = http://csd26.csd.local:80/ClientWebService/client.asmx
2014-05-07 09:34:48:424
1036 f08
PT WARNING: Cached cookie has expired or new PID is available
2014-05-07 09:34:48:424
1036 f08
PT Initializing simple targeting cookie, clientId = 97287ab2-5824-44d2-bf93-8a98da659f77, target group = CO, DNS name = c18714.csd.local
2014-05-07 09:34:48:424
1036 f08
PT Server URL = http://csd26.csd.local:80/SimpleAuthWebService/SimpleAuth.asmx
2014-05-07 09:34:48:454
1036 f08
PT WARNING: GetCookie failure, error = 0x8024400D, soap client error = 7, soap error code = 300, HTTP status code = 200
2014-05-07 09:34:48:454
1036 f08
PT WARNING: SOAP Fault: 0x00012c
2014-05-07 09:34:48:454
1036 f08
PT WARNING: faultstring:Fault occurred
2014-05-07 09:34:48:454
1036 f08
PT WARNING: ErrorCode:ConfigChanged(2)
2014-05-07 09:34:48:454
1036 f08
PT WARNING: Message:(null)
2014-05-07 09:34:48:454
1036 f08
PT WARNING: Method:"http://www.microsoft.com/SoftwareDistribution/Server/ClientWebService/GetCookie"
2014-05-07 09:34:48:454
1036 f08
PT WARNING: ID:cb5babad-3a1d-4e6b-946e-736ed4746e3f
2014-05-07 09:34:48:464
1036 f08
PT WARNING: Cached cookie has expired or new PID is available
2014-05-07 09:34:48:464
1036 f08
PT Initializing simple targeting cookie, clientId = 97287ab2-5824-44d2-bf93-8a98da659f77, target group = CO, DNS name = c18714.csd.local
2014-05-07 09:34:48:464
1036 f08
PT Server URL = http://csd26.csd.local:80/SimpleAuthWebService/SimpleAuth.asmx
2014-05-07 09:35:06:497
1036 e70
AU Forced install timer expired for scheduled install
2014-05-07 09:35:06:497
1036 e70
AU UpdateDownloadProperties: 0 download(s) are still in progress.
2014-05-07 09:35:06:497
1036 e70
AU Setting AU scheduled install time to 2014-05-08 07:00:00
2014-05-07 09:35:06:498
1036 e70
AU Successfully wrote event for AU health state:0
2014-05-07 09:35:14:236
1036 f08
PT +++++++++++ PT: Synchronizing extended update info +++++++++++
2014-05-07 09:35:14:236
1036 f08
PT + ServiceId = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7}, Server URL = http://csd26.csd.local:80/ClientWebService/client.asmx
2014-05-07 09:35:20:118
1036 f08
Agent * Found 0 updates and 79 categories in search; evaluated appl. rules of 859 out of 1494 deployed entities
2014-05-07 09:35:20:194
1036 f08
Agent *********
2014-05-07 09:35:20:194
1036 f08
Agent ** END ** Agent: Finding updates [CallerId = AutomaticUpdates]
2014-05-07 09:35:20:194
1036 f08
Agent *************
2014-05-07 09:35:20:209
1036 f08
Report CWERReporter finishing event handling. (00000000)
2014-05-07 09:35:20:209
1036 f08
Report CWERReporter finishing event handling. (00000000)
2014-05-07 09:35:20:209
1036 bb8
AU >>## RESUMED ## AU: Search for updates [CallId = {5AA2F00A-8964-4543-A740-EC45C5FD5752}]
2014-05-07 09:35:20:209
1036 bb8
AU # 0 updates detected
2014-05-07 09:35:20:209
1036 bb8
AU #########
2014-05-07 09:35:20:209
1036 bb8
AU ## END ## AU: Search for updates [CallId = {5AA2F00A-8964-4543-A740-EC45C5FD5752}]
2014-05-07 09:35:20:209
1036 bb8
AU #############
2014-05-07 09:35:20:210
1036 bb8
AU Successfully wrote event for AU health state:0
2014-05-07 09:35:20:210
1036 bb8
AU Featured notifications is disabled.
2014-05-07 09:35:20:211
1036 bb8
AU AU setting next detection timeout to 2014-05-08 11:19:46
2014-05-07 09:35:20:211
1036 bb8
AU Setting AU scheduled install time to 2014-05-08 07:00:00
2014-05-07 09:35:20:212
1036 bb8
AU Successfully wrote event for AU health state:0
2014-05-07 09:35:20:212
1036 bb8
AU Successfully wrote event for AU health state:0
2014-05-07 09:35:25:183
1036 f08
Report REPORT EVENT: {C1B39107-F517-4477-AAE3-9B1F1D6002BF}
2014-05-07 09:35:20:193-0400 1
147 101
{00000000-0000-0000-0000-000000000000}
0 0 AutomaticUpdates
Success Software Synchronization
Windows Update Client successfully detected 0 updates.
2014-05-07 09:35:25:183
1036 f08
Report REPORT EVENT: {669B9537-BB71-4190-BA58-A97F725AE4D8}
2014-05-07 09:35:20:194-0400 1
156 101
{00000000-0000-0000-0000-000000000000}
0 0 AutomaticUpdates
Success Pre-Deployment Check
Reporting client status.
2014-05-07 09:35:25:184
1036 f08
Report CWERReporter finishing event handling. (00000000)
2014-05-07 09:37:32:440
1036 f08
Report Uploading 3 events using cached cookie, reporting URL = http://csd26.csd.local:80/ReportingWebService/ReportingWebService.asmx
2014-05-07 09:37:32:454
1036 f08
Report Reporter successfully uploaded 3 events. -
Has anyone else had an iPhone 5 that's only been dropped once accidentally and smashed the screen? Mine has done that and as I don't have mobile insurance it'll cost a fortune to replace it through Apple!! I don't think the phone is fit for purpose as any other phone i've had has been dropped and been fine and surely they expect a mobile to be accidentally dropped at least once!!
Yeah, sad to hear of your accident:
If you dropped it on concrete- that is the hardest material and chance of damage goes up tremedously. Actually you are fortunate not to have mobile insurance because then you have to trust your insurance provider to provide you with a quality replacement or repair.
Apple is always spot-on you know what you're getting. They can always attempt to replace JUST the display on an iPhone 5 for $149 + tax is what I've heard them quote others. But they said it's $229 to replace your phone with another whole new iPhone 5. Get the AppleCare+ because two of these incidents will only cost you $49 + tax in the future! -
If I only want to write documents and surf the web.
Do I have to buy any software if I only want to write documents and surf the web?
For surfing the web no. For writing documents you have a number of choices. Youu could buy microsoft word, it is very expesive but some do like it because it is the same as they have a t work. the second option and the one that I prefer is apple's Pages. It is available from the app store and is a very good full features program. The third and the free option is down load open office for mac, which is pretty much like microsoft wod.
-
My "Home" calendar only appears on my Mac and not the Cloud. If I uncheck "home on my mac" all events disappear even though it's still checked on the iCloud calendars.
(unless you already have one) Create a new empty calendar from the iCal file menu, select which account you want to create it in.
If you have only a few appointments you can move them individually by editing them and changing the calendar in the edit options.
Alternatively you can copy all the appointments in one calendar to another and delete the original.
To copy a calendar ctrl-click on it from the menu that appears when you select the calendar button (top left corner of iCal) and choose export (export it to your desktop for ease)
Double click the exported file and choose the new empty calendar to import them into.
Ctrl-click on the original calendar from the menu that appears when you select the calendar button and choose delete. -
High frequency and resolution with 6036E
I am trying to drive a triangular wave signal with about 250Hz, with the greatest resolution possible. However, due to buffer restrictions and sampling restrictions, I can't seem to be able to produce more than about 10 Hz. Is there a really good way to produce such a higher-frequency signal, with no loss to resolution?
It looks like you need a faster output card. The best that the 6036E can do is about a 10kHz update rate. Do the math and that means cranking as hard as it will go, the card will only put about 40 updates in each cycle of the output waveform.
From what you said, a 10 Hz signal is ok. So if you extrapolate out to 250Hz you need to be looking for a card with an update rate of about 250kHz--all things otherwise being equal.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
I'm using Word 2010, and up until a few weeks ago have never had trouble printing envelopes. Then one day I clicked on Envelopes to print one, and it only
brought up Envelope Options instead of the dialog box to print envelopes. Eventually the problem went away and it worked again. Then it happened again last week. I closed down everything Office-related and started back up, and it worked again. Now it's happened
again today, and even after shutting all Office products down, it still won't let me print envelopes. I have two printers and it happens no matter which one I choose. The strange thing is it apparently only happens on certain documents, because I can open
up another letter, hit "Envelopes" and paste in the address from the letter that won't print, and it will work fine. What is wrong with these certain documents that makes Word unable to bring up the print dialog? I can't find anything online relating
to this issue. Any ideas?1. If you empty the whole document then click the Evelopes buttong, what will happen?
2. Check if there are any special macros in these specific documents
3. Try remove both of these printers, and check this issue again.
4. Will this behavior also happen when open these documents from the other computer?
You can also share a copy of the document in SkyDrive so I can check on it. (Remove any sensitive information)
Max Meng
TechNet Community Support -
Hi there
I have a program that reads from a table done in excel and finds two numbers from the table(they're different all the time). Those numbers are represented in Hz. What I want now is how to merge those two numbers as frequencies and output them and hear them from the speaker as audio. I also have the part of hearing them done but I can't figure out a way to have it connected so that it doesn't matter which numbers come up, it'll update it accordinaly. I appreciate any helpers.
Thanks a lotThen I'm not sure what you're doing, or what your definition of "add" is. Here is the example I posted, with Signal 1 at 250 Hz and Signal 2 at 500 Hz:
Message Edited by smercurio_fc on 01-15-2009 03:46 PM
Attachments:
add freqs.png 25 KB
add freqs.vi 123 KB -
Bridge CS5 Output Module only uses first 20 images and ignores the rest
This happens with all the different styles, both PDF and Web. Even though more than 20 images are selected, only 20 show up both in the preview and in the final PDF or web page. It just started happening.
It just started happening.
This always means First Aid for Bridge, that is first to purge cache for
folder using the menu tools/cache/purge cache for folder while having the
content window pointed to the folder the problem occurs.
Second option is renew preferences by holding down option key while
restarting bridge and choose refresh preferences. Try again and if OK set
prefs again to your wishes to see if it still works. -
I was watching trailers on my Apple TV 2nd Gen, when my ears were viciously assaulted by a terribly unpleasant high-pitch tone. This occured at the beginning of the trailer for "Katy Perry: Part of Me". I tried other trailers and the tone was not repeated, but every time I watched that trailer through my Apple TV, the tone persisted, or rather, every time I selected that trailer through the AppleTV-Movies-Trailers. When I streamed the trailer from my iPhone, the tone was not present, nor was it present in the version watched from my MBA. I am curious if anyone else can duplicate this problem.
Yes it is the correct workflow, I've done it before.
I found a workaround: instead of transcode the clips I digitized from 29.97 to 23.98 first, I create the merged clips while the video is still the same frame rate than the audio (29.97). Then I apply the "cinema tools reverse telecine" on the merged clip.
This merge doesn't present the problem I had before. It is a bit much more complicated than the other way, because the transcoded merge is not always sync to the frame.
Does anyone had experienced the same problem than me with the 6.0.2 update? -
When KF value only provided at higher level and not at more detailed level
Dear Experts
I have a multiprovider consisting 2 DSOs:
1. DSO for price.
Eg.
Char-A__Char-sub1___Char-sub2___KF_PRICE
AAAA__ AA11________AA22________$10
AAAA__AA11_________AA23_______ $17
As shown above, AAAA is made up of 2 sub-items AA22 and AA23 , each priced differently.
2. DSO for Qty
Char-A____KF_QTY
AAAA_____200
As shown above, this DSO for quantity does not have sub-item qty. What should be the quantities for each sub-item? Its always exactly the same as the Qty at Char-A level . Eg. 200 pieces of AAAA is made up of 200 pieces of AA22 and AA23.
The user wants to drilldown to sub-item levels to see Price X Qty.
I tested, when not drilled down to these levels, the display and figures are correct.
But when drilled down , the report will have additional line for each record due to the fact that the Qty is not at sub-item level.
So, qty will be shown in another line and the price will be on the line with the sub-item.
How can this situation be resolved using BEx? Else, I would use staging to resolve this. But I am hoping BEx level can resolve it. If staging is used, I would need to copy the same qty to each sub-item for each record by adding qty field into Price DSO or union the 2 DSOs into 1 DSO. But I thought Multiprovider is already a Union?
Kindly could you provide me some advice, clues or opinion?
Thanks in advance.
My Best regards
PascalHi,
This issue can be resolved by using constant selection
For step by step approach please refer the below pdf.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70dcd7b5-6a3d-2d10-c984-e835e37071a2?QuickLink=index&overridelayout=true
Hope it helps.
Regards,
AL -
Sql query-filter if 1 set of data exists and in the same time 2 set doesnt
Hi guys,
I need to write a query where I filter on certain data being present, but in the same time other data from the same table being not present.
For example:
ProceduresTable:
Type 1
Type 1
Type 2
Type 2
Type 1
MyTable:
Name
OtherFields
JoiningTable (many to many)
ProceduresTable_Key
MyTable_Key
I need to select all records from MyTable and Procedures for which there are procedures from Type 1 but there are no procedures from Type 2 in the same time.
So far I've been only able to do that by using subqueries and I think there should be an easier way to do that.
Here is what I have:
Select * From MyTable, Procedures, JoiningTable Where JOINING_CONDITIONS AND Type = 1 AND NAME_SOME_COLUMN NOT IN (SELECT NAME_SOME_COLUMN FROM ... WHERE Type = 2 and inner.Name = outer.Name)
Hope you understand my meta code. I have Oracle 9 db.
Thanks a lot!Hi,
Welcome to the forum!
Whenever you have a question, it helps if you post a specific example. Include CREATE TABLE and INSERT statements for a little sample data, and also post the results you want from that data.
if you can use commonly available tables (like those in the scott or hr schemas) to illustrate your proble, then you don't have to post the sample data; just the results.
For example, I think you're asking something like this:
"How can I find information about people in the sciott.emp table who are in a department that has at least one CLERK ( that is, a row with job='CLERK') but no SALESMAN? That is, I want these results:
{code}
ENAME DEPTNO JOB
CLARK 10 MANAGER
KING 10 PRESIDENT
MILLER 10 CLERK
JONES 20 MANAGER
FORD 20 ANALYST
ADAMS 20 CLERK
SMITH 20 CLERK
SCOTT 20 ANALYST
{code}
One way is to use CASE expressions instead of WHERE clauses to test for the criteria, then using the reults of the CASE expressions in the WHERE clause.
For example:
WITH got_cnts AS
SELECT ename, deptno, job
, COUNT ( CASE
WHEN job = 'CLERK'
THEN 1
END
) OVER (PARTITION BY deptno) AS clerk_cnt
, COUNT ( CASE
WHEN job = 'SALESMAN'
THEN 1
END
) OVER (PARTITION BY deptno) AS salesman_cnt
FROM scott.emp
SELECT ename, deptno, job
FROM got_cnts
WHERE clerk_cnt > 0
AND salesman_cnt = 0
;The problem here is that you can't always tell, by looking at any one row, if it should be included or not; in this case, you need to know something about the department as a whole. Analytic functions can look at the department as a whole, but analytic functions are computed after the WHERE clause is applied, so to use the results of the analytic functions in a WHERE clause, we need to do the analytics first, in a sub-query, and the WHERE clause later.
Sometimes (as in the example above) analytic functions are useful; other times, aggregate functions are more appropriate, depending on the exact requirements.
Edited by: Frank Kulash on Apr 12, 2010 9:00 AM -
I have just had my Toshiba laptop hard drive replaced. This has resulted in all previous content held on the laptop to be lost. I wanted to try and transfer my music library from my ipad to the laptop, but it will not allow me to do so. The message is that the ipad is linked to another computer and it will only allow the transfer of the items purchased on through the ipad and nothing else. Does anyone know if the full library can be transferred back to the computer?
You need to transfer the iTunes Library from the most recent backup you made before the hard drive was replaced.
You can't transfer the full iTunes Library from the iPad back to iTunes.
There are third-party Windows applications that will transfer data from an iOS device, but they don't re-create the iTunes Library exactly as it was before. -
Wish to setup a group message but don't want users to know its a group and only want replies to be sent to me not the group... How do I do this???
BCC (?) [Blind Carbon Copy]
-
why the iBooks doesnt belong to the programm which can transfer content from my pc to the new ipad? (whe i first installed itunes on the pc, every book was transfered in the iBooks' library, but not any more!).
AND yea i afraid to sync my iphone and lose everything ;( i had everything perfect sync ing perfect ical,contacts,mail,apps and now sence new library I dont wana lose everything.....my hole life runs on my fone i need help bad
Maybe you are looking for
-
IOS 5 iPhone duplicating some calendar events when iCal events on iMac have no duplicates
I've searched in vain on these forums but can't find a problem quite like mine. I am running - iPhone 4 with iOS 5.0.1 - iMac with Lion OS X 10.7.2 I was using iCloud for all my calendars but found that my phone battery was draining very quickly, so
-
Windows 8 nokia lumia 620 update provide windows8....
Will you provide windows8 updte to windows8.1
-
Message determination and output control
Hi! We want to set up message determination procedure per company code. We have several companies and one purch.org, so if only one of the companies e.g. want to output a PO to a Vendor through EDI, this is will apply to all company codes... any sugg
-
Re: Need help with escalated complaint - seeking return / refund
I have purchased laptop a month back. Within 2 days of purchase simply by opening the flap, its plastic cracks. I have been chasing laptop lenovo for 1 month now. No replacement is happening for laptop. I have sent so many reminders. No one is doing
-
BDC for Catz_appr_lite
Hi Guys, Can we create a BDC for Approve working times (TCode - cats_appr_lite)? Sample code will help Regards Gokul Points will be rewarded