Viewing 15 posts - 1 through 15 (of 40 total)
Sean Lange (1/7/2016)
Zohaib Anwar (1/7/2016)
I am trying to build attached query that is mentioned in the word document. I am struck on one point that is point number 3 in...
January 8, 2016 at 3:26 am
Here it is..
Get_NameDetails
1.Set Set lcLast_Name = get (character position of lcSeperator in 1301_Prestage_PID.cname) - 1 from 1301_Prestage_PID.cname[48 Charactrers]
2.Set lcFirst_Name = get (character position of lcSeperator in 1301_Prestage_PV1.cname) + 1...
January 7, 2016 at 9:59 am
ChrisM@Work (6/10/2015)
;
WITH PreAgg AS (
SELECT
p.id,
HourBucket = DATEDIFF(hour,ISNULL(p.DueDate,GETDATE()),CAST(GETDATE() AS DATE))/24,
paidAmount = ISNULL(SUM(CASE WHEN x.Paid = 1 THEN tdPaid.DebitAmount - tdPaid.CreditAmount ELSE...
June 10, 2015 at 7:09 am
If you filter a column of an outer-joined table in the WHERE clause of a query, you turn the join into an INNER JOIN:
...
June 10, 2015 at 5:49 am
GilaMonster (6/10/2015)
Zohaib Anwar (6/10/2015)
if we dont put no lock then we get lots of deadlocks in production environment.
You prefer to add a hint that causes incorrect results rather than address...
June 10, 2015 at 5:34 am
Joie Andrew (6/10/2015)
left join Payables p with (nolock) on p.SalespersonID =...
June 10, 2015 at 5:19 am
ChrisM@Work (6/10/2015)
Zohaib Anwar (6/10/2015)
June 10, 2015 at 5:11 am
I am not sure that case statements are problem may be you can see other area of query improvement also if we dont put no lock then we get lots...
June 10, 2015 at 4:40 am
Dohsan (5/28/2015)
If in this case each column has a...
May 28, 2015 at 9:48 am
Sean Lange (4/9/2015)
Zohaib Anwar (4/9/2015)
Can I do it following way ??
WITH ACOALERTCTE
AS (
SELECT a.lastprdate
,a.lastprtime
FROM acoalert a
WHERE a.coalertid = 3000
)
SELECT TOP 1000 f.foordno AS "Order #"
,f.foprogno AS...
April 9, 2015 at 9:02 am
Thanks for the reply Sean
Can I do it following way ??
WITH ACOALERTCTE
AS (
SELECT a.lastprdate
,a.lastprtime
FROM acoalert a
WHERE a.coalertid = 3000
)
SELECT TOP 1000 f.foordno AS "Order #"
,f.foprogno AS "Program #"
,f.alertmssg AS "Pick...
April 9, 2015 at 8:30 am
Luis Cazares (3/19/2015)
March 19, 2015 at 9:48 am
Ok, Thanks for the explanation.
select * from A INNER JOIN B ON A.ID=B.ID
Please let me know how can we modify above query so that it will gives us only...
March 19, 2015 at 9:39 am
Alvin Ramard (3/19/2015)
Why are you inserting the same values in each table twice? This might be causing the unexpected results?
No, I just did it to explain the situation. I...
March 19, 2015 at 9:22 am
GilaMonster (3/19/2015)
March 19, 2015 at 9:18 am
Viewing 15 posts - 1 through 15 (of 40 total)