Viewing 7 posts - 8,716 through 8,722 (of 8,722 total)
If your columns behave as bit columns instead of behaving as int, there's no need for the case, you can simply add the columns.
June 5, 2012 at 7:00 am
For instance, there's no reason to use a JOIN if you use fields from one table. Instead of doing this:
SELECT P.PodrobnostiAutoID
FROM dbo.vwPodrobnosti P
LEFT JOIN dbo.vwTableOfGenuss G ON P.GenusAutoID =...
June 4, 2012 at 1:31 pm
anthony.green (6/1/2012)
F6 will cycle through the query panel, results panel, messages panel if thats what you want.
Shift + F6 will go in the opposite order.
June 1, 2012 at 8:12 am
There can be a small problem with Jeffem and ColdCoffee's solution.
If you miss an ID value (most common scenario is when you delete a record and the identity does...
May 31, 2012 at 3:27 pm
It sure was an easy question and a fact anyone using WHERE clauses should know. The difficulty is on understanding the question and reading carefully.
I got it wrong because I...
May 31, 2012 at 2:55 pm
Thank you Paul and Celko, I appreciate the effort and time you made on answering this going even with more details.
I didn't beleive that DDL would be necessary as the...
May 22, 2012 at 9:15 pm
This could help you.
DECLARE@nDate1int,
@nDate2int,
@dTodaydatetime
SET@dToday = GETDATE()
SET@nDate1 = DATEPART( y, @dToday)
SET@nDate2 = DATEPART( y, DATEADD( ww, 2, @dToday))
IF @nDate2 < @nDate1
BEGIN
SET @nDate2 = DATEPART( y, CAST( YEAR( @dToday) AS char(4)) +...
February 15, 2010 at 9:15 am
Viewing 7 posts - 8,716 through 8,722 (of 8,722 total)