Viewing 15 posts - 50,896 through 50,910 (of 59,078 total)
Without a table alteration, you could do this (using Matt's fine test setup)...
--testing setup
create table #recipe (recipeID int identity(1,1) primary key, recipename varchar(200))
create table #recipeline(reclineID int identity(1,1) primary key, recipeID...
April 29, 2008 at 7:33 pm
As a bit of a side-bar, if you intend to join DateTime datatypes to this table, the preferred method of creating such a table would be...
--===== Here are the two...
April 29, 2008 at 7:16 pm
This is what I mean...
(No character based date conversions) + (No concatenation) = Very high speed short code.
--===== Here are the two parameters you wanted
DECLARE @DateStart DATETIME
DECLARE @DateEnd ...
April 29, 2008 at 7:00 pm
Ah, ok... it get it.
Still need to know though, what do you want for column names? I'm also pretty sure you'll need the row number... I guess I'm...
April 29, 2008 at 6:44 pm
Heh... that's funny... hadn't thought of it that way, AnirBan. 😀
I actually have an article coming out in the very near future as to "how and why" Tally tables work...
April 29, 2008 at 6:40 pm
Perfect. Thanks for the feedback.
Adrian... nice job!
April 29, 2008 at 6:35 pm
Lisa... Thanks for the feedback a couple of posts back. 🙂
April 29, 2008 at 6:30 pm
SQL ORACLE (4/29/2008)
You cannot delete duplicates directly from a table unless you would like to delete rows, which are duplicated.
Any bets? 😉
April 29, 2008 at 6:20 pm
I think this one taught a bunch of people different things... 🙂
April 29, 2008 at 6:17 pm
IT salaries are going down for some as Steve mentioned... and for the reasons he mentioned. I'd like to remind all of you managers out there, you get what...
April 29, 2008 at 6:16 pm
Thanks for the feedback... like Gus said, though... leap years can wreak a bit of havoc if they're important.
April 29, 2008 at 6:10 pm
hb21l6 (4/29/2008)
this is the solution i came up with in the end, some borrorwed some new.
SELECT * tbl_locations
WHERE CompanyName = 'someCompanyName'
ORDER BY CONVERT(int, REPLACE(CONVERT(nvarchar, SUBSTRING(IP,...
April 29, 2008 at 6:04 pm
Would you rather have a slightly more complicated database maintenance program or an impossible security situation? 😉
April 29, 2008 at 5:48 pm
Thanks for the plug, Gus... the article may be found at the following URL...
http://www.sqlservercentral.com/articles/Advanced+Querying/61716/
... and Gus is right... it's nasty fast.
April 29, 2008 at 5:45 pm
Viewing 15 posts - 50,896 through 50,910 (of 59,078 total)