x
login about faq Site discussion (meta-askssc)

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 '12 at 12:36 PM in Default

mallan gravatar image

mallan
50 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 '12 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 '12 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 '12 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 '12 at 11:12 AM

mallan gravatar image

mallan
50 4

Excellent! Thanks for supplying the answer. Don't forget to mark it as the solution now. Thanks!

Oct 04 '12 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.

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



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x359

asked: Sep 26 '12 at 12:36 PM

Seen: 232 times

Last Updated: Oct 04 '12 at 04:49 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.