Viewing 15 posts - 4,351 through 4,365 (of 5,394 total)
Use parenthesis around the two LIKE conditions:
select *
from resource
where [date] > '02/02/2010'
and ( [Alan] like 'In%' or [Alan] like 'R%' )
April 28, 2010 at 3:18 am
Maybe I'm wrong, but I see an Update.
Can't it be the cause of the duplicate key error?
April 28, 2010 at 3:15 am
ColdCoffee (4/27/2010)
April 27, 2010 at 5:36 am
jasonshaw (4/27/2010)Why do we have the "For XML path ''" and the 1,1, space[0] ?
It's a "trick" to generate on the fly a string with concatenation of all the values...
April 27, 2010 at 4:48 am
ColdCoffee (4/27/2010)
Gianluca Sartori (4/27/2010)
ColdCoffee (4/27/2010)
Alessandro, Sei il benvenuto!
Aaah! You fell victim of the "google translator" bug!
I think you wanted to translate "You're welcome", that's "Prego" in Italian.
"Sei il benvenuto"...
April 27, 2010 at 3:49 am
Here's your query, Jason.
Hope you find it helpful.
--CREATE TABLE
IF OBJECT_ID('Tempdb..#meterReading') IS NOT NULL DROP TABLE #meterReading
CREATE TABLE #meterReading(
[mReadingCallReference] [int] NULL,
...
April 27, 2010 at 3:36 am
ColdCoffee (4/27/2010)
Alessandro, Sei il benvenuto!
Aaah! You fell victim of the "google translator" bug!
I think you wanted to translate "You're welcome", that's "Prego" in Italian.
"Sei il benvenuto" means literally "you...
April 27, 2010 at 3:19 am
Whoops! Sorry for echoing, Ken.
April 27, 2010 at 3:14 am
The order of execution is determined by the query optimizer. Look at the query plan and you'll find out the execution order of each step and how it is implemented.
Generally...
April 27, 2010 at 3:12 am
April 27, 2010 at 3:01 am
ColdCoffee (4/27/2010)
SELECT datax , [1] StatoImp1, [2] StatoImp3, [3] StatoImp3 FROM...
April 27, 2010 at 2:28 am
Jason, post your table scripts, some sample data and the desired output and I'll be glad to help.
April 27, 2010 at 2:22 am
This should do the trick for you:
--CREATE TEST TEMPORARY TABLE
IF OBJECT_ID('Tempdb..#Test') IS NOT NULL DROP TABLE #Test
CREATE TABLE #Test (
[datax] [smalldatetime] NOT NULL ,
[StatoImp] [bit] NOT NULL ,
[Imp] [smallint] NOT...
April 27, 2010 at 2:17 am
Hi Alessandro,
it's nice to find other Italians on this site.
can you please clarify what values do you expect in every column? What would the results look like with the...
April 27, 2010 at 1:56 am
Some readings for you:
How to post performance problems[/url]
Consistency problems with NOLOCK
TIMEBOMB - THE CONSISTENCY PROBLEM WITH NOLOCK / READ UNCOMMITTED
April 26, 2010 at 3:49 am
Viewing 15 posts - 4,351 through 4,365 (of 5,394 total)