Viewing 15 posts - 13,546 through 13,560 (of 15,381 total)
Again, have you tried?
Someday you will wish you had ordered by column name instead of ordinal position. All you gain by ordinal position is ambiguity.
select SomeColumn from MyTable
union all
select...
November 8, 2011 at 1:16 pm
daveriya (11/8/2011)
select order 2, book_id,table_name,account_id,account_name
from book,account
where book.id = account.id
union all
select order 1,column1,column2
from table1,table2
where-----
union all
select order3,column1,column2
from table1,table2
where-----
union all
select order4,column1,column2
from table1,table2
where-----
in this query,every select has order column,mens if i...
November 8, 2011 at 12:35 pm
daveriya (11/8/2011)
November 8, 2011 at 11:29 am
pparlapalli (11/8/2011)
SeanIs there any advantage to order by columnname over ordial position ?
It is certainly easier to read and if you change the column order at some point your order...
November 8, 2011 at 11:27 am
Are you trying to store calculated fields for things like average across all the records of a given type? This is exactly the reason NOT to store calculated values. You...
November 8, 2011 at 9:53 am
Do you always want it in the same order? If so, just add an order by to your query.
FWIW, You should order by column name and not ordinal position....
November 8, 2011 at 9:46 am
Jeff Moden (11/8/2011)
Please post your original function.
He posted his function at the top of page 2.
November 8, 2011 at 9:19 am
Why do you not want to use with Linked Servers? This is what they are designed to do.
November 8, 2011 at 8:47 am
I don't think the timeout is happening where you think it is. You are getting a connection timeout? That means that your sql is taking longer to complete than the...
November 8, 2011 at 8:44 am
Not exactly sure what the issue is here but your update looks pretty suspect to me. You have created a cross join between the two tables. You should use a...
November 8, 2011 at 8:17 am
Can you put together some ddl, sample data (insert statements) and desired output based on your sample data?
November 8, 2011 at 7:50 am
Brandie Tarvin (11/8/2011)
Sean Lange (11/7/2011)
Brandie Tarvin (11/7/2011)
Sean Lange (11/4/2011)
November 8, 2011 at 7:41 am
Jeff Moden (11/7/2011)
Sean Lange (11/7/2011)
ryvlad (11/7/2011)
just run it on your DB and you can always...
November 8, 2011 at 7:02 am
ryvlad (11/7/2011)
just run it on your DB and you can always reference it from anywhere...
November 7, 2011 at 2:30 pm
MyDoggieJessie (11/7/2011)
Well Duh, Sorry Sean...I only read the first part of your post when I went off and replied. It's going to be a long week...
LOL. No worries. I...
November 7, 2011 at 2:08 pm
Viewing 15 posts - 13,546 through 13,560 (of 15,381 total)