x

New problems. I'll get out all the usernames and passwords on the customers table and registered before 2000, I wrote:


SELECT username, passwd, regdatum
FROM KUNDER
WHERE regdatum < TO_DATE ( '2000-01-01','YYY-MM-DD');
more ▼

asked Sep 26, 2012 at 12:36 PM in Default

mallan gravatar image

mallan
50 2 3 4

Forgive me, but what's the question? Also, is this for Oracle?

If you can clarify a little more as to what your question is, we might be able to assist you.
Sep 26, 2012 at 01:35 PM JohnM
Yes, oracle SQL, and I wonderd what´s wrong with my code :-) But a have found the answer, I´m over doing it a little :-)
Sep 26, 2012 at 01:42 PM mallan
Awesome! Can you put the answer down and then mark it as the solution? This will allow others who might be looking for a similar problem to find your solution. Thanks!
Sep 26, 2012 at 01:44 PM JohnM
(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first
Answer: • SELECT username, passwd, regdatum • FROM KUNDER • WHERE regdatum < '2000-01-01';
more ▼

answered Oct 04, 2012 at 11:12 AM

mallan gravatar image

mallan
50 2 3 4

Excellent! Thanks for supplying the answer. Don't forget to mark it as the solution now. Thanks!
Oct 04, 2012 at 12:42 PM JohnM
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x378

asked: Sep 26, 2012 at 12:36 PM

Seen: 451 times

Last Updated: Oct 04, 2012 at 04:49 PM