Click here to Skip to main content
15,889,992 members
Home / Discussions / Database
   

Database

 
AnswerRe: problem populating a combo box Pin
Henry Minute20-May-09 0:41
Henry Minute20-May-09 0:41 
AnswerRe: problem populating a combo box Pin
saanj28-May-09 3:12
saanj28-May-09 3:12 
QuestionMaking the local database to a remote database server Pin
Subin Alex19-May-09 20:14
Subin Alex19-May-09 20:14 
AnswerRe: Making the local database to a remote database server Pin
Mycroft Holmes19-May-09 23:22
professionalMycroft Holmes19-May-09 23:22 
QuestionLoading an array in a custom user function... [modified] Pin
new_phoenix19-May-09 14:59
new_phoenix19-May-09 14:59 
QuestionMessage Closed Pin
19-May-09 14:44
abbasi12319-May-09 14:44 
RantRe: Hiring home based workers (2718) Pin
Ashfield19-May-09 20:59
Ashfield19-May-09 20:59 
GeneralQuery based on Effective Date Pin
Brady Kelly19-May-09 4:20
Brady Kelly19-May-09 4:20 
I'm having a slight brain fart today, but maybe somebody can help me. I need to get a tariff, given an effective date in a tariff table, as follows:
create table tariff
( 
	tariffid int identity,
	tariffdate smalldatetime,
	tariff int
)

The best I can come up with is
select max(tariffid) from tariff where '20090501' > tariffdate

where '20090501' is the date I want to find the tariff for, but my query doesn't work in this case because '20090501' is less than my first effective date.


You really gotta try harder to keep up with everyone that's not on the short bus with you.
- John Simmons / outlaw programmer.

GeneralRe: Query based on Effective Date Pin
David Mujica19-May-09 4:44
David Mujica19-May-09 4:44 
GeneralRe: Query based on Effective Date Pin
Brady Kelly19-May-09 5:00
Brady Kelly19-May-09 5:00 
GeneralRe: Query based on Effective Date Pin
Luc Pattyn19-May-09 5:12
sitebuilderLuc Pattyn19-May-09 5:12 
Questionlogin problem Pin
Jondo24shoots19-May-09 3:16
Jondo24shoots19-May-09 3:16 
AnswerRe: login problem Pin
Mycroft Holmes19-May-09 14:37
professionalMycroft Holmes19-May-09 14:37 
GeneralRe: login problem Pin
Jondo24shoots19-May-09 22:13
Jondo24shoots19-May-09 22:13 
GeneralRe: login problem Pin
Mycroft Holmes19-May-09 23:20
professionalMycroft Holmes19-May-09 23:20 
QuestionHow do i insert and retrive images in a sql server database 2000 or 2005??? Pin
ma.amer18-May-09 21:33
ma.amer18-May-09 21:33 
AnswerRe: How do i insert and retrive images in a sql server database 2000 or 2005??? Pin
Giorgi Dalakishvili18-May-09 23:12
mentorGiorgi Dalakishvili18-May-09 23:12 
Questioncouldnot find installable ISAM Pin
hrishiS18-May-09 19:45
hrishiS18-May-09 19:45 
AnswerRe: couldnot find installable ISAM Pin
Vimalsoft(Pty) Ltd18-May-09 22:19
professionalVimalsoft(Pty) Ltd18-May-09 22:19 
QuestionSQLExpress 2008 Issue ? Pin
Mohammad Dayyan18-May-09 8:23
Mohammad Dayyan18-May-09 8:23 
NewsFFDPERL - Flat file database for perl Pin
wickedxter18-May-09 7:52
wickedxter18-May-09 7:52 
QuestionColumn Constraints Pin
jonhbt18-May-09 2:28
jonhbt18-May-09 2:28 
AnswerRe: Column Constraints Pin
Manas Bhardwaj18-May-09 5:37
professionalManas Bhardwaj18-May-09 5:37 
QuestionPls...I can't understand what s the problem in this procedure.. Pin
PeriyasamyRamachandran18-May-09 1:40
PeriyasamyRamachandran18-May-09 1:40 
AnswerRe: Pls...I can't understand what s the problem in this procedure.. Pin
scottgp18-May-09 3:04
professionalscottgp18-May-09 3:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.