Viewing 15 posts - 16 through 30 (of 168 total)
change second query to below to match the resultsets
Select Distinct orderId,orderDate
From orders
Inner join orderDetails
On orders.orderId=orderDetails.orderId
Where orderDetails.unitePrice>3
In this case both will have same kind of performance;-)
May 31, 2010 at 7:16 am
You may be interested in following article
http://weblogs.sqlteam.com/mladenp/archive/2007/05/18/60210.aspx
May 31, 2010 at 7:12 am
I think both the queries will not give same results, Please check again specially for the case of (ONE -> MANY), If a single order may have multiple detail records...
May 31, 2010 at 7:10 am
totally agree with you..
SQL Server is not a correct tool for this kind of requirement, but I am suggesting him that it is possible to open a IE browser thru...
May 27, 2010 at 9:02 am
Did you tried this?
Exec xp_cmdshell '"C:\Program Files\Internet Explorer\iexplore.exe"'
May 27, 2010 at 8:08 am
Another way of doing this
CREATE TABLE Emp (Emp_id INT, Emp_name VARCHAR(50), Supervisor_id INT)
GO
Insert Emp
SELECT 1, 'A', -1 UNION
SELECT 2, 'B', 1 UNION
SELECT 3, 'C', 1 UNION
SELECT 4, 'D', 2
GO
WITH Emp_CTE...
May 27, 2010 at 6:26 am
have you heard about recursive CTE? google about it or read BOL
May 27, 2010 at 3:08 am
Check this tutorial
http://technet.microsoft.com/en-us/library/ms169673(SQL.105).aspx
May 25, 2010 at 1:22 am
try this query
SELECT A.Order_No AS 'Order_No',
'Name'= CASE WHEN A.New = 1 THEN A.Name ELSE '' END,
a.Cnt as Total_Cnt,
A.Party, A.Shipped_Cnt, 'Pnd_Cnt' = A.Cnt - A.Shipped_Cnt into #temp
FROM
(select M.Order_No,M.Name,M.Cnt,C.Party,C.Shipped_Cnt, 'New' =...
May 24, 2010 at 9:22 am
you may want to look at "SYS.PARAMETERS"
May 24, 2010 at 4:19 am
See this
DECLARE @dt DATETIME, @WeekNumber INT
SET @dt='03/01/2010'
SELECT @WeekNumber=DATEPART(wk,@DT)
SELECT @WeekNumber
May 24, 2010 at 2:44 am
Add Expressions->executable property to the variable and try executing it
May 21, 2010 at 9:00 am
Above solution is for SQL 2000 🙂
May 21, 2010 at 8:31 am
try this
create table #_TEST (
_ID int,
_VAL1 int,
_VAL2 int,
_VAL3 datetime,
_IndicatorCol bit
);
insert into #_TEST (_ID, _VAL1,...
May 21, 2010 at 8:28 am
Try this
create table #DMVRunningPerformance (
Symbol_vc varchar(25),
DayID_in int,
...
May 21, 2010 at 6:48 am
Viewing 15 posts - 16 through 30 (of 168 total)