Viewing 15 posts - 16 through 30 (of 32 total)
WITH SubQuery AS
(
SELECTjh.Company, jh.JobNum, ja.AssemblySeq, jo.OprSeq, jo.OpCode,
CAST(CASE WHEN NOT jh.Date03 IS NULL THEN jh.Date03...
July 13, 2021 at 1:30 pm
I have removed all the 'reformatting' from the Views and removed the NoLock and added the Outer Apply.
SELECT jh.Company, jh.JobNum...
July 13, 2021 at 8:27 am
Instead of using multiple nested views - what technique should I adopt to build my more complex views?
July 12, 2021 at 11:03 pm
I also, for readability, tend to create multiple smaller SQL Views then reuse them to build larger more complex views.
I always use NoLock as I was getting a number of...
July 12, 2021 at 10:10 pm
I tend to write my code outwith the gui then when I save it as a view SQL reformats and adds the TOP(100) etc.
July 12, 2021 at 9:51 pm
The first SQL snippet is the original sql.
The second SQL snippet is the new sql.
The third snippet is the Function.
The JobHead table has an Index of Company, JobNum but I...
July 12, 2021 at 8:40 pm
WITH SubQuery AS (SELECT TOP (100) PERCENT jh.Company, jh.JobNum AS ParentJob, jh.JobFirm, jh.JobReleased, ja.AssemblySeq, jh.PartNum AS ParentPart, jm.MtlSeq, jm.PartNum AS...
July 12, 2021 at 8:37 pm
I have created a Scalar-valued Function and called this from within my view - basically the join that I perform on the non-index fields I have removed from my Sql...
July 12, 2021 at 7:45 pm
The first view holds circa 1500 records and returns circa 2200 through a second cte view.
The data is consistently refreshed throughout the working day - eg. every 5 minutes and...
July 12, 2021 at 2:52 pm
Jeff:
Thanks for the response.
There are about 16,000 to 20,000 rows in the data set in total currently.
I want the running total to start over on...
April 7, 2017 at 2:04 pm
This should do...
April 7, 2017 at 1:47 am
April 7, 2017 at 12:21 am
Steve:
Would you be available for a remote session in a couple of hours or some other time suitable for yourself - possibly a TeamViewer session.
I can...
February 17, 2017 at 12:25 pm
IF OBJECT_ID('TempDB..#mytable','U') IS NOT NULL DROP TABLE #mytable
CREATE TABLE #mytable (
ParentWO varchar(50),
PProduction_Qty float,
PQty_Complete float,
ChildWO varchar(50),
IssueQty int,
Production_Qty float,
Qty_Complete float)
INSERT INTO...
February 17, 2017 at 11:32 am
Steve
Unfortunately Child Work Orders will be produced and issued to more than one Parent Work Order - the thoughts behind this is that some Child Manufactured Parts are...
February 15, 2017 at 2:14 pm
Viewing 15 posts - 16 through 30 (of 32 total)