Viewing 15 posts - 1,396 through 1,410 (of 1,957 total)
May 19, 2011 at 2:28 pm
tdpearce (5/19/2011)
Thanks so much for helping me out on this.I'm getting a ORA-00905: missing keyword error at CROSS APPLY
Ok, that is an ORACLE error message - you have posted...
May 19, 2011 at 2:27 pm
Yes, that helps...
Try this (I have added some comments where I changed the code):
SELECT A.REPORT_DATE, A.REPORT_TYPE, A.ORD_NUM, A.CKT_QTY, A.SUPP_VER, A.ORD_TYPE, A.ORDERPRO_TIN, A.BILLABLE, A.VENDOR, A.E_MRV_FLAG, A.MRV, A.ORDER_EXPEDITE, A.ORDER_EXPEDITE_TYPE, A.PROJECT, A.NASPID, A.CONV_NASPID,...
May 19, 2011 at 2:05 pm
Listen, I gotta get some chow now, so I will post this and hope you can take it from there:
SELECT RESULTa, BUCKETa
FROM <your first table>
<some kind of JOIN> <your second...
May 19, 2011 at 12:43 pm
tdpearce (5/19/2011)
I guess I'm confused what I would put in the "your table" then..SELECT RESULTa, BUCKETa
FROM <your table>(???)
You might want to post each query in full in order to progress...
May 19, 2011 at 12:39 pm
That makes no difference to the code I posted, except you are not selecting just from one table....
May 19, 2011 at 12:30 pm
PHXHoward (5/19/2011)
Is padding the beginning or end of the short version numbers the best...
May 19, 2011 at 12:25 pm
This is one of those times when CROSS APPLY makes your life much easier....
SELECT RESULTa, BUCKETa
FROM <your table>
CROSS APPLY (
SELECT CASE WHEN DATEa=DATEb THEN 0
WHEN DATEa> DATEb THEN NETWORKDAYS(DATEb, DATEa)
WHEN...
May 19, 2011 at 11:36 am
That is quite a difficult one to answer because we don't know what you consider to be a pattern.
It looks like you are using "d" to indicate a numeric digit,...
May 18, 2011 at 5:47 pm
Sure, there is a really simple way to handle this and other "numeric stored as char" sorting issues....
ORDER BY LEN(<column>),<column>
The LEN(<column>) sort puts smaller numbers (fewer digits) at the start...
Of...
May 18, 2011 at 5:36 pm
You can certainly simplify the code, but probably not the plan....
SELECT a.id 'a', b.id 'b', c.id 'c', d.id 'd', e.id 'e'
FROM Combinations a
CROSS JOIN dbo.Combinations b
...
May 18, 2011 at 12:23 pm
Ninja's_RGR'us (5/18/2011)
Here... you'll have to get the right holidays for your country(ies) but the rest of it is done.
I'll have one of those, thanks a lot Ninj 😉
May 18, 2011 at 11:23 am
Adam Bean (5/18/2011)
May 18, 2011 at 11:20 am
You need to just use the week start date for each date in your data.
I would recommend using a "dates" table, containing the year, month, date and week number, then...
May 18, 2011 at 11:09 am
steve.anderson 7639 (5/18/2011)
The query below:
SELECT [dbo].[Purchasing].PartNumber, [LinkedServer].[SharePointProgress].[dbo].[tblPart].[PartDesc], [dbo].[Purchasing].IsHardware
FROM [dbo].[Purchasing] --as table
INNER JOIN [LinkedServer].[SharePointProgress].[dbo].[tblPart] as linkedtable
ON [dbo].[Purchasing].PartNumber = [LinkedServer].[SharePointProgress].[dbo].[tblPart].[PartNum]
produces this:
Msg 4104, Level 16,...
May 18, 2011 at 11:02 am
Viewing 15 posts - 1,396 through 1,410 (of 1,957 total)