Viewing 15 posts - 106 through 120 (of 371 total)
Lynn Pettis (3/21/2012)
SELECT
t.ProductionDate,
t.Shift,
t.LineNumber,
t.Cart,
t.CavityPosition,
...
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 21, 2012 at 5:35 pm
Jeff Moden (3/21/2012)
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 21, 2012 at 7:50 am
Jeff Moden (3/20/2012)
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 7:30 pm
Hi. That's a good answer to the question.
But maybe the first example will not show all possible results from the three queries because you used "WHERE option1 AND option2 AND...
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 6:54 pm
Evil Kraig F (3/20/2012)
Whoops, sorry Andre, I somehow glazed right past that's what you meant in the second post.
No problem. Advices like that one are always great. I appreciate. 🙂
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 6:37 pm
Jeff Moden (3/20/2012)
Example: Table ProductSummary
Columns: Date, Product, Vendor, Total
Rule: One row per day at maximum.
So, one row per date per product per vendor, correct?
And you want running totals by day...
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 6:30 pm
Jeff Moden (3/20/2012)
It's just an example and, while the MonthTable will always be like that, the ExampleTable may have...
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 5:48 pm
Evil Kraig F (3/20/2012)
However, there's...
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 5:27 pm
Jeff Moden (3/20/2012)
Let's take all the fear out of this. Does the "ExampleTable" CTE accurately represent the columns we need to work with from a real table? Can...
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 5:05 pm
Jeff Moden (3/20/2012)
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 4:51 pm
Great back-to-basics and straightforward question.
Thank you.
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 1:48 pm
SQLKnowItAll (3/20/2012)
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 1:39 pm
At least, in the derived table I'm limiting the year range to a specific one (2011, in the example).
Of course I can always replace the YEAR and MONTH functions to...
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 1:12 pm
Sean Lange (3/20/2012)
codebyo (3/20/2012)
SQLKnowItAll (3/20/2012)
EDIT: Sorry, you did not mention...
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 1:03 pm
SQLKnowItAll (3/20/2012)
EDIT: Sorry, you did not mention DISTINCT in your...
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
March 20, 2012 at 12:56 pm
Viewing 15 posts - 106 through 120 (of 371 total)