dbTalk Databases Forums  

Re: AdventureWorks - Difference between WHERE clause and output

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Re: AdventureWorks - Difference between WHERE clause and output in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Arnie Rowland
 
Posts: n/a

Default Re: AdventureWorks - Difference between WHERE clause and output - 12-13-2006 , 01:18 PM






Duh-O!!!

What you are looking at is the OrderDate -which happens to be July 1st,
2001.

If you add ShipDate to the SELECT columnlist, you will see that the ShipDate
is properly retrieved: '20010708'.


--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf


"Ruel" <Ruel (AT) discussions (DOT) microsoft.com> wrote

Quote:
The following code displays July 1 data instead of July 8. Why?

USE AdventureWorks
SELECT OrderDate,SalesOrderNumber,CustomerID,Subtotal,Tax Amt,TotalDue
FROM Sales.SalesOrderHeader
WHERE ShipDate='20010708'

Appreciate your response.

Ruel



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.