Click here to Skip to main content
15,900,378 members
Home / Discussions / Database
   

Database

 
QuestionComparison of two tables to catch mismatch in data Pin
Vishucool17-May-06 20:47
Vishucool17-May-06 20:47 
AnswerRe: Comparison of two tables to catch mismatch in data Pin
Jim Conigliaro19-May-06 2:11
Jim Conigliaro19-May-06 2:11 
QuestionError Message Pin
NICE TO MEET17-May-06 20:34
NICE TO MEET17-May-06 20:34 
QuestionSQL Server 7.0 Database (Suspect)? Pin
Rashar17-May-06 8:32
Rashar17-May-06 8:32 
QuestionTime interveal question Pin
NaNg1524117-May-06 7:53
NaNg1524117-May-06 7:53 
AnswerRe: Time interveal question Pin
Eric Dahlvang17-May-06 8:45
Eric Dahlvang17-May-06 8:45 
GeneralRe: Time interveal question Pin
NaNg1524117-May-06 9:11
NaNg1524117-May-06 9:11 
GeneralRe: Time interveal question Pin
Eric Dahlvang17-May-06 9:17
Eric Dahlvang17-May-06 9:17 
It's DateDiff() there too:

DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]])

The DateDiff function syntax has thesenamed arguments:

Part Description
interval Required.String expression that is the interval of time you use to calculate the difference between date1 and date2.
date1, date2 Required; Variant (Date). Two dates you want to use in the calculation.
firstdayofweek Optional. Aconstant that specifies the first day of the week. If not specified, Sunday is assumed.
firstweekofyear Optional. A constant that specifies the first week of the year. If not specified, the first week is assumed to be the week in which January 1 occurs.


Settings

The intervalargument has these settings:

Setting Description
yyyy Year
q Quarter
m Month
y Day of year
d Day
w Weekday
ww Week
h Hour
n Minute
s Second


The firstdayofweek argument has these settings:

Constant Value Description
vbUseSystem 0 Use the NLS API setting.
vbSunday 1 Sunday (default)
vbMonday 2 Monday
vbTuesday 3 Tuesday
vbWednesday 4 Wednesday
vbThursday 5 Thursday
vbFriday 6 Friday
vbSaturday 7 Saturday

Constant Value Description
vbUseSystem 0 Use the NLS API setting.
vbFirstJan1 1 Start with week in which January 1 occurs (default).
vbFirstFourDays 2 Start with the first week that has at least four days in the new year.
vbFirstFullWeek 3 Start with first full week of the year.


----------
There go my people. I must find out where they are going so I can lead them.
- Alexander Ledru-Rollin

GeneralRe: Time interveal question Pin
NaNg1524117-May-06 9:19
NaNg1524117-May-06 9:19 
QuestionHow to make copy of db Pin
leckey17-May-06 6:43
leckey17-May-06 6:43 
AnswerRe: How to make copy of db Pin
Colin Angus Mackay17-May-06 7:00
Colin Angus Mackay17-May-06 7:00 
AnswerRe: How to make copy of db Pin
Saqib Mehmood17-May-06 18:39
Saqib Mehmood17-May-06 18:39 
GeneralRe: How to make copy of db Pin
Colin Angus Mackay17-May-06 20:15
Colin Angus Mackay17-May-06 20:15 
GeneralRe: How to make copy of db Pin
Saqib Mehmood17-May-06 20:22
Saqib Mehmood17-May-06 20:22 
GeneralRe: How to make copy of db Pin
furher24-May-06 2:29
furher24-May-06 2:29 
QuestionQuestion about DataSet and DataAdapter in VS8 Pin
Roberto Ferraris17-May-06 5:51
Roberto Ferraris17-May-06 5:51 
AnswerRe: Question about DataSet and DataAdapter in VS8 Pin
Roberto Ferraris17-May-06 22:35
Roberto Ferraris17-May-06 22:35 
QuestionODBC connection Pin
Paps217-May-06 5:00
Paps217-May-06 5:00 
QuestionCan i add column to the middle of table in sql server. Pin
sharma sanjeev17-May-06 3:25
sharma sanjeev17-May-06 3:25 
AnswerRe: Can i add column to the middle of table in sql server. Pin
Paddy Boyd17-May-06 3:41
Paddy Boyd17-May-06 3:41 
GeneralRe: Can i add column to the middle of table in sql server. Pin
sharma sanjeev17-May-06 4:06
sharma sanjeev17-May-06 4:06 
AnswerRe: Can i add column to the middle of table in sql server. Pin
Paddy Boyd17-May-06 4:15
Paddy Boyd17-May-06 4:15 
GeneralRe: Can i add column to the middle of table in sql server. Pin
sharma sanjeev17-May-06 4:24
sharma sanjeev17-May-06 4:24 
AnswerRe: Can i add column to the middle of table in sql server. Pin
Paddy Boyd17-May-06 4:27
Paddy Boyd17-May-06 4:27 
GeneralRe: Can i add column to the middle of table in sql server. Pin
sharma sanjeev17-May-06 4:31
sharma sanjeev17-May-06 4:31 

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.