Viewing 15 posts - 76 through 90 (of 90 total)
ALZDBA (7/14/2011)
1) of course. Your operator is ">=" !
You should alter it with a ">=" and "<" ( between can have...
July 14, 2011 at 9:35 pm
Hi,
I have uploaded two spreadsheets one shows the acutal results and the other expected results. The example invoice is number 132887, you can see the differences.
There is also two...
July 12, 2011 at 8:33 pm
Many thanks for your help :-D, but it is still not what I need.
I have uploaded a spreadsheet that shows the difference. Invoice ID 135393 only has one purchase...
July 12, 2011 at 12:32 am
thanks for update Jeff, it is more like.
invoice_id Line_id
1..............1
1..............2
1..............3
2..............1
2..............2
3..............1
4..............1
5..............1
6..............1
6..............2
And you got gets an error when I compile...
July 10, 2011 at 7:31 pm
Sorry I thought it was clear, the previous provided SQL script is almost exactly what I need.
I have attached a excel spreadsheet that show the format of invoice that...
July 7, 2011 at 11:51 pm
Can you explain the end of the second case statement, why the it has
'END AS [Invoice Date], Account,ApproveDate', but the first case only has [Invoice Date]?(what do you have...
July 7, 2011 at 9:31 pm
David Burrows (7/7/2011)
1. where in the code do I put the alias i need for the column names, eg. issue date as Invoice Date.
Just add the alias to the end...
July 7, 2011 at 9:21 pm
Jeff Moden (7/7/2011)
ringovski (7/6/2011)
Not sure you mean by DDL & DML, but here are the table specs.
Take a look at the first link in my signature line below... it'll help...
July 7, 2011 at 8:54 pm
Thanks David and opc.three you guys are awesome, it seem to give the basic structure I need even though I don't understand the code that well.
A couple of questions
1. where...
July 7, 2011 at 12:21 am
opc.three (7/6/2011)
ringovski (7/5/2011)
Jeff Moden (7/5/2011)
Where will the result set of this query be used? In a reporting tool? In a GUI? or...
July 6, 2011 at 6:14 pm
Jeff Moden (7/5/2011)
It may make a difference...Where will the result set of this query be used? In a reporting tool? In a GUI? or ???
I am...
July 5, 2011 at 7:26 pm
No I don't want a cross join I was only trying to reference the companies table as it is used in the lower join.
SELECT ...
July 5, 2011 at 6:04 pm
I was trying to avoid putting everything in the group by, which why i put the invoice_lines columns in a nested select. I orginally had it with the invoice_head columns...
July 5, 2011 at 6:02 pm
This might be "Concatenating values when the number of items is not known" never done that before.
July 5, 2011 at 12:38 am
I worked it out, the problem was the string were delceared as variables.
This works,
([DivisionCode]=="MV"?"Mediavest":([DivisionCode]=="SC"?"Starcom - Non Tech":[DivisionCode]=="SP"?"Starcom - P&G":[DivisionCode]=="ST"?"Starcom - Tech":"Starcom - Non Tech"))
June 27, 2011 at 11:25 pm
Viewing 15 posts - 76 through 90 (of 90 total)