Viewing 15 posts - 15,151 through 15,165 (of 15,381 total)
I have often found that drinking helps in these situations. 😛 Good luck.
November 3, 2010 at 1:56 pm
Not to mention if some of the columns are blobs (image, text, etc). Why select *? You should only select the columns you actually need.
November 3, 2010 at 1:47 pm
Opus (11/3/2010)
-- is there some sort of ID column? --> No
This seems to be the beginning of the problem. Is there no primary key for this table?
Try something...
November 3, 2010 at 1:27 pm
As it sits there is no order by anywhere in this so there is no guarantee about what order it will be returned in.
On another point, this looks like it...
November 3, 2010 at 1:19 pm
I will jump on the bandwagon of not getting the convert to char but will point out that I never like code that just uses the default size for datatypes....
November 3, 2010 at 10:39 am
LOL (irl). I can't count how often I laugh at your picture. Sadly it is how I feel today. Unfortunately it is not SQL, it is the dreaded evil browser...
November 2, 2010 at 1:53 pm
Learner1 (11/2/2010)
November 2, 2010 at 1:45 pm
Lowell beat me to the punch again. 😛
November 2, 2010 at 1:34 pm
You don't need more than 1 select to solve this. Try this...
with cte1
as
(
select a,b,c,level
from abcd
)
select a,b,c from cte1
where Level = (select MAX([LEVEL]) FROM...
November 2, 2010 at 1:33 pm
steveb. (10/29/2010)
tmitchelar (10/29/2010)
Business rules change. Always code it as if in a month the process will start inserting two records at the exact same time.
I agree with this...
October 29, 2010 at 8:30 am
Also if you use your datetime column is the primary key and you have a child table, you will end up with a datetime column as a foreign key. That...
October 29, 2010 at 7:55 am
As a current day woodworker, and a family history of woodworking I would likely be either a carpenter or work in the creamery like my grandfather did. :w00t:
October 29, 2010 at 7:11 am
Brandie Tarvin (10/28/2010)
Odd. When I do a "SELECT current_timestamp, GetDate()", I get the exact same values. So I'm not getting the point about readability.
The point was that internally they both...
October 28, 2010 at 7:55 am
fawwad (10/26/2010)
Hi All,...please tell me what should i do with this variable ??
Not sure what you mean by what should you do with it???
on dbo.fady_match (Depots.DepotNumber) =...
October 26, 2010 at 8:48 am
Viewing 15 posts - 15,151 through 15,165 (of 15,381 total)