Viewing 15 posts - 7,891 through 7,905 (of 15,381 total)
You aren't big on providing information today. Given the excellent ddl and sample data provided by Neeraj can you tell what the relationship between these tables is?
I think it is...
June 20, 2013 at 8:41 am
So given the input of "201303" what should the output look like.
I have to say that I am still pretty unclear about what you are trying to do here.
June 20, 2013 at 8:21 am
Hi and welcome to the forums. In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form...
June 20, 2013 at 7:39 am
Simply repeating a vague explanation and a table of unformatted gibberish does not explain what you want. You need to explain what the logic here is. We don't know your...
June 20, 2013 at 7:27 am
Chrissy321 (6/19/2013)
Below is more representative of the situation. Removing the WHERE statement and the...
June 19, 2013 at 3:37 pm
Well then you have something else going on. We are at an extreme disadvantage since we don't know your table structures.
The following code works just fine.
if OBJECT_ID('tempdb..#MyData') is not null
drop...
June 19, 2013 at 2:48 pm
Like this:
SELECT A.id_number, B.notes, B.status, C.location, C.item
FROM TableA as A
LEFT JOIN TableB as B ON A.id_number = B.id_number
LEFT JOIN TableC as C ON A.id_number = C.id_number
June 19, 2013 at 2:33 pm
With a file that large you should take a look at BULK INSERT.
June 19, 2013 at 2:29 pm
OK I looked at your original post over and over and I think I figured out what you are asking. See if this query is close to what you are...
June 19, 2013 at 1:35 pm
ericb1 (6/19/2013)
Thanks, but the data has personal information in it (full names, and phone numbers) so I was trying to avoid putting that on the internet.
Well we certainly don't want...
June 19, 2013 at 1:10 pm
I am pretty sure you are looking for something more like this.
--first we have to create the tables
declare @Tables nvarchar(max)
select @Tables =
(
select 'create table IDT_' + cast(IDT as varchar(25))...
June 19, 2013 at 1:01 pm
Is there a question here or are you sharing something?
June 19, 2013 at 12:39 pm
Ouch, you have scalar functions calling scalar functions. This is serious performance red flag. Scalar functions are notoriously bad for performance. Even worse when they get nested.
June 19, 2013 at 12:36 pm
NO we need to have actual DDL and sample data. As I said previously in the form of insert statements. I should be able to hit F5 and have a...
June 19, 2013 at 12:31 pm
What is the purpose of this? This is going to require some pretty complicated dynamic sql for this.
June 19, 2013 at 12:25 pm
Viewing 15 posts - 7,891 through 7,905 (of 15,381 total)