Viewing 15 posts - 2,701 through 2,715 (of 5,502 total)
Please decide by yourself which option is easier to read....
DECLARE @tbl TABLE
(
id INT, name VARCHAR(30)
)
INSERT INTO @tbl SELECT 1 ,'x'
-- option a
SELECT 'id' AS col1,CAST(id AS...
October 18, 2010 at 3:04 pm
duplicate post.
please continue at http://www.sqlservercentral.com/Forums/FindPost1006219.aspx
October 18, 2010 at 2:53 pm
Please any book on RDBMS.
What is the message you're trying to bring across with that statement? Sounds incomplete...
Tables have no order.
The question was not about the order...
October 17, 2010 at 1:19 pm
Unfortunately, it seems like you didn't read the article yet.
I tried to import the xls data you provided but the time columns will remain empty even if it seems like...
October 17, 2010 at 8:16 am
ashkan siroos (10/17/2010)
I didn't mean that , and i know you help me and all people because of your kindness.
I will attache those immediately, and if i said...
October 17, 2010 at 6:31 am
Ashkan,
did you read the article I pointed you at?
The purpose of posting table def and sample data in a ready to use format is to help us help you.
We are...
October 17, 2010 at 4:30 am
It depends.
Sounds like an interview question (at least in combination with your other question at the very same time)
October 17, 2010 at 3:28 am
elham_azizi_62 (10/17/2010)
hi all.how to combine 2 pivot table in 1 view?
It depends.
Sounds like an interview question (at least in combination with your other question at the very same time)
October 17, 2010 at 3:26 am
I don't think there is a c.u.r.s.o.r *cough* needed...
But in order to show a set based solution I'd like to see table def for cardtime.dbo.inout and cardtime.dbo.WatchBuilding including some sample...
October 17, 2010 at 3:22 am
Sounds like a homework question.
If you use the answer from above without quoting the source (therewith stating it's not your solution) it'll be considered as plagiarism. It's cheating anyway.
Another story...
October 17, 2010 at 3:17 am
How about this?
;WITH cte AS
-- split each string by character and decide UPPER or lower based on previous character or being the first char
(
SELECT
N,
Id,
CASE
WHEN N=1...
October 16, 2010 at 5:30 pm
Ninja's_RGR'us (10/16/2010)
...How long are they required to keep it around?
Due to the table and column names I'd guess we're talking about a database that needs to be compliant with...
October 16, 2010 at 2:22 pm
jaffrey (10/16/2010)
Of course, there will be slightly more effort if foreign keys, constraints, triggers and the like will be involved....
So far the query works fine as long as the constraints,triggers,procedures...
October 16, 2010 at 8:47 am
I would use the "quirky update" method.
Disclaimer:
DO NOT USE the code
until you've read Jeff's article[/url] and the related discussion.
DO NOT USE the code
until you...
October 16, 2010 at 5:28 am
Viewing 15 posts - 2,701 through 2,715 (of 5,502 total)