Viewing 15 posts - 226 through 240 (of 283 total)
Passing a column value to a function makes the where clause non-sargable. However, it is still possible it is rarely executed as the optimizer should know enough to test it...
July 27, 2007 at 10:55 am
Here's one with no subqueries and one rather straightforward derived table.
select da.id, da.ActivityDate, der.Hours, der.Salary from DAILY_ACTIVITY da join ( select ...
July 27, 2007 at 10:22 am
I lived 25 years in Los Angeles area and 5 years outside San Francisco. SF is the crazy uncle of the west coast and living in LA is like living...
July 25, 2007 at 2:21 pm
Is Tim Berners-Lee being paid today to write HTML? I seriously doubt it.
I don't doubt there are physicist who can program, and program well. My point is that I can...
July 24, 2007 at 6:08 pm
Not that it has anything to do specifically with DBAs, but I've noticed a lot of job ads that list every skill the company could possible want. I call them...
July 24, 2007 at 3:51 pm
NOOO!!!! <sob!>
In 99.9% of the places Hungarian notation is used, it is used incorrectly. It was intended to signify the type of data a variable contained, not the datatype of...
July 24, 2007 at 3:47 pm
Method 2 is my preferred way but with this slight addendum. It works better when the tables themselves adhere to a good naming convention. I prefer to give tables a...
July 24, 2007 at 2:36 pm
A lot of good, sound advice. One thing you should consider no matter which way you end up going: never, EVER allow developers to dictate database design. They tell you...
July 24, 2007 at 2:10 pm
It's not elegant but:
select <everything but identity col> from DawnTest
July 23, 2007 at 11:36 am
Another suggestion is two views: one lists only the employees and one lists only the dependents. In the employee view, also have a computed column for the number of dependents...
July 20, 2007 at 11:19 am
My recommendation is to listen to JLK. Bring the data into a flat table and then fire off a sproc to break it up. You could probably do the same...
July 20, 2007 at 11:01 am
Just make the existing query into a derived table and take the sums from that:
select sum(Visitors) as VisitorCount, sum(Pages) as PageCount from ( SELECT CONVERT(CHAR(10),LogDate,103) As Date_, ...
July 18, 2007 at 2:54 pm
Maybe I came on a little heavy. Right now I'm working where there are dozens of servers with over a thousand databases (total -- not per each) and the use...
July 18, 2007 at 11:34 am
You keep using the words "empty" and "blank" to refer to the contents of a column. These words have no meaning in the context of a relational database. If the...
July 18, 2007 at 11:21 am
Then please post the "create table" and subsequent "insert" so we can see exactly what you did.
Come to think of it, a "select top 10 *" from the original table...
July 17, 2007 at 2:57 pm
Viewing 15 posts - 226 through 240 (of 283 total)