Viewing 15 posts - 766 through 780 (of 1,248 total)
Depending on what you're trying to to select MIN(datecolumn) will do it.
January 9, 2015 at 4:50 am
I should have been clearer about the potential risks, although I'll admit to forgetting completely about QUOTENAME.
January 8, 2015 at 8:38 am
In VERY simple terms:
declare @tablename varchar(50) = 'YourTableName'
declare @SQl Nvarchar(4000)
set @SQL =
N'select * from '+@tablename
exec(@SQL)
January 8, 2015 at 8:17 am
Koen Verbeeck (1/7/2015)
Nice question, but I'd argue GROUPING doesn't ignore NULL values as well.
That's what I took from BOL and got the question wrong.
January 7, 2015 at 2:34 am
Ed Wagner (1/6/2015)
CELKO (1/6/2015)
You just have to adjust your baking time.
You mean I have to use kiloseconds for a kilogram cake :w00t:
Silly me - I still use minutes in...
January 6, 2015 at 7:49 am
Ed Wagner (1/5/2015)
CELKO (1/5/2015)
I've actually got a few recipes that call for equal weights of eggs and other ingredients. You weigh the eggs in the shells then match the...
January 6, 2015 at 1:03 am
It would be funny though, to change recipes to call for 25 grams of egg yolk fully encapsulated by 33.7 grams of egg white instead of just calling for "1...
January 5, 2015 at 8:54 am
crookj (1/5/2015)
Ed Wagner (1/5/2015)
djj (1/5/2015)
Ed Wagner (1/5/2015)
Stuart Davies (1/5/2015)
Ed Wagner (1/5/2015)
SQLRNNR (1/2/2015)
SonicBoom
Bust
Museum
Night
History
Buff
Polish
January 5, 2015 at 7:29 am
I'm really not sure what you want to do here but it's best to include the columns you want by name rather than using SELECT * and trying to exclude...
January 2, 2015 at 4:01 am
ChrisM@Work (1/2/2015)
Query 1 (insert into #temp_violation etc.) has an odd filter:
and
(
cast(fh.startdate as date)<= cast(tv.startdate as date)
and
cast(fh.startdate as time)<= cast(tv.startdate as time)
)
This will capture datetimes from fh where they...
January 2, 2015 at 2:50 am
ChrisM@Work (12/31/2014)
Have you considered using EXISTS No I hadn't, see my earlier comment about being a noob 🙂 The fact it ran at all...
December 31, 2014 at 5:37 am
I've finally got back to this after the Christmas break and a brief sojourn in proper work.
Thanks for your advice gents. I learned something very useful about execution...
December 31, 2014 at 2:55 am
Ed Wagner (12/30/2014)
TomThomson (12/29/2014)
Ed Wagner (12/29/2014)
eccentricDBA (12/29/2014)
SQLRNNR (12/29/2014)
MandibleIronjaw
Game
Set (and Match)
Tennis
Elbow
December 30, 2014 at 6:11 am
Ed Wagner (12/29/2014)
TomThomson (12/28/2014)
djj (12/26/2014)
SQLRNNR (12/26/2014)
DiveFood
Grub
Worm
Wood
December 29, 2014 at 5:32 am
David Burrows (12/18/2014)
GilaMonster (12/18/2014)
Entertainment for next week = 1600 line long module (front end, not SQL) with no comments, erratic indentation and no naming standard.
Oh! Joy 🙂
Sounds like one of...
December 18, 2014 at 6:13 am
Viewing 15 posts - 766 through 780 (of 1,248 total)