Click here to Skip to main content
15,899,679 members
Home / Discussions / Database
   

Database

 
QuestionAdd JPEG In MySQL5.0 Table via VB6.0 Pin
jobje2-Feb-06 1:56
jobje2-Feb-06 1:56 
QuestionIs SELECT INTO optimal to copy data? Pin
Salil Khedkar2-Feb-06 1:54
Salil Khedkar2-Feb-06 1:54 
AnswerRe: Is SELECT INTO optimal to copy data? Pin
Mike Dimmick2-Feb-06 2:32
Mike Dimmick2-Feb-06 2:32 
QuestionHelp!!Compacting Database MSDE/SQL Pin
jfk_lili1-Feb-06 22:35
jfk_lili1-Feb-06 22:35 
AnswerRe: Help!!Compacting Database MSDE/SQL Pin
Mike Dimmick2-Feb-06 2:38
Mike Dimmick2-Feb-06 2:38 
GeneralRe: Help!!Compacting Database MSDE/SQL Pin
jfk_lili2-Feb-06 17:02
jfk_lili2-Feb-06 17:02 
QuestionProblems with Backup/Restore of SQL server database Pin
nicsquare1-Feb-06 20:44
nicsquare1-Feb-06 20:44 
Questiondate pblm in mssql server Pin
Vipin.d1-Feb-06 17:27
Vipin.d1-Feb-06 17:27 
hi all,
i want to select all the jobcode from jobmaster

my query is
SELECT txtjcode,convert(smalldatetime,dtlastdate)as last ,getdate()as tday FROM jobmast
it will work fine
it select entries like

test 2006-01-25 00:00:00 2006-02-01 09:51:05.107
US001 2006-01-25 00:00:00 2006-02-01 09:51:05.107
US002 2006-02-10 00:00:00 2006-02-01 09:51:05.107


but when use the following querry,

SELECT txtjcode,convert(smalldatetime,dtlastdate)as last ,getdate()as tday FROM jobmast WHERE convert(smalldatetime,dtlastdate)>= getdate()

it will select only this data
US002 2006-02-10 00:00:00 2006-02-01 09:51:05.107

and didnt select

US001 2006-01-25 00:00:00 2006-02-01 09:51:05.107

actually my query select both
why happens this so?
any soln to this

"i want to select all data where last date >= today date"
plz help urgentFrown | :(








CrazySanker

All I ever wanted is what others have....


AnswerRe: date pblm in mssql server Pin
Rana Muhammad Javed Khan1-Feb-06 20:00
Rana Muhammad Javed Khan1-Feb-06 20:00 
AnswerRe: date pblm in mssql server Pin
Colin Angus Mackay1-Feb-06 23:26
Colin Angus Mackay1-Feb-06 23:26 
QuestionCopy diagram from on db to another on same db Pin
bubberz1-Feb-06 12:02
bubberz1-Feb-06 12:02 
AnswerRe: Copy diagram from on db to another on same db Pin
bubberz2-Feb-06 3:37
bubberz2-Feb-06 3:37 
Questiongenerating database Pin
D.N.1-Feb-06 4:09
D.N.1-Feb-06 4:09 
AnswerRe: generating database Pin
Colin Angus Mackay1-Feb-06 5:18
Colin Angus Mackay1-Feb-06 5:18 
GeneralRe: generating database Pin
D.N.1-Feb-06 5:49
D.N.1-Feb-06 5:49 
GeneralRe: generating database Pin
Colin Angus Mackay1-Feb-06 5:50
Colin Angus Mackay1-Feb-06 5:50 
Questiondate acessing problm in msssql server 2000 Pin
Vipin.d31-Jan-06 18:50
Vipin.d31-Jan-06 18:50 
AnswerRe: date acessing problm in msssql server 2000 Pin
Colin Angus Mackay31-Jan-06 20:27
Colin Angus Mackay31-Jan-06 20:27 
AnswerRe: date acessing problm in msssql server 2000 Pin
idonthavename31-Jan-06 22:37
idonthavename31-Jan-06 22:37 
QuestionDatabinding 2 Datagridviews Pin
elraton31-Jan-06 18:37
elraton31-Jan-06 18:37 
QuestionSQL Procedures & SourceSafe Pin
Len Miller31-Jan-06 11:36
Len Miller31-Jan-06 11:36 
AnswerRe: SQL Procedures & SourceSafe Pin
S Douglas1-Feb-06 0:27
professionalS Douglas1-Feb-06 0:27 
GeneralRe: SQL Procedures & SourceSafe Pin
Len Miller1-Feb-06 3:24
Len Miller1-Feb-06 3:24 
QuestionSpecifying DateTime value in a query Pin
Luis Alonso Ramos31-Jan-06 7:37
Luis Alonso Ramos31-Jan-06 7:37 
AnswerRe: Specifying DateTime value in a query Pin
Farhan Noor Qureshi31-Jan-06 8:16
Farhan Noor Qureshi31-Jan-06 8:16 

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.