Viewing 15 posts - 31 through 45 (of 86 total)
In my experience, there is no way to truly prepare for an interview. You know what you know. Cramming probably isn't going to help you much. That...
February 19, 2009 at 1:57 pm
I've never heard of it referred to as index tearing or index splitting, but I assume he's talking about torn pages and page splitting which are two entirely different things,...
February 19, 2009 at 1:23 pm
I have no idea why you would want to do this programmatically, but you could do something like this:
SELECT TABLE_NAME, COLUMN_NAME
FROM MyDatabase.Information_schema.Columns
WHERE ORDINAL_POSITION > 2
ORDER BY TABLE_NAME, ORDINAL_POSITION
Greg
February 19, 2009 at 12:54 pm
February 18, 2009 at 7:21 am
Try this:
SELECT station_id, MAX(time_tag) AS time_lag, sensorname, ed_value
FROM NameOfView
GROUP BY station_id, sensorname, ed_value
Greg
February 17, 2009 at 2:50 pm
When you use an aggregate function, all non-aggregate data must be included in the GROUP BY.
Greg
February 17, 2009 at 8:28 am
First, the six lookup tables shouldn't be an issue with the other three tables as long as the data that you are inserting is in the lookup table.
It looks like...
February 17, 2009 at 7:36 am
To get someone to help you further, you have to post your database design. Also, you mentioned that the examples that you have read only insert data into one...
February 17, 2009 at 6:25 am
This will get the number of days between today and the date in the DtContactDate column:
DATEDIFF(dd, DtContactDate, GetDate()) AS NumberOfDays
Greg
February 16, 2009 at 7:42 am
Norman,
Try this:
SELECT DISTINCT S.Computername
FROM dbo.tblSoftware S
WHERE S.softwareName = 'App1' AND NOT EXISTS
(SELECT * FROM dbo.tblRegistry R
WHERE R.Regkey IN('RegKey1', 'Regkey2') AND R.Computername = S.Computername)
Greg
February 13, 2009 at 2:03 pm
I don't think you would want to go with if statements. There are 12 different potential variables in this case, which equals a whole lot of possibilities! I've seen...
February 12, 2009 at 12:33 pm
I just realized that INT or BIGINT are not large enough to hold a 24 digit number. Maybe DECIMAL(24, 0)?
February 12, 2009 at 9:55 am
Couldn't you use SUBSTRING to isolate each individual day, then convert it to an integer. If it's not zero, then the day has availability?
Greg
February 12, 2009 at 9:49 am
You could also pass in an XML string and parse it into a temp table or table variable.
Greg
February 11, 2009 at 9:53 am
Viewing 15 posts - 31 through 45 (of 86 total)