Current location: Hot Scripts Forums » Other Discussions » Database » Sql Help


Sql Help

Reply
  #1 (permalink)  
Old 02-21-08, 09:06 PM
abq47 abq47 is offline
New Member
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Sql Help

I need to list all employees and their date of hire (HireDate) in the format "ALLEN was hired on the 20TH of FEBRUARY."

Emp Table

EmpNo Ename Job Mgr HireDate
7369 SMITH CLERK 7902 12/17/1980
7499 ALLEN SALESMAN 7698 2/20/1981
7521 WARD SALESMAN 7698 2/22/1981
7566 JONES MANAGER 7839 4/2/1981

Month table

Month MonthName
1 January
2 February
3 March
4 April


ordinals table
DayNumber DayOrdinal
1 1st
2 2nd
3 3rd
4 4th
Reply With Quote
  #2 (permalink)  
Old 02-21-08, 10:45 PM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
Thread moved to database.

What exactly do you need help with?
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Reply With Quote
  #3 (permalink)  
Old 02-22-08, 09:33 AM
abq47 abq47 is offline
New Member
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Sql Help

I have no idea on how to relate the months table to the ordinal table to parse the hiredate to a string i.e. 11/20/08 into 11th November 2008
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: ResultSet not open, operation 'next' not permitted. Verify that autocommit is qirana Everything Java 2 04-14-07 04:06 AM
2 Months Free Hosting -Windows 2003 | Cold Fusion MX | SQL Server | ASP.NET Gineey General Advertisements 0 01-11-06 05:31 AM
Help with ASP & FORMS blessedrub ASP 0 01-23-04 10:22 AM
ASP Calendar..HELP...pls jimthepict ASP 1 07-31-03 05:01 PM
change my field in this example sal21 ASP 3 07-14-03 02:49 AM


All times are GMT -5. The time now is 05:02 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.