Viewing 15 posts - 3,841 through 3,855 (of 8,731 total)
Please, check your sample data. It won't run.
November 12, 2015 at 10:41 am
Jack Corbett (11/12/2015)
Sean Lange (11/12/2015)
Brandie Tarvin (11/12/2015)
Sean Lange (11/12/2015)
djj (11/12/2015)
Grant Fritchey (11/12/2015)
November 12, 2015 at 8:01 am
I'm guessing that it would be better to correct this from the start instead of adding work to a result that you already calculated.
November 12, 2015 at 7:41 am
Jason-299789 (11/12/2015)
Will the number of columns be limited to 3 or will it depend...
November 12, 2015 at 7:36 am
Use CROSS TABS[/url] with the MAX() function, probably with a row number to avoid losing rows.
I'm really not sure what's your expected output based on that sample data and explanation.
November 12, 2015 at 7:31 am
November 12, 2015 at 7:26 am
The syntax errors would be the least of your problems if you're not expected to run your code against a database. You're missing half of the logic for your queries....
November 12, 2015 at 5:47 am
yb751 (11/11/2015)
November 11, 2015 at 1:21 pm
Sean Lange (11/11/2015)
rxm119528 (11/11/2015)
November 11, 2015 at 1:16 pm
I'm not sure there's something documenting either that the id is reusable nor it's completely unique. It might not be an identity either if that's what you were expecting.
You shouldn't...
November 11, 2015 at 1:05 pm
I see that Sean got the simpler route by defining hard coded values.
This should allow the results to grow in an easier way if needed.
DECLARE @VARABLE VARCHAR(10) = 'AB.DEF';
WITH
E(n)...
November 11, 2015 at 12:45 pm
Kristen-173977 (11/11/2015)
yb751 (11/11/2015)
It doesn't make sense to create a 137 column table with tons of empty fields
It would to me if you were OUTER JOIN'ing the KeyValue table 137 times...
November 11, 2015 at 11:00 am
You might not be able to get rid of that table completely, but with some analysis, you could create several tables once you identify common attributes to define entities correctly.
November 11, 2015 at 9:54 am
EXISTS should be better than a MERGE which might need an expensive sort operation.
How much are you deleting and how much are you keeping in the table? Maybe that would...
November 11, 2015 at 9:36 am
Probably this will return the expected rows?
Select dbo.R_ResrvStock.Vin,
R_Txt_Temp.Vinnumber,
R_Txt_Temp.Model_Code
from dbo.R_ResrvStock
inner join R_Txt_Temp on Right (RTRIM(dbo.R_ResrvStock.Vin),LEN(R_Txt_Temp.VinNumber))=R_Txt_Temp.VinNumber
Without DDL and Sample data as insert...
November 11, 2015 at 8:50 am
Viewing 15 posts - 3,841 through 3,855 (of 8,731 total)