Trying to understand how the AND and OR keywords works
I read that the precedence of using AND and OR in the where clause can be determined by where you put the parenthesis. I tested it and it is true. How come .........
THIS.....
SELECT invoice_number, invoice_date, invoice_total
FROM invoices
WHERE (invoice_date > '01-MAY-2008' OR invoice_total > 500)
AND invoice_total - payment_total - credit_total > 0
Order By Invoice_Number; AND THIS....
SELECT invoice_number, invoice_date, invoice_total
From Invoices
WHERE invoice_date > '01-MAY-2008' OR invoice_total > 500
And Invoice_Total - Payment_Total - Credit_Total > 0
ORDER BY invoice_number;GIVE ME DIFFERENT RESULTS BUT THIS..............
Select distinct (Select Count(Invoices.Vendor_Id) From Invoices Where Invoices.Invoice_Date < '01-MAY-2008') as Test_Column
From Invoices
Where (Invoice_Date > '01-MAY-2008' Or Invoice_Total > 500)
And Invoice_Total - Payment_Total - Credit_Total > 0;AND THIS.............
Select distinct (Select Count(Invoices.Vendor_Id) From Invoices Where Invoices.Invoice_Date < '01-MAY-2008') as Test_Column
From Invoices
Where Invoice_Date > '01-MAY-2008' Or Invoice_Total > 500
And Invoice_Total - Payment_Total - Credit_Total > 0;DONT GIVE ME DIFFERENT RESULTS.
Edited by: mookjais on Feb 24, 2011 8:43 PM
I tested the statements and the syntaxes (sp) are correct, here is the table. It's a sample table so I can give all the values that are in the table also.
CREATE TABLE invoices
invoice_id NUMBER,
vendor_id NUMBER NOT NULL,
invoice_number VARCHAR2(50) NOT NULL,
invoice_date DATE NOT NULL,
invoice_total NUMBER(9,2) NOT NULL,
payment_total NUMBER(9,2) DEFAULT 0,
credit_total NUMBER(9,2) DEFAULT 0,
terms_id NUMBER NOT NULL,
invoice_due_date DATE NOT NULL,
payment_date DATE,
CONSTRAINT invoices_pk
PRIMARY KEY (invoice_id),
CONSTRAINT invoices_fk_vendors
FOREIGN KEY (vendor_id)
REFERENCES vendors (vendor_id),
CONSTRAINT invoices_fk_terms
FOREIGN KEY (terms_id)
REFERENCES terms (terms_id)
);Edited by: mookjais on Feb 24, 2011 8:45 PM
Similar Messages
-
Now, I understand how the backup and restore the backup features function. However, if I don't want to transfer the music that I have on iTunes to my phone, how do I avoid it? How do I not transfer the music or take it out of my iPhone if it is already there? I really do not want any music on my iPhone because I have an iPod for that. Thanks. Hope someone can help.
When you connect your phone and start iTunes on the left side you will see your phone listed under devices.Click on te icon next to it that looks like a battery. Click on the music button at the top and uncheck the sync music box.
-
In an inbuild example of can .. that CAN transmit periodic vi .. i am unable to understand how the extended and standard frame is set?
plz help me .. stuck up very badly
thanks
mahadev
Solved!
Go to Solution.I suggest this KB which explains usage of Ext IDs with NI-CAN
http://digital.ni.com/public.nsf/allkb/2FA120A37EDBC51D86256854004FB0C7 -
Trying to understand how the DDK works
Hi,
1.) If I wanted to be able to use a wide variety of NI DAQ cards
under the QNX RTOS, would the NI Measurement Hardware DDK be able to
faciliate this?
2.) From looking at the web-page describing the DDK, it looks to
me that the driver code written by NI is done in a platform indepedant
way, using only ANSI C/C++ function, and when it needs
to do something platform specific, it calls out to functions that I can
provide. Is this correct? I am envisioning having to
provide code to get PCI resources, attach to interrupt, hw I/O.... am I
on the right track?
3.) I've downloaded the NI HW DDK OTHER code, but it's not clear to me
how the platform-dependant code for QNX will integrate with this. I
have the DAQ PCI_E_series Register Level Programming Manual
and STC manual, but I can't find any docs on how to use the code in
this archive. What am I missing?
ThanksHi,
1.) If I wanted to be able to use a wide variety of NI DAQ cards
under the QNX RTOS, would the NI Measurement Hardware DDK be able to
faciliate this?
Depends. MHDDK provides register information for a number of NI
DAQ devices. There isn't an API that abstracts the measurement
task form the hardware, like DAQmx does.
You would need to write the high level functions for each type of
device you what to use and provide an API to your application that
would select the appropriate device specific function. I guess
something like
startDevice()
// somehow get deviceTypeId
switch (deviceTypeId)
case kMSeries:
mseries_startDevice();
case ESeries
eseries_startDevice();
or using function pointers, or c++ inheritance. There are many possibilities...
2.) .... am I
on the right track?
Yes. MHDDK only abstracts device access using the iBus and
tAddressSpace objects. The iBus contains the address spaces of
the device. You request address spaces from the bus and use it
write/read from the device. For PCI devices the read/write
functions using pointer manipuilation. For a PCMCIA device on a
x86 you would use the port io instructions.
iBus objects are created and destroy using the factory methods
acquireBoard() and releaseBoard(). This is where all the platform
dependent magic should occur. Here are a couple of KBs with more info:
Measurement Hardware Driver Development Kit Register Level Programming Architecture
How to Make an iBus
3.) I've downloaded the NI HW DDK OTHER code, but it's not clear to me
how the platform-dependant code for QNX will integrate with this. I
have the DAQ PCI_E_series Register Level Programming Manual
and STC manual, but I can't find any docs on how to use the code in
this archive. What am I missing?
In osiUserCode.cpp, implement acquireBoard(tChar*) and
releaseBoard(iBus *&). To acquire the board you usually
have to loacte the device, find bar0 and bar1 , and map them to the
current address space.
This article shows exactly how to do that in QNX: Talking to hardware under QNX Neutrino
Also, create a QNX specific structure to
attach to the iBus where you can store any handles you need for
releaseBoard() to clean up.
Hope this helps.
Diego -
Help in understanding how the policy "SI-PerDiskAvgServiceTime-AT" work
Hello Sir, I am trying to deploy policy "SI-PerDiskAvgServiceTime-AT" on servers in my environment. And after deployment this policy is triggering so many alerts. I read some online forums and learnt that this is an auto-thresholding policy relying on historical data. Can you please help me understand how this policy works. Thank You
I have decided to ditch Visual Communicator as an option.
Apart from the poor support, I have tested the Trial version and it would not make sense to use the application in its cirrent form.
In a ten minute period using 2 cameras as a test, the application froze and crashed four times. Not acceptable as reliability is crucial.
The test was done on a Windows 7 64 bit machine with 4 physical Xeon Quad core 3GHZ processors and 32 GB RAM with a 2GB Graphics card, so performance was not the issue.
the application is just not stable.
I am getting better support and results from both Wirecast 4 and Cutfour. -
I don't understand how the API is meant to work
I understand the concepts and all, but I don't understand the structure of the API and how it works
Please help
thankyouIt sounds like you need to start with the absolute basics. Click the "Tutorials" link on the left side of this page, and/or get a good intro to Java book. It doesn't make sense to even try to explain how to use the APIs until you have some concept of the language basics. When you do, then you can ask questions about specific problems you're having with the APIs.
-
Trying to understand how the sync works
So this is what i am trying to figure out.
I know that if i create a document in pages on my mac that i need to upload the doc via icould for it to show in iwork. I also know that if i access that file from my iphone or ipad and make changes to that document that it automatically updates it on icloud.
This is my question, Is there a way when i make changes to that document on my mac that it automatically updates it like my iphone and ipad does on icloud. Coz whats happening at the moment is every time i make a change to the doc on my mac its currently NOT updating it on icloud. I am doing something wrong or does it just not update the document?
Thanks for your help!If you change a document on your iOS device, then you need to download it from iCloud.com to make changes to it on your mac. Once you make changes on the mac, if you want to work on it on iOS devices again, you need to upload it again to iCloud.com.
-
TS1702 I don't understand how the report a problem process works
I was advised by an app support team member that I need to report a problem on their app to get my money refunded. The purchase was an in-app purchase for an upgrade to MVP in the Mapmyride app.The mapmyride support said that thre is a bug in their app tha will not allow such in-app upgrade. I went to my itunes account and picked the report a problem button and nothing happened. I expected it to go farther to ask me what the problem was and there was nothing. Is there more for me to do to get my money refunded for this purchase? my purchase was on 3/28 in the mapmyride app. Thankyou.
There are two ways in which drop zones are available in the Keynote title template. What Luis has shown you is the normal way in which a title placed over a clip shows you the original clip with the title text. That is called a Final Cut placeholder type of drop zone. Keynote also offers a drop zone to be used as a background choice instead of a gradient or solid as you see in Luis's post. This makes a very nice title effect as you can use any clip for that background. That is what I thought you were refering to when you you said drop zone. Keynote is one of the nicer titles we have available in FCP because of this feature. Glad you got it sorted out.
-
I am new to mac and am trying to understand how to do something i did in Word. In Word you can set up document so that you have 2 pages per 8.5 x 11 landscape page. Each page is treated as a separate page. Can this be done in word for mac 2008?
Suggest you ask on the Microsoft Mac forums since it's their software you have a question about:
http://answers.microsoft.com/en-us/mac -
My ipod touch 4 gen is in recovery mode and i dont know how to get out of it,i tried everything like hold the home and top button at the same time. All it did what g to the apple logo and went back to recovery mode any help?
Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...
kevinpowell1 wrote:
how can i get it out of recovery mode?
Make sure you have the Current Version of iTunes Installed on your computer
iTunes free download from www.itunes.com/download
Then See Here > http://support.apple.com/kb/HT1808
You may need to try this More than Once... Be sure to Follow ALL the Steps...
Take your time... Pay particular attention to Steps 3 and 4.
Some users have reported as many as 8 or 9 attempts were necessary before success.
After you have Recovered your Device...
Re-Sync your Content or Restore from the most recent Backup...
Restore from Backup > http://support.apple.com/kb/ht1766
If the issue persists...
Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
Be sure to make an appointment first... -
i tried to conect to the itunes and it told me to conect the itunes support,what does it mean and how do i do this?
It probably means there is some question about your account. You can email the iTunes Store support team at one of the links below:
For USA store: http://www.apple.com/support/itunes/contact.html?form=connection&topic=Connectin g%20to%20iTunes%20Store&subtopic=Connecting%20with%20a%20computer
For Israel store: http://www.apple.com/asia/support/itunes/contact.html?form=connection&topic=Conn ecting%20to%20iTunes%20Store&subtopic=Connecting%20with%20a%20computer
If I guessed wrong, go to apple.com/support/itunes for your country and pick the approriate topic. -
I have a US Mac living in the UK. I tried to download both the British and American version. Both state "You cannot use the application Firefox with this version of MAC OSX". Any suggestions how to proceed?
Firefox 4 requires at least OS X 10.5 and an Intel Mac. You can get the latest version of Firefox 3.6 which works on OS X 10.4 from http://www.mozilla.com/en-US/firefox/all-older.html
-
hey my iphone was working perfectly and then i sent it to check up and it came back with the itunes icon and data cable on it. so i tried plugging it in the computer and a message on itunes came up saying theres a problem with your phone and it may be damaged and cannot be activated. HELP PLEASE!!
Why on earth send a Worning phone for service sounds like cutting up a Heaththy PET to see how it looks on the inside
-
How the downconversion and sampling
Dear Sir/Madam,
I am working on the NI card Pxi-5660 (NI Pxi-5600 & NI Pxi-5620) and I
would need to understand better how the downconversion and sampling
works:
1) When we configure the card, we set the carrier frequency fc and
bandwidth B to control downconversion. I understand that the band that
we consider is between fc-B/2 and fc+B/2. How is this band
downconverted? (i.e. how do you choose the frequency of local
oscillator? Is it fc-B/2?)
2) Concerning the digitizer. How is the sampling frequency chosen as a
function of fc and B? Does it work at a fixed sampling frequency of
64Ms/s or do you change the sampling frequency as a function of B?
I would appreciate if you can help me on these issues. Thank you very
much in advance.
Best regards,Hi Babu,
Campaign Type controles the Objective and Tactics in Marketing Planner.
Based on Type we define Objectives and Tactics in Marketing Planner/Campaign.
Thanks,
Srini. -
i downloaded the GV app to my iphone but i'm trying to set up the app and it says it can't connect to google when i try to sign in to my google account.... any ideas what's wrong? i can access my gmail account just fine with my gmail app on the same phone
What's a GV app?
Maybe you are looking for
-
Attaching a searchhelp to a parameter
How can we attach a searchhelp to a parameter or select-option? regards cs
-
I am trying to add an album that my daughter purchased on her iPhone to my phone. In the iTunes app it is showing as purchased but I don't have the Option to download it to my device. Any suggestions...
-
PhotoShop CS6 conflict with PhotoShop CC?
Hi, i hv photoshop cs6 on my pc,and now i'm try to install photoshop cc. but hv conflicting and it said that already install an evaluation version of CC. any solution?..
-
New Playbook won't accept file transfer from blackberry or computer
I bought a Tablet 3 days ago and spent an insane amount of time searching for an answer. It bridges fine with my 9700 and I can go back and forth, my wifi connection / bluetooth are fine. When I try to send photos from my 9700 to my Tablet, I get a
-
After the original Fujitsu 160gb hd died in my MacBook Pro (model A1226), I was advised at the Mac store to upgrade to a SSD. I installed the crucial m4 256gb internal SSD and powered on MacBook Pro from the Snow Leopard install disk so I could use